|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.accumulo.proxy.thrift.Key
public class Key
Nested Class Summary | |
---|---|
static class |
Key._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them. |
Field Summary | |
---|---|
ByteBuffer |
colFamily
|
ByteBuffer |
colQualifier
|
ByteBuffer |
colVisibility
|
static Map<Key._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap
|
ByteBuffer |
row
|
long |
timestamp
|
Constructor Summary | |
---|---|
Key()
|
|
Key(ByteBuffer row,
ByteBuffer colFamily,
ByteBuffer colQualifier,
ByteBuffer colVisibility)
|
|
Key(Key other)
Performs a deep copy on other. |
Method Summary | |
---|---|
ByteBuffer |
bufferForColFamily()
|
ByteBuffer |
bufferForColQualifier()
|
ByteBuffer |
bufferForColVisibility()
|
ByteBuffer |
bufferForRow()
|
void |
clear()
|
int |
compareTo(Key other)
|
Key |
deepCopy()
|
boolean |
equals(Key that)
|
boolean |
equals(Object that)
|
Key._Fields |
fieldForId(int fieldId)
|
byte[] |
getColFamily()
|
byte[] |
getColQualifier()
|
byte[] |
getColVisibility()
|
Object |
getFieldValue(Key._Fields field)
|
byte[] |
getRow()
|
long |
getTimestamp()
|
int |
hashCode()
|
boolean |
isSet(Key._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise |
boolean |
isSetColFamily()
Returns true if field colFamily is set (has been assigned a value) and false otherwise |
boolean |
isSetColQualifier()
Returns true if field colQualifier is set (has been assigned a value) and false otherwise |
boolean |
isSetColVisibility()
Returns true if field colVisibility is set (has been assigned a value) and false otherwise |
boolean |
isSetRow()
Returns true if field row is set (has been assigned a value) and false otherwise |
boolean |
isSetTimestamp()
Returns true if field timestamp is set (has been assigned a value) and false otherwise |
void |
read(org.apache.thrift.protocol.TProtocol iprot)
|
Key |
setColFamily(byte[] colFamily)
|
Key |
setColFamily(ByteBuffer colFamily)
|
void |
setColFamilyIsSet(boolean value)
|
Key |
setColQualifier(byte[] colQualifier)
|
Key |
setColQualifier(ByteBuffer colQualifier)
|
void |
setColQualifierIsSet(boolean value)
|
Key |
setColVisibility(byte[] colVisibility)
|
Key |
setColVisibility(ByteBuffer colVisibility)
|
void |
setColVisibilityIsSet(boolean value)
|
void |
setFieldValue(Key._Fields field,
Object value)
|
Key |
setRow(byte[] row)
|
Key |
setRow(ByteBuffer row)
|
void |
setRowIsSet(boolean value)
|
Key |
setTimestamp(long timestamp)
|
void |
setTimestampIsSet(boolean value)
|
String |
toString()
|
void |
unsetColFamily()
|
void |
unsetColQualifier()
|
void |
unsetColVisibility()
|
void |
unsetRow()
|
void |
unsetTimestamp()
|
void |
validate()
|
void |
write(org.apache.thrift.protocol.TProtocol oprot)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public ByteBuffer row
public ByteBuffer colFamily
public ByteBuffer colQualifier
public ByteBuffer colVisibility
public long timestamp
public static final Map<Key._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail |
---|
public Key()
public Key(ByteBuffer row, ByteBuffer colFamily, ByteBuffer colQualifier, ByteBuffer colVisibility)
public Key(Key other)
Method Detail |
---|
public Key deepCopy()
deepCopy
in interface org.apache.thrift.TBase<Key,Key._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<Key,Key._Fields>
public byte[] getRow()
public ByteBuffer bufferForRow()
public Key setRow(byte[] row)
public Key setRow(ByteBuffer row)
public void unsetRow()
public boolean isSetRow()
public void setRowIsSet(boolean value)
public byte[] getColFamily()
public ByteBuffer bufferForColFamily()
public Key setColFamily(byte[] colFamily)
public Key setColFamily(ByteBuffer colFamily)
public void unsetColFamily()
public boolean isSetColFamily()
public void setColFamilyIsSet(boolean value)
public byte[] getColQualifier()
public ByteBuffer bufferForColQualifier()
public Key setColQualifier(byte[] colQualifier)
public Key setColQualifier(ByteBuffer colQualifier)
public void unsetColQualifier()
public boolean isSetColQualifier()
public void setColQualifierIsSet(boolean value)
public byte[] getColVisibility()
public ByteBuffer bufferForColVisibility()
public Key setColVisibility(byte[] colVisibility)
public Key setColVisibility(ByteBuffer colVisibility)
public void unsetColVisibility()
public boolean isSetColVisibility()
public void setColVisibilityIsSet(boolean value)
public long getTimestamp()
public Key setTimestamp(long timestamp)
public void unsetTimestamp()
public boolean isSetTimestamp()
public void setTimestampIsSet(boolean value)
public void setFieldValue(Key._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<Key,Key._Fields>
public Object getFieldValue(Key._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<Key,Key._Fields>
public boolean isSet(Key._Fields field)
isSet
in interface org.apache.thrift.TBase<Key,Key._Fields>
public boolean equals(Object that)
equals
in class Object
public boolean equals(Key that)
public int hashCode()
hashCode
in class Object
public int compareTo(Key other)
compareTo
in interface Comparable<Key>
public Key._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<Key,Key._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<Key,Key._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<Key,Key._Fields>
org.apache.thrift.TException
public String toString()
toString
in class Object
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |