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) |
static <R> java.util.List<R> |
visit(Schema schema,
PartitionSpec spec,
PartitionSpecVisitor<R> visitor)
Deprecated.
this will be removed in 0.11.0; use
visit(PartitionSpec, PartitionSpecVisitor) instead. |
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 visitor@Deprecated static <R> java.util.List<R> visit(Schema schema, PartitionSpec spec, PartitionSpecVisitor<R> visitor)
visit(PartitionSpec, PartitionSpecVisitor)
instead.PartitionSpec
.R
- return type of the visitorschema
- a schema for source field lookupsspec
- a partition spec to visitvisitor
- a partition spec visitorstatic <R> R visit(Schema schema, PartitionField field, PartitionSpecVisitor<R> visitor)