Package org.apache.iceberg.util
Class PartitionUtil
- java.lang.Object
-
- org.apache.iceberg.util.PartitionUtil
-
public class PartitionUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StructLike
coercePartition(Types.StructType partitionType, PartitionSpec spec, StructLike partition)
static java.util.Map<java.lang.Integer,?>
constantsMap(ContentScanTask<?> task)
static java.util.Map<java.lang.Integer,?>
constantsMap(ContentScanTask<?> task, java.util.function.BiFunction<Type,java.lang.Object,java.lang.Object> convertConstant)
static java.util.Map<java.lang.Integer,?>
constantsMap(ContentScanTask<?> task, Types.StructType partitionType, java.util.function.BiFunction<Type,java.lang.Object,java.lang.Object> convertConstant)
static java.util.Map<java.lang.Integer,PartitionSpec>
indexSpecs(java.util.List<PartitionSpec> specs)
-
-
-
Method Detail
-
constantsMap
public static java.util.Map<java.lang.Integer,?> constantsMap(ContentScanTask<?> task)
-
constantsMap
public static java.util.Map<java.lang.Integer,?> constantsMap(ContentScanTask<?> task, java.util.function.BiFunction<Type,java.lang.Object,java.lang.Object> convertConstant)
-
constantsMap
public static java.util.Map<java.lang.Integer,?> constantsMap(ContentScanTask<?> task, Types.StructType partitionType, java.util.function.BiFunction<Type,java.lang.Object,java.lang.Object> convertConstant)
-
coercePartition
public static StructLike coercePartition(Types.StructType partitionType, PartitionSpec spec, StructLike partition)
-
indexSpecs
public static java.util.Map<java.lang.Integer,PartitionSpec> indexSpecs(java.util.List<PartitionSpec> specs)
-
-