public class Partition extends Object
Constructor and Description |
---|
Partition(String partitionSpec,
Layout baseLayout)
Creates an instance.
|
Partition(UdbPartition udbPartition)
Creates an instance from a udb partition.
|
Modifier and Type | Method and Description |
---|---|
static Partition |
fromProto(LayoutRegistry layoutRegistry,
Partition proto) |
Layout |
getLayout() |
String |
getSpec() |
TransformPlan |
getTransformPlan(TransformContext transformContext,
TransformDefinition definition)
Returns a plan to transform this partition.
|
boolean |
isTransformed(String definition) |
Partition |
toProto() |
void |
transform(String definition,
Layout layout)
Transform the partition.
|
public Partition(String partitionSpec, Layout baseLayout)
partitionSpec
- the partition specbaseLayout
- the partition layoutpublic Partition(UdbPartition udbPartition)
udbPartition
- the udb partitionpublic Layout getLayout()
public void transform(String definition, Layout layout)
definition
- the transformation definitionlayout
- the transformed layoutpublic boolean isTransformed(String definition)
definition
- the transformation definitionpublic String getSpec()
public TransformPlan getTransformPlan(TransformContext transformContext, TransformDefinition definition) throws IOException
transformContext
- the TransformContext
definition
- the transformation definitionIOException
public Partition toProto()
public static Partition fromProto(LayoutRegistry layoutRegistry, Partition proto)
layoutRegistry
- the layout registryproto
- the proto representationCopyright © 2023. All Rights Reserved.