@Generated(value="Autogenerated by Thrift Compiler (0.9.3)") public class PartitionInfo extends Object implements org.apache.thrift.TBase<PartitionInfo,PartitionInfo._Fields>, Serializable, Cloneable, Comparable<PartitionInfo>
Modifier and Type | Class and Description |
---|---|
static class |
PartitionInfo._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
static Map<PartitionInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
PartitionInfo() |
PartitionInfo(ByteBuffer keyStart,
ByteBuffer keyLimit,
long blockId,
int keyCount) |
PartitionInfo(PartitionInfo other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
bufferForKeyLimit() |
ByteBuffer |
bufferForKeyStart() |
void |
clear() |
int |
compareTo(PartitionInfo other) |
PartitionInfo |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(PartitionInfo that) |
PartitionInfo._Fields |
fieldForId(int fieldId) |
long |
getBlockId() |
Object |
getFieldValue(PartitionInfo._Fields field) |
int |
getKeyCount() |
byte[] |
getKeyLimit() |
byte[] |
getKeyStart() |
int |
hashCode() |
boolean |
isSet(PartitionInfo._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetBlockId()
Returns true if field blockId is set (has been assigned a value) and false otherwise
|
boolean |
isSetKeyCount()
Returns true if field keyCount is set (has been assigned a value) and false otherwise
|
boolean |
isSetKeyLimit()
Returns true if field keyLimit is set (has been assigned a value) and false otherwise
|
boolean |
isSetKeyStart()
Returns true if field keyStart is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
PartitionInfo |
setBlockId(long blockId) |
void |
setBlockIdIsSet(boolean value) |
void |
setFieldValue(PartitionInfo._Fields field,
Object value) |
PartitionInfo |
setKeyCount(int keyCount) |
void |
setKeyCountIsSet(boolean value) |
PartitionInfo |
setKeyLimit(byte[] keyLimit) |
PartitionInfo |
setKeyLimit(ByteBuffer keyLimit) |
void |
setKeyLimitIsSet(boolean value) |
PartitionInfo |
setKeyStart(byte[] keyStart) |
PartitionInfo |
setKeyStart(ByteBuffer keyStart) |
void |
setKeyStartIsSet(boolean value) |
String |
toString() |
void |
unsetBlockId() |
void |
unsetKeyCount() |
void |
unsetKeyLimit() |
void |
unsetKeyStart() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<PartitionInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public PartitionInfo()
public PartitionInfo(ByteBuffer keyStart, ByteBuffer keyLimit, long blockId, int keyCount)
public PartitionInfo(PartitionInfo other)
public PartitionInfo deepCopy()
deepCopy
in interface org.apache.thrift.TBase<PartitionInfo,PartitionInfo._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<PartitionInfo,PartitionInfo._Fields>
public byte[] getKeyStart()
public ByteBuffer bufferForKeyStart()
public PartitionInfo setKeyStart(byte[] keyStart)
public PartitionInfo setKeyStart(ByteBuffer keyStart)
public void unsetKeyStart()
public boolean isSetKeyStart()
public void setKeyStartIsSet(boolean value)
public byte[] getKeyLimit()
public ByteBuffer bufferForKeyLimit()
public PartitionInfo setKeyLimit(byte[] keyLimit)
public PartitionInfo setKeyLimit(ByteBuffer keyLimit)
public void unsetKeyLimit()
public boolean isSetKeyLimit()
public void setKeyLimitIsSet(boolean value)
public long getBlockId()
public PartitionInfo setBlockId(long blockId)
public void unsetBlockId()
public boolean isSetBlockId()
public void setBlockIdIsSet(boolean value)
public int getKeyCount()
public PartitionInfo setKeyCount(int keyCount)
public void unsetKeyCount()
public boolean isSetKeyCount()
public void setKeyCountIsSet(boolean value)
public void setFieldValue(PartitionInfo._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<PartitionInfo,PartitionInfo._Fields>
public Object getFieldValue(PartitionInfo._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<PartitionInfo,PartitionInfo._Fields>
public boolean isSet(PartitionInfo._Fields field)
isSet
in interface org.apache.thrift.TBase<PartitionInfo,PartitionInfo._Fields>
public boolean equals(PartitionInfo that)
public int compareTo(PartitionInfo other)
compareTo
in interface Comparable<PartitionInfo>
public PartitionInfo._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<PartitionInfo,PartitionInfo._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<PartitionInfo,PartitionInfo._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<PartitionInfo,PartitionInfo._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2023. All Rights Reserved.