@Generated(value="Autogenerated by Thrift Compiler (0.9.3)") public class PartitionInfo extends java.lang.Object implements org.apache.thrift.TBase<PartitionInfo,PartitionInfo._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.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 java.util.Map<PartitionInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
PartitionInfo() |
PartitionInfo(java.nio.ByteBuffer keyStart,
java.nio.ByteBuffer keyLimit,
long blockId,
int keyCount) |
PartitionInfo(PartitionInfo other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
bufferForKeyLimit() |
java.nio.ByteBuffer |
bufferForKeyStart() |
void |
clear() |
int |
compareTo(PartitionInfo other) |
PartitionInfo |
deepCopy() |
boolean |
equals(java.lang.Object that) |
boolean |
equals(PartitionInfo that) |
PartitionInfo._Fields |
fieldForId(int fieldId) |
long |
getBlockId() |
java.lang.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,
java.lang.Object value) |
PartitionInfo |
setKeyCount(int keyCount) |
void |
setKeyCountIsSet(boolean value) |
PartitionInfo |
setKeyLimit(byte[] keyLimit) |
PartitionInfo |
setKeyLimit(java.nio.ByteBuffer keyLimit) |
void |
setKeyLimitIsSet(boolean value) |
PartitionInfo |
setKeyStart(byte[] keyStart) |
PartitionInfo |
setKeyStart(java.nio.ByteBuffer keyStart) |
void |
setKeyStartIsSet(boolean value) |
java.lang.String |
toString() |
void |
unsetBlockId() |
void |
unsetKeyCount() |
void |
unsetKeyLimit() |
void |
unsetKeyStart() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final java.util.Map<PartitionInfo._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public PartitionInfo()
public PartitionInfo(java.nio.ByteBuffer keyStart,
java.nio.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 java.nio.ByteBuffer bufferForKeyStart()
public PartitionInfo setKeyStart(byte[] keyStart)
public PartitionInfo setKeyStart(java.nio.ByteBuffer keyStart)
public void unsetKeyStart()
public boolean isSetKeyStart()
public void setKeyStartIsSet(boolean value)
public byte[] getKeyLimit()
public java.nio.ByteBuffer bufferForKeyLimit()
public PartitionInfo setKeyLimit(byte[] keyLimit)
public PartitionInfo setKeyLimit(java.nio.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, java.lang.Object value)
setFieldValue in interface org.apache.thrift.TBase<PartitionInfo,PartitionInfo._Fields>public java.lang.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(java.lang.Object that)
equals in class java.lang.Objectpublic boolean equals(PartitionInfo that)
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(PartitionInfo other)
compareTo in interface java.lang.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.TExceptionpublic 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.TExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2019. All Rights Reserved.