use of org.apache.commons.jexl2.parser.ASTUnknownFieldERNode in project datawave by NationalSecurityAgency.
the class RangeStream method visit.
@Override
public Object visit(ASTERNode node, Object data) {
IdentifierOpLiteral op = JexlASTHelper.getIdentifierOpLiteral(node);
if (op == null) {
return ScannerStream.unindexed(node);
}
final String fieldName = op.deconstructIdentifier();
// HACK to make EVENT_DATATYPE queries work
if (QueryOptions.DEFAULT_DATATYPE_FIELDNAME.equals(fieldName)) {
return ScannerStream.unindexed(node);
}
if (isUnOrNotFielded(node)) {
return ScannerStream.noData(node);
}
if (isUnindexed(node)) {
return ScannerStream.unindexed(node);
}
if (node instanceof ASTUnknownFieldERNode) {
return ScannerStream.unknownField(node);
}
return ScannerStream.noData(node);
}
Aggregations