public interface PartitionSpecVisitor<T>
Modifier and Type | Method and Description |
---|---|
default T |
alwaysNull(int fieldId,
java.lang.String sourceName,
int sourceId) |
default T |
bucket(int fieldId,
java.lang.String sourceName,
int sourceId,
int numBuckets) |
default T |
bucket(java.lang.String sourceName,
int sourceId,
int numBuckets) |
default T |
day(int fieldId,
java.lang.String sourceName,
int sourceId) |
default T |
day(java.lang.String sourceName,
int sourceId) |
default T |
hour(int fieldId,
java.lang.String sourceName,
int sourceId) |
default T |
hour(java.lang.String sourceName,
int sourceId) |
default T |
identity(int fieldId,
java.lang.String sourceName,
int sourceId) |
default T |
identity(java.lang.String sourceName,
int sourceId) |
default T |
month(int fieldId,
java.lang.String sourceName,
int sourceId) |
default T |
month(java.lang.String sourceName,
int sourceId) |
default T |
truncate(int fieldId,
java.lang.String sourceName,
int sourceId,
int width) |
default T |
truncate(java.lang.String sourceName,
int sourceId,
int width) |
default T |
unknown(int fieldId,
java.lang.String sourceName,
int sourceId,
java.lang.String transform) |
static <R> java.util.List<R> |
visit(PartitionSpec spec,
PartitionSpecVisitor<R> visitor)
Visit the fields of a
PartitionSpec . |
static <R> R |
visit(Schema schema,
PartitionField field,
PartitionSpecVisitor<R> visitor) |
default T |
year(int fieldId,
java.lang.String sourceName,
int sourceId) |
default T |
year(java.lang.String sourceName,
int sourceId) |
default T identity(int fieldId, java.lang.String sourceName, int sourceId)
default T identity(java.lang.String sourceName, int sourceId)
default T bucket(int fieldId, java.lang.String sourceName, int sourceId, int numBuckets)
default T bucket(java.lang.String sourceName, int sourceId, int numBuckets)
default T truncate(int fieldId, java.lang.String sourceName, int sourceId, int width)
default T truncate(java.lang.String sourceName, int sourceId, int width)
default T year(int fieldId, java.lang.String sourceName, int sourceId)
default T year(java.lang.String sourceName, int sourceId)
default T month(int fieldId, java.lang.String sourceName, int sourceId)
default T month(java.lang.String sourceName, int sourceId)
default T day(int fieldId, java.lang.String sourceName, int sourceId)
default T day(java.lang.String sourceName, int sourceId)
default T hour(int fieldId, java.lang.String sourceName, int sourceId)
default T hour(java.lang.String sourceName, int sourceId)
default T alwaysNull(int fieldId, java.lang.String sourceName, int sourceId)
default T unknown(int fieldId, java.lang.String sourceName, int sourceId, java.lang.String transform)
static <R> java.util.List<R> visit(PartitionSpec spec, PartitionSpecVisitor<R> visitor)
PartitionSpec
.R
- return type of the visitorspec
- a partition spec to visitvisitor
- a partition spec visitorstatic <R> R visit(Schema schema, PartitionField field, PartitionSpecVisitor<R> visitor)