org.apache.kylin.metadata.filter.DynamicTupleFilter Java Examples

The following examples show how to use org.apache.kylin.metadata.filter.DynamicTupleFilter. 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: FilterBaseTest.java    From kylin-on-parquet-v2 with Apache License 2.0 5 votes vote down vote up
protected CompareTupleFilter buildCompareDynamicFilter(List<TblColRef> groups, FilterOperatorEnum operator) {
    CompareTupleFilter compareFilter = new CompareTupleFilter(operator);
    compareFilter.addChild(new ColumnTupleFilter(groups.get(0)));
    compareFilter.addChild(new DynamicTupleFilter("?0"));
    compareFilter.bindVariable("?0", "abc");
    return compareFilter;
}
 
Example #2
Source File: FilterBaseTest.java    From kylin with Apache License 2.0 5 votes vote down vote up
protected CompareTupleFilter buildCompareDynamicFilter(List<TblColRef> groups, FilterOperatorEnum operator) {
    CompareTupleFilter compareFilter = new CompareTupleFilter(operator);
    compareFilter.addChild(new ColumnTupleFilter(groups.get(0)));
    compareFilter.addChild(new DynamicTupleFilter("?0"));
    compareFilter.bindVariable("?0", "abc");
    return compareFilter;
}
 
Example #3
Source File: TupleFilterVisitor.java    From kylin-on-parquet-v2 with Apache License 2.0 4 votes vote down vote up
@Override
public TupleFilter visitDynamicParam(RexDynamicParam dynamicParam) {
    String name = dynamicParam.getName();
    TupleFilter filter = new DynamicTupleFilter(name);
    return filter;
}
 
Example #4
Source File: StreamingBuiltInFunctionTransformer.java    From kylin-on-parquet-v2 with Apache License 2.0 4 votes vote down vote up
private boolean isConstant(TupleFilter filter) {
    return (filter instanceof ConstantTupleFilter) || (filter instanceof DynamicTupleFilter);
}
 
Example #5
Source File: StreamingBuiltInFunctionTransformer.java    From kylin-on-parquet-v2 with Apache License 2.0 4 votes vote down vote up
private boolean isConstant(TupleFilter filter) {
    return (filter instanceof ConstantTupleFilter) || (filter instanceof DynamicTupleFilter);
}
 
Example #6
Source File: TupleFilterVisitor.java    From kylin with Apache License 2.0 4 votes vote down vote up
@Override
public TupleFilter visitDynamicParam(RexDynamicParam dynamicParam) {
    String name = dynamicParam.getName();
    TupleFilter filter = new DynamicTupleFilter(name);
    return filter;
}
 
Example #7
Source File: SegmentPruner.java    From kylin with Apache License 2.0 4 votes vote down vote up
private static boolean isConstantValue(TupleFilter tupleFilter) {
    return tupleFilter instanceof ConstantTupleFilter || tupleFilter instanceof DynamicTupleFilter;
}
 
Example #8
Source File: StreamingBuiltInFunctionTransformer.java    From kylin with Apache License 2.0 4 votes vote down vote up
private boolean isConstant(TupleFilter filter) {
    return (filter instanceof ConstantTupleFilter) || (filter instanceof DynamicTupleFilter);
}
 
Example #9
Source File: StreamingBuiltInFunctionTransformer.java    From kylin with Apache License 2.0 4 votes vote down vote up
private boolean isConstant(TupleFilter filter) {
    return (filter instanceof ConstantTupleFilter) || (filter instanceof DynamicTupleFilter);
}
 
Example #10
Source File: OLAPFilterRel.java    From Kylin with Apache License 2.0 4 votes vote down vote up
@Override
public TupleFilter visitDynamicParam(RexDynamicParam dynamicParam) {
    String name = dynamicParam.getName();
    TupleFilter filter = new DynamicTupleFilter(name);
    return filter;
}