Package org.apache.iceberg.transforms
Interface PartitionSpecVisitor<T>
-
public interface PartitionSpecVisitor<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method 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 aPartitionSpec
.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)
-
-
-
Method Detail
-
identity
default T identity(int fieldId, java.lang.String sourceName, int sourceId)
-
identity
default T identity(java.lang.String sourceName, int sourceId)
-
bucket
default T bucket(int fieldId, java.lang.String sourceName, int sourceId, int numBuckets)
-
bucket
default T bucket(java.lang.String sourceName, int sourceId, int numBuckets)
-
truncate
default T truncate(int fieldId, java.lang.String sourceName, int sourceId, int width)
-
truncate
default T truncate(java.lang.String sourceName, int sourceId, int width)
-
year
default T year(int fieldId, java.lang.String sourceName, int sourceId)
-
year
default T year(java.lang.String sourceName, int sourceId)
-
month
default T month(int fieldId, java.lang.String sourceName, int sourceId)
-
month
default T month(java.lang.String sourceName, int sourceId)
-
day
default T day(int fieldId, java.lang.String sourceName, int sourceId)
-
day
default T day(java.lang.String sourceName, int sourceId)
-
hour
default T hour(int fieldId, java.lang.String sourceName, int sourceId)
-
hour
default T hour(java.lang.String sourceName, int sourceId)
-
alwaysNull
default T alwaysNull(int fieldId, java.lang.String sourceName, int sourceId)
-
unknown
default T unknown(int fieldId, java.lang.String sourceName, int sourceId, java.lang.String transform)
-
visit
static <R> java.util.List<R> visit(PartitionSpec spec, PartitionSpecVisitor<R> visitor)
Visit the fields of aPartitionSpec
.- Type Parameters:
R
- return type of the visitor- Parameters:
spec
- a partition spec to visitvisitor
- a partition spec visitor- Returns:
- a list of the result produced by visiting each partition field
-
visit
static <R> R visit(Schema schema, PartitionField field, PartitionSpecVisitor<R> visitor)
-
-