Java Code Examples for org.apache.parquet.filter2.predicate.FilterPredicate#accept()
The following examples show how to use
org.apache.parquet.filter2.predicate.FilterPredicate#accept() .
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: IncrementallyUpdatedFilterPredicateBuilderBase.java From parquet-mr with Apache License 2.0 | 4 votes |
public final IncrementallyUpdatedFilterPredicate build(FilterPredicate pred) { checkArgument(!built, "This builder has already been used"); IncrementallyUpdatedFilterPredicate incremental = pred.accept(this); built = true; return incremental; }
Example 2
Source File: BloomFilterImpl.java From parquet-mr with Apache License 2.0 | 4 votes |
public static boolean canDrop(FilterPredicate pred, List<ColumnChunkMetaData> columns, BloomFilterReader bloomFilterReader) { checkNotNull(pred, "pred"); checkNotNull(columns, "columns"); return pred.accept(new BloomFilterImpl(columns, bloomFilterReader)); }
Example 3
Source File: StatisticsFilter.java From parquet-mr with Apache License 2.0 | 4 votes |
public static boolean canDrop(FilterPredicate pred, List<ColumnChunkMetaData> columns) { Objects.requireNonNull(pred, "pred cannot be null"); Objects.requireNonNull(columns, "columns cannot be null"); return pred.accept(new StatisticsFilter(columns)); }
Example 4
Source File: DictionaryFilter.java From parquet-mr with Apache License 2.0 | 4 votes |
public static boolean canDrop(FilterPredicate pred, List<ColumnChunkMetaData> columns, DictionaryPageReadStore dictionaries) { Objects.requireNonNull(pred, "pred cannnot be null"); Objects.requireNonNull(columns, "columns cannnot be null"); return pred.accept(new DictionaryFilter(columns, dictionaries)); }