public class HoodieCompactionPlan
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
HoodieCompactionPlan.Builder
RecordBuilder for HoodieCompactionPlan instances.
|
| Modifier and Type | Field and Description |
|---|---|
Map<String,String> |
extraMetadata
Deprecated.
|
List<HoodieCompactionOperation> |
operations
Deprecated.
|
Boolean |
preserveHoodieMetadata
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
HoodieCompactionStrategy |
strategy
Deprecated.
|
Integer |
version
Deprecated.
|
| Constructor and Description |
|---|
HoodieCompactionPlan()
Default constructor.
|
HoodieCompactionPlan(List<HoodieCompactionOperation> operations,
Map<String,String> extraMetadata,
Integer version,
HoodieCompactionStrategy strategy,
Boolean preserveHoodieMetadata)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avro.message.BinaryMessageDecoder<HoodieCompactionPlan> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore. |
static HoodieCompactionPlan |
fromByteBuffer(ByteBuffer b)
Deserializes a HoodieCompactionPlan from a ByteBuffer.
|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
static org.apache.avro.message.BinaryMessageDecoder<HoodieCompactionPlan> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
Map<String,String> |
getExtraMetadata()
Gets the value of the 'extraMetadata' field.
|
List<HoodieCompactionOperation> |
getOperations()
Gets the value of the 'operations' field.
|
Boolean |
getPreserveHoodieMetadata()
Gets the value of the 'preserveHoodieMetadata' field.
|
org.apache.avro.Schema |
getSchema() |
HoodieCompactionStrategy |
getStrategy()
Gets the value of the 'strategy' field.
|
Integer |
getVersion()
Gets the value of the 'version' field.
|
static HoodieCompactionPlan.Builder |
newBuilder()
Creates a new HoodieCompactionPlan RecordBuilder.
|
static HoodieCompactionPlan.Builder |
newBuilder(HoodieCompactionPlan.Builder other)
Creates a new HoodieCompactionPlan RecordBuilder by copying an existing Builder.
|
static HoodieCompactionPlan.Builder |
newBuilder(HoodieCompactionPlan other)
Creates a new HoodieCompactionPlan RecordBuilder by copying an existing HoodieCompactionPlan instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setExtraMetadata(Map<String,String> value)
Sets the value of the 'extraMetadata' field.
|
void |
setOperations(List<HoodieCompactionOperation> value)
Sets the value of the 'operations' field.
|
void |
setPreserveHoodieMetadata(Boolean value)
Sets the value of the 'preserveHoodieMetadata' field.
|
void |
setStrategy(HoodieCompactionStrategy value)
Sets the value of the 'strategy' field.
|
void |
setVersion(Integer value)
Sets the value of the 'version' field.
|
ByteBuffer |
toByteBuffer()
Serializes this HoodieCompactionPlan to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public List<HoodieCompactionOperation> operations
@Deprecated public Map<String,String> extraMetadata
@Deprecated public Integer version
@Deprecated public HoodieCompactionStrategy strategy
@Deprecated public Boolean preserveHoodieMetadata
public HoodieCompactionPlan()
newBuilder().public HoodieCompactionPlan(List<HoodieCompactionOperation> operations, Map<String,String> extraMetadata, Integer version, HoodieCompactionStrategy strategy, Boolean preserveHoodieMetadata)
operations - The new value for operationsextraMetadata - The new value for extraMetadataversion - The new value for versionstrategy - The new value for strategypreserveHoodieMetadata - The new value for preserveHoodieMetadatapublic static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageDecoder<HoodieCompactionPlan> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<HoodieCompactionPlan> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore.resolver - a SchemaStore used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOExceptionpublic static HoodieCompactionPlan fromByteBuffer(ByteBuffer b) throws IOException
IOExceptionpublic org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainergetSchema in class org.apache.avro.specific.SpecificRecordBasepublic Object get(int field$)
get in interface org.apache.avro.generic.IndexedRecordget in class org.apache.avro.specific.SpecificRecordBasepublic void put(int field$,
Object value$)
put in interface org.apache.avro.generic.IndexedRecordput in class org.apache.avro.specific.SpecificRecordBasepublic List<HoodieCompactionOperation> getOperations()
public void setOperations(List<HoodieCompactionOperation> value)
value - the value to set.public Map<String,String> getExtraMetadata()
public void setExtraMetadata(Map<String,String> value)
value - the value to set.public Integer getVersion()
public void setVersion(Integer value)
value - the value to set.public HoodieCompactionStrategy getStrategy()
public void setStrategy(HoodieCompactionStrategy value)
value - the value to set.public Boolean getPreserveHoodieMetadata()
public void setPreserveHoodieMetadata(Boolean value)
value - the value to set.public static HoodieCompactionPlan.Builder newBuilder()
public static HoodieCompactionPlan.Builder newBuilder(HoodieCompactionPlan.Builder other)
other - The existing builder to copy.public static HoodieCompactionPlan.Builder newBuilder(HoodieCompactionPlan other)
other - The existing instance to copy.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class org.apache.avro.specific.SpecificRecordBaseIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizablereadExternal in class org.apache.avro.specific.SpecificRecordBaseIOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.