public class PartitionFilter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PartitionFilter.Builder
A builder for partition filters.
|
static class |
PartitionFilter.Condition<T extends Comparable<T>>
Represents a condition on a partitioning field, by means of an inclusive lower bound and an
exclusive upper bound.
|
Modifier and Type | Field and Description |
---|---|
static PartitionFilter |
ALWAYS_MATCH |
Modifier and Type | Method and Description |
---|---|
static PartitionFilter.Builder |
builder()
Use this to create PartitionFilters.
|
boolean |
equals(Object o) |
PartitionFilter.Condition<? extends Comparable> |
getCondition(String fieldName) |
Map<String,PartitionFilter.Condition<? extends Comparable>> |
getConditions()
This should be used for inspection or debugging only.
|
int |
hashCode() |
boolean |
match(PartitionKey partitionKey)
Match this filter against a partition key.
|
String |
toString() |
public static final PartitionFilter ALWAYS_MATCH
public Map<String,PartitionFilter.Condition<? extends Comparable>> getConditions()
match(io.cdap.cdap.api.dataset.lib.PartitionKey)
method.public PartitionFilter.Condition<? extends Comparable> getCondition(String fieldName)
public boolean match(PartitionKey partitionKey)
IllegalArgumentException
- if one of the field types in the partition key
are incompatiblepublic static PartitionFilter.Builder builder()
Copyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.