@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; }
@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; }
@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; }