public class PartitionUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static StructType |
physicalSchemaWithoutPartitionColumns(StructType logicalSchema,
StructType physicalSchema,
java.util.Set<java.lang.String> columnsToRemove)
Utility method to remove the given columns (as
columnsToRemove) from the
given physicalSchema. |
static ColumnarBatch |
withPartitionColumns(ExpressionHandler expressionHandler,
ColumnarBatch dataBatch,
StructType dataBatchSchema,
java.util.Map<java.lang.String,java.lang.String> partitionValues,
StructType schemaWithPartitionCols) |
public static StructType physicalSchemaWithoutPartitionColumns(StructType logicalSchema, StructType physicalSchema, java.util.Set<java.lang.String> columnsToRemove)
columnsToRemove) from the
given physicalSchema.physicalSchema - logicalSchema - To create a logical name to physical name map. Partition column names
are in logical space and we need to identify the equivalent physical column name.columnsToRemove - public static ColumnarBatch withPartitionColumns(ExpressionHandler expressionHandler, ColumnarBatch dataBatch, StructType dataBatchSchema, java.util.Map<java.lang.String,java.lang.String> partitionValues, StructType schemaWithPartitionCols)