Class DerivedTableWriter.PartitionedOptions
- Enclosing class:
- DerivedTableWriter
In particular, the PartitionedOptions determine how the column and internal partition are computed. By default, the source PartitionedTable is assumed to contain a TableLocationKey with one column partition and one internal partition that are propagated to the result table. You may also specify a fixed value or a key column for the column or internal partition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the column partition key column name.columnPartitionKey
(String columnName) Sets the column partition key column name.columnPartitionValue
(String columnPartition) Sets the fixed column partition value.Retrieves the internal partition key column name.internalPartitionKey
(String internalPartitionKey) Sets the internal partition key column name.internalPartitionValue
(String internalPartition) Sets the fixed internal partition value.
-
Constructor Details
-
PartitionedOptions
public PartitionedOptions()
-
-
Method Details
-
columnPartitionValue
Sets the fixed column partition value.If a column partition key column is already specified, throws an IllegalStateException. If neither columnPartitionKey nor columnPartitionValue is specified, then the PartitionedTable key must be a TableLocation, from which the columnPartition is extracted.
- Parameters:
columnPartition
- the fixed column partition value to set- Returns:
- the PartitionedOptions object
- Throws:
IllegalStateException
- if both columnPartitionValue and columnPartitionKey are specified
-
internalPartitionValue
Sets the fixed internal partition value.If a internal partition key column is already specified, throws an IllegalStateException. If neither internalPartitionKey nor internalPartitionValue is specified, then the PartitionedTable key must be a TableLocation, from which the internalPartition is extracted.
- Parameters:
internalPartition
- the fixed internal partition value to set- Returns:
- the PartitionedOptions object
-
columnPartitionKey
Retrieves the column partition key column name.If a column partition value is already specified, throws an IllegalStateException. If neither columnPartitionKey nor columnPartitionValue is specified, then the PartitionedTable key must be a TableLocation, from which the columnPartition is extracted.
- Returns:
- the column partition key column name
-
columnPartitionKey
Sets the column partition key column name.If a column partition value is already specified, throws an IllegalStateException.
- Parameters:
columnName
- the column partition key column name to set- Returns:
- the PartitionedOptions object
- Throws:
IllegalStateException
- if both columnPartitionValue and columnPartitionKey are specified
-
internalPartitionKey
Retrieves the internal partition key column name.- Returns:
- the internal partition key value
-
internalPartitionKey
Sets the internal partition key column name.If a internal partition value is already specified, throws an IllegalStateException. If neither internalPartitionKey nor internalPartitionValue is specified, then the PartitionedTable key must be a TableLocation, from which the internalPartition is extracted.
- Parameters:
internalPartitionKey
- the internal partition key column name to set- Returns:
- the PartitionedOptions object
- Throws:
IllegalStateException
- if both internalPartitionValue and internalPartitionKey are specified
-