public interface PartitionPredicate
Predicate
.Modifier and Type | Interface and Description |
---|---|
static class |
PartitionPredicate.DefaultPartitionPredicate
A
PartitionPredicate using Predicate . |
static class |
PartitionPredicate.MultiplePartitionPredicate
A
PartitionPredicate optimizing for multiple partitions. |
Modifier and Type | Method and Description |
---|---|
static Predicate |
createPartitionPredicate(List<Map<String,String>> partitions,
RowType rowType,
String defaultPartValue) |
static Predicate |
createPartitionPredicate(Map<String,String> spec,
RowType rowType,
String defaultPartValue) |
static Predicate |
createPartitionPredicate(RowType partitionType,
BinaryRow partition) |
static Predicate |
createPartitionPredicate(RowType rowType,
Map<String,Object> partition) |
static Predicate |
createPartitionPredicate(RowType partitionType,
Object[] partition) |
static PartitionPredicate |
fromMultiple(RowType partitionType,
List<BinaryRow> partitions) |
static PartitionPredicate |
fromMultiple(RowType partitionType,
Set<BinaryRow> partitions) |
static PartitionPredicate |
fromPredicate(RowType partitionType,
Predicate predicate)
Compared to the multiple method, this approach can accept filtering of partially partitioned
fields.
|
boolean |
test(BinaryRow part) |
boolean |
test(long rowCount,
InternalRow minValues,
InternalRow maxValues,
InternalArray nullCounts) |
boolean test(BinaryRow part)
boolean test(long rowCount, InternalRow minValues, InternalRow maxValues, InternalArray nullCounts)
@Nullable static PartitionPredicate fromPredicate(RowType partitionType, Predicate predicate)
@Nullable static PartitionPredicate fromMultiple(RowType partitionType, List<BinaryRow> partitions)
@Nullable static PartitionPredicate fromMultiple(RowType partitionType, Set<BinaryRow> partitions)
static Predicate createPartitionPredicate(RowType rowType, Map<String,Object> partition)
static Predicate createPartitionPredicate(RowType partitionType, Object[] partition)
static Predicate createPartitionPredicate(RowType partitionType, BinaryRow partition)
@Nullable static Predicate createPartitionPredicate(Map<String,String> spec, RowType rowType, String defaultPartValue)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.