Package org.apache.iceberg.transforms
Interface PartitionSpecVisitor<T>
public interface PartitionSpecVisitor<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault T
alwaysNull
(int fieldId, String sourceName, int sourceId) default T
default T
default T
default T
default T
default T
default T
default T
default T
default T
default T
default T
default T
static <R> 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
default T
-
Method Details
-
identity
-
identity
-
bucket
-
bucket
-
truncate
-
truncate
-
year
-
year
-
month
-
month
-
day
-
day
-
hour
-
hour
-
alwaysNull
-
unknown
-
visit
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
-