Java Code Examples for org.apache.kylin.metadata.filter.TupleFilter#FilterOperatorEnum
The following examples show how to use
org.apache.kylin.metadata.filter.TupleFilter#FilterOperatorEnum .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ScanRangePlannerBase.java From kylin-on-parquet-v2 with Apache License 2.0 | 5 votes |
public ColumnRange(TblColRef column, Set<ByteArray> values, TupleFilter.FilterOperatorEnum op) { this.column = column; //TODO: the treatment is un-precise if (op == TupleFilter.FilterOperatorEnum.EQ || op == TupleFilter.FilterOperatorEnum.IN || op == TupleFilter.FilterOperatorEnum.LTE || op == TupleFilter.FilterOperatorEnum.GTE) { isBoundryInclusive = true; } switch (op) { case EQ: case IN: valueSet = new HashSet<ByteArray>(values); refreshBeginEndFromEquals(); break; case LT: case LTE: end = rangeEndComparator.comparator.max(values); break; case GT: case GTE: begin = rangeStartComparator.comparator.min(values); break; case NEQ: case NOTIN: case ISNULL: case ISNOTNULL: // let Optiq filter it! break; default: throw new UnsupportedOperationException(op.name()); } }
Example 2
Source File: ScanRangePlannerBase.java From kylin with Apache License 2.0 | 5 votes |
public ColumnRange(TblColRef column, Set<ByteArray> values, TupleFilter.FilterOperatorEnum op) { this.column = column; //TODO: the treatment is un-precise if (op == TupleFilter.FilterOperatorEnum.EQ || op == TupleFilter.FilterOperatorEnum.IN || op == TupleFilter.FilterOperatorEnum.LTE || op == TupleFilter.FilterOperatorEnum.GTE) { isBoundryInclusive = true; } switch (op) { case EQ: case IN: valueSet = new HashSet<ByteArray>(values); refreshBeginEndFromEquals(); break; case LT: case LTE: end = rangeEndComparator.comparator.max(values); break; case GT: case GTE: begin = rangeStartComparator.comparator.min(values); break; case NEQ: case NOTIN: case ISNULL: case ISNOTNULL: // let Optiq filter it! break; default: throw new UnsupportedOperationException(op.name()); } }
Example 3
Source File: GTUtil.java From kylin-on-parquet-v2 with Apache License 2.0 | 4 votes |
private TupleFilter newCompareFilter(TupleFilter.FilterOperatorEnum op, TblColRef col) { CompareTupleFilter r = new CompareTupleFilter(op); r.addChild(new ColumnTupleFilter(col)); return r; }
Example 4
Source File: GTUtil.java From kylin with Apache License 2.0 | 4 votes |
private TupleFilter newCompareFilter(TupleFilter.FilterOperatorEnum op, TblColRef col) { CompareTupleFilter r = new CompareTupleFilter(op); r.addChild(new ColumnTupleFilter(col)); return r; }