public class Partition extends Object
Constructor and Description |
---|
Partition(UdbPartition udbPartition)
Creates an instance from a udb partition.
|
Modifier and Type | Method and Description |
---|---|
Partition |
createNext(UdbPartition udbPartition)
Creates the next version of an existing partition.
|
static Partition |
fromProto(LayoutRegistry layoutRegistry,
Partition proto) |
Layout |
getBaseLayout() |
Layout |
getLayout() |
String |
getSpec() |
TransformPlan |
getTransformPlan(TransformContext transformContext,
TransformDefinition definition)
Returns a plan to transform this partition.
|
long |
getVersion() |
boolean |
isTransformed(String definition) |
Partition |
toProto() |
void |
transform(String definition,
Layout layout)
Transform the partition.
|
public Partition(UdbPartition udbPartition)
udbPartition
- the udb partitionpublic Partition createNext(UdbPartition udbPartition)
udbPartition
- the udb partitionpublic Layout getLayout()
public Layout getBaseLayout()
public long getVersion()
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.