public class HoodieRecordIndexInfo
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
HoodieRecordIndexInfo.Builder
RecordBuilder for HoodieRecordIndexInfo instances.
|
| Modifier and Type | Field and Description |
|---|---|
String |
fileId
Deprecated.
|
int |
fileIdEncoding
Deprecated.
|
Long |
fileIdHighBits
Deprecated.
|
Long |
fileIdLowBits
Deprecated.
|
Integer |
fileIndex
Deprecated.
|
Long |
instantTime
Deprecated.
|
String |
partitionName
Deprecated.
|
Long |
position
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
| Constructor and Description |
|---|
HoodieRecordIndexInfo()
Default constructor.
|
HoodieRecordIndexInfo(String partitionName,
Long fileIdHighBits,
Long fileIdLowBits,
Integer fileIndex,
String fileId,
Long instantTime,
Integer fileIdEncoding,
Long position)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.avro.message.BinaryMessageDecoder<HoodieRecordIndexInfo> |
createDecoder(org.apache.avro.message.SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified
SchemaStore. |
static HoodieRecordIndexInfo |
fromByteBuffer(ByteBuffer b)
Deserializes a HoodieRecordIndexInfo from a ByteBuffer.
|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
static org.apache.avro.message.BinaryMessageDecoder<HoodieRecordIndexInfo> |
getDecoder()
Return the BinaryMessageDecoder instance used by this class.
|
String |
getFileId()
Gets the value of the 'fileId' field.
|
Integer |
getFileIdEncoding()
Gets the value of the 'fileIdEncoding' field.
|
Long |
getFileIdHighBits()
Gets the value of the 'fileIdHighBits' field.
|
Long |
getFileIdLowBits()
Gets the value of the 'fileIdLowBits' field.
|
Integer |
getFileIndex()
Gets the value of the 'fileIndex' field.
|
Long |
getInstantTime()
Gets the value of the 'instantTime' field.
|
String |
getPartitionName()
Gets the value of the 'partitionName' field.
|
Long |
getPosition()
Gets the value of the 'position' field.
|
org.apache.avro.Schema |
getSchema() |
static HoodieRecordIndexInfo.Builder |
newBuilder()
Creates a new HoodieRecordIndexInfo RecordBuilder.
|
static HoodieRecordIndexInfo.Builder |
newBuilder(HoodieRecordIndexInfo.Builder other)
Creates a new HoodieRecordIndexInfo RecordBuilder by copying an existing Builder.
|
static HoodieRecordIndexInfo.Builder |
newBuilder(HoodieRecordIndexInfo other)
Creates a new HoodieRecordIndexInfo RecordBuilder by copying an existing HoodieRecordIndexInfo instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setFileId(String value)
Sets the value of the 'fileId' field.
|
void |
setFileIdEncoding(Integer value)
Sets the value of the 'fileIdEncoding' field.
|
void |
setFileIdHighBits(Long value)
Sets the value of the 'fileIdHighBits' field.
|
void |
setFileIdLowBits(Long value)
Sets the value of the 'fileIdLowBits' field.
|
void |
setFileIndex(Integer value)
Sets the value of the 'fileIndex' field.
|
void |
setInstantTime(Long value)
Sets the value of the 'instantTime' field.
|
void |
setPartitionName(String value)
Sets the value of the 'partitionName' field.
|
void |
setPosition(Long value)
Sets the value of the 'position' field.
|
ByteBuffer |
toByteBuffer()
Serializes this HoodieRecordIndexInfo to a ByteBuffer.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public String partitionName
@Deprecated public Long fileIdHighBits
@Deprecated public Long fileIdLowBits
@Deprecated public Integer fileIndex
@Deprecated public String fileId
@Deprecated public Long instantTime
@Deprecated public int fileIdEncoding
@Deprecated public Long position
public HoodieRecordIndexInfo()
newBuilder().public HoodieRecordIndexInfo(String partitionName, Long fileIdHighBits, Long fileIdLowBits, Integer fileIndex, String fileId, Long instantTime, Integer fileIdEncoding, Long position)
partitionName - Refers to the partition name the record belongs tofileIdHighBits - Refers to high 64 bits if the fileId is based on UUID format.
A UUID based fileId is stored as 3 pieces in RLI (fileIdHighBits, fileIdLowBits and fileIndex).
FileID format is {UUID}-{fileIndex}.fileIdLowBits - Refers to low 64 bits if the fileId is based on UUID format.
A UUID based fileId is stored as 3 pieces in RLI (fileIdHighBits, fileIdLowBits and fileIndex).
FileID format is {UUID}-{fileIndex}.fileIndex - Index representing file index which is used to re-construct UUID based fileID. Applicable when the fileId is based on UUID format.
A UUID based fileId is stored as 3 pieces in RLI (fileIdHighBits, fileIdLowBits and fileIndex).
FileID format is {UUID}-{fileIndex}.fileId - Represents fileId of the location where record belongs to. When the encoding is 1, fileID is stored in raw string format.instantTime - Epoch time in millisecond representing the commit time at which record was addedfileIdEncoding - Represents fileId encoding. Possible values are 0 and 1. O represents UUID based fileID, and 1 represents raw string format of the fileId.
When the encoding is 0, reader can deduce fileID from fileIdLowBits, fileIdHighBits and fileIndex.position - Represents position of record within a file group for easier access. It will be used for index lookup.public static org.apache.avro.Schema getClassSchema()
public static org.apache.avro.message.BinaryMessageDecoder<HoodieRecordIndexInfo> getDecoder()
public static org.apache.avro.message.BinaryMessageDecoder<HoodieRecordIndexInfo> createDecoder(org.apache.avro.message.SchemaStore resolver)
SchemaStore.resolver - a SchemaStore used to find schemas by fingerprintpublic ByteBuffer toByteBuffer() throws IOException
IOExceptionpublic static HoodieRecordIndexInfo 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 String getPartitionName()
public void setPartitionName(String value)
value - the value to set.public Long getFileIdHighBits()
public void setFileIdHighBits(Long value)
value - the value to set.public Long getFileIdLowBits()
public void setFileIdLowBits(Long value)
value - the value to set.public Integer getFileIndex()
public void setFileIndex(Integer value)
value - the value to set.public String getFileId()
public void setFileId(String value)
value - the value to set.public Long getInstantTime()
public void setInstantTime(Long value)
value - the value to set.public Integer getFileIdEncoding()
public void setFileIdEncoding(Integer value)
value - the value to set.public Long getPosition()
public void setPosition(Long value)
value - the value to set.public static HoodieRecordIndexInfo.Builder newBuilder()
public static HoodieRecordIndexInfo.Builder newBuilder(HoodieRecordIndexInfo.Builder other)
other - The existing builder to copy.public static HoodieRecordIndexInfo.Builder newBuilder(HoodieRecordIndexInfo 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.