@Override public boolean requiresFinalEvaluation() { return delegate.requiresFinalEvaluation(); }
@Override public boolean requiresFinalEvaluation() { return children.get(0).requiresFinalEvaluation(); }
@Override public boolean filterRow() { if (this.matchedColumn == null && !inputTuple.isImmutable() && expression.requiresFinalEvaluation()) { inputTuple.setImmutable(); this.matchedColumn = this.evaluate(inputTuple); } return ! (Boolean.TRUE.equals(this.matchedColumn)); }
@Override public boolean filterRow() { if (this.matchedColumn == null && !inputTuple.isImmutable() && expression.requiresFinalEvaluation()) { inputTuple.setImmutable(); this.matchedColumn = this.evaluate(inputTuple); } return ! (Boolean.TRUE.equals(this.matchedColumn)); }
@Override public boolean filterRow() { // If column was found, return false if it was matched, true if it was not. if (foundColumn()) { return !this.matchedColumn; } // If column was not found, evaluate the expression here upon completion. // This is required with certain expressions, for example, with IS NULL // expressions where they'll evaluate to TRUE when the column being // tested wasn't found. // Since the filter is called also to position the scan initially, we have // to guard against this by checking whether or not we've filtered in // the key value (i.e. filterKeyValue was called and we found the keyValue // for which we're looking). if (inputTuple.hasKey() && expression.requiresFinalEvaluation()) { return !Boolean.TRUE.equals(evaluate(inputTuple)); } // Finally, if we have no values, and we're not required to re-evaluate it // just filter the row return true; }
private void init(List<Expression> children) { this.children = ImmutableList.copyOf(children); boolean isStateless = true; boolean isNullable = false; boolean requiresFinalEvaluation = false; boolean cloneExpression = false; this.determinism = Determinism.ALWAYS; for (int i = 0; i < children.size(); i++) { Expression child = children.get(i); isNullable |= child.isNullable(); isStateless &= child.isStateless(); this.determinism = this.determinism.combine(child.getDeterminism()); requiresFinalEvaluation |= child.requiresFinalEvaluation(); cloneExpression |= child.isCloneExpression(); } this.isStateless = isStateless; this.isNullable = isNullable; this.requiresFinalEvaluation = requiresFinalEvaluation; this.cloneExpression = cloneExpression; }
@Override public boolean requiresFinalEvaluation() { return delegate.requiresFinalEvaluation(); }
Mockito.when(ascChild.getDataType()).thenReturn(PFloat.INSTANCE); Mockito.when(ascChild.getDeterminism()).thenReturn(Determinism.ALWAYS); Mockito.when(ascChild.requiresFinalEvaluation()).thenReturn(true); Mockito.when(descChild.getDataType()).thenReturn(PFloat.INSTANCE); Mockito.when(descChild.getDeterminism()).thenReturn(Determinism.ALWAYS); Mockito.when(descChild.requiresFinalEvaluation()).thenReturn(true);
@Override public boolean requiresFinalEvaluation() { return delegate.requiresFinalEvaluation(); }
@Override public boolean requiresFinalEvaluation() { return children.get(0).requiresFinalEvaluation(); }
@Override public boolean requiresFinalEvaluation() { return children.get(0).requiresFinalEvaluation(); }
projectAllColumnFamilies(table, scan); } else { isProjectEmptyKeyValue = where == null || LiteralExpression.isTrue(where) || where.requiresFinalEvaluation(); for (byte[] family : projectedFamilies) { projectColumnFamily(table, scan, family);
@Override public boolean filterRow() { if (this.matchedColumn == null && !inputTuple.isImmutable() && expression.requiresFinalEvaluation()) { inputTuple.setImmutable(); this.matchedColumn = this.evaluate(inputTuple); } return ! (Boolean.TRUE.equals(this.matchedColumn)); }
@Override public boolean filterRow() { if (this.matchedColumn == null && !inputTuple.isImmutable() && expression.requiresFinalEvaluation()) { inputTuple.setImmutable(); this.matchedColumn = this.evaluate(inputTuple); } return ! (Boolean.TRUE.equals(this.matchedColumn)); }
@Override public boolean filterRow() { if (this.matchedColumn == null && !inputTuple.isImmutable() && expression.requiresFinalEvaluation()) { inputTuple.setImmutable(); this.matchedColumn = this.evaluate(inputTuple); } return ! (Boolean.TRUE.equals(this.matchedColumn)); }
@Override public boolean filterRow() { if (this.matchedColumn == null && !inputTuple.isImmutable() && expression.requiresFinalEvaluation()) { inputTuple.setImmutable(); this.matchedColumn = this.evaluate(inputTuple); } return ! (Boolean.TRUE.equals(this.matchedColumn)); }
private void init(List<Expression> children) { this.children = ImmutableList.copyOf(children); boolean isStateless = true; boolean isNullable = false; boolean requiresFinalEvaluation = false; this.determinism = Determinism.ALWAYS; for (int i = 0; i < children.size(); i++) { Expression child = children.get(i); isNullable |= child.isNullable(); isStateless &= child.isStateless(); this.determinism = this.determinism.combine(child.getDeterminism()); requiresFinalEvaluation |= child.requiresFinalEvaluation(); } this.isStateless = isStateless; this.isNullable = isNullable; this.requiresFinalEvaluation = requiresFinalEvaluation; }
private void init(List<Expression> children) { this.children = ImmutableList.copyOf(children); boolean isStateless = true; boolean isNullable = false; boolean requiresFinalEvaluation = false; this.determinism = Determinism.ALWAYS; for (int i = 0; i < children.size(); i++) { Expression child = children.get(i); isNullable |= child.isNullable(); isStateless &= child.isStateless(); this.determinism = this.determinism.combine(child.getDeterminism()); requiresFinalEvaluation |= child.requiresFinalEvaluation(); } this.isStateless = isStateless; this.isNullable = isNullable; this.requiresFinalEvaluation = requiresFinalEvaluation; }
@Override public boolean filterRow() { // If column was found, return false if it was matched, true if it was not. if (foundColumn()) { return !this.matchedColumn; } // If column was not found, evaluate the expression here upon completion. // This is required with certain expressions, for example, with IS NULL // expressions where they'll evaluate to TRUE when the column being // tested wasn't found. // Since the filter is called also to position the scan initially, we have // to guard against this by checking whether or not we've filtered in // the key value (i.e. filterKeyValue was called and we found the keyValue // for which we're looking). if (inputTuple.hasKey() && expression.requiresFinalEvaluation()) { return !Boolean.TRUE.equals(evaluate(inputTuple)); } // Finally, if we have no values, and we're not required to re-evaluate it // just filter the row return true; }
boolean allCFs = false; byte[] essentialCF = null; if (counter.getCount() == Counter.Count.SINGLE && whereClause.requiresFinalEvaluation() ) { if (table.getViewType() == ViewType.MAPPED) { allCFs = true;