org.apache.cassandra.thrift
Class RowPredicate

java.lang.Object
  extended by org.apache.cassandra.thrift.RowPredicate
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<RowPredicate>, org.apache.thrift.TBase<RowPredicate,RowPredicate._Fields>

public class RowPredicate
extends java.lang.Object
implements org.apache.thrift.TBase<RowPredicate,RowPredicate._Fields>, java.io.Serializable, java.lang.Cloneable

See Also:
Serialized Form

Nested Class Summary
static class RowPredicate._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 IndexClause index_clause
           
 KeyRange key_range
           
 java.util.List<byte[]> keys
           
static java.util.Map<RowPredicate._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
RowPredicate()
           
RowPredicate(RowPredicate other)
          Performs a deep copy on other.
 
Method Summary
 void addToKeys(byte[] elem)
           
 RowPredicate clone()
          Deprecated. 
 int compareTo(RowPredicate other)
           
 RowPredicate deepCopy()
           
 boolean equals(java.lang.Object that)
           
 boolean equals(RowPredicate that)
           
 java.lang.Object getFieldValue(int fieldId)
           
 java.lang.Object getFieldValue(RowPredicate._Fields field)
           
 IndexClause getIndex_clause()
           
 KeyRange getKey_range()
           
 java.util.List<byte[]> getKeys()
           
 java.util.Iterator<byte[]> getKeysIterator()
           
 int getKeysSize()
           
 int hashCode()
           
 boolean isSet(int fieldID)
           
 boolean isSet(RowPredicate._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetIndex_clause()
          Returns true if field index_clause is set (has been asigned a value) and false otherwise
 boolean isSetKey_range()
          Returns true if field key_range is set (has been asigned a value) and false otherwise
 boolean isSetKeys()
          Returns true if field keys is set (has been asigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setFieldValue(int fieldID, java.lang.Object value)
           
 void setFieldValue(RowPredicate._Fields field, java.lang.Object value)
           
 RowPredicate setIndex_clause(IndexClause index_clause)
           
 void setIndex_clauseIsSet(boolean value)
           
 RowPredicate setKey_range(KeyRange key_range)
           
 void setKey_rangeIsSet(boolean value)
           
 RowPredicate setKeys(java.util.List<byte[]> keys)
           
 void setKeysIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetIndex_clause()
           
 void unsetKey_range()
           
 void unsetKeys()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

keys

public java.util.List<byte[]> keys

key_range

public KeyRange key_range

index_clause

public IndexClause index_clause

metaDataMap

public static final java.util.Map<RowPredicate._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

RowPredicate

public RowPredicate()

RowPredicate

public RowPredicate(RowPredicate other)
Performs a deep copy on other.

Method Detail

deepCopy

public RowPredicate deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<RowPredicate,RowPredicate._Fields>

clone

@Deprecated
public RowPredicate clone()
Deprecated. 

Overrides:
clone in class java.lang.Object

getKeysSize

public int getKeysSize()

getKeysIterator

public java.util.Iterator<byte[]> getKeysIterator()

addToKeys

public void addToKeys(byte[] elem)

getKeys

public java.util.List<byte[]> getKeys()

setKeys

public RowPredicate setKeys(java.util.List<byte[]> keys)

unsetKeys

public void unsetKeys()

isSetKeys

public boolean isSetKeys()
Returns true if field keys is set (has been asigned a value) and false otherwise


setKeysIsSet

public void setKeysIsSet(boolean value)

getKey_range

public KeyRange getKey_range()

setKey_range

public RowPredicate setKey_range(KeyRange key_range)

unsetKey_range

public void unsetKey_range()

isSetKey_range

public boolean isSetKey_range()
Returns true if field key_range is set (has been asigned a value) and false otherwise


setKey_rangeIsSet

public void setKey_rangeIsSet(boolean value)

getIndex_clause

public IndexClause getIndex_clause()

setIndex_clause

public RowPredicate setIndex_clause(IndexClause index_clause)

unsetIndex_clause

public void unsetIndex_clause()

isSetIndex_clause

public boolean isSetIndex_clause()
Returns true if field index_clause is set (has been asigned a value) and false otherwise


setIndex_clauseIsSet

public void setIndex_clauseIsSet(boolean value)

setFieldValue

public void setFieldValue(RowPredicate._Fields field,
                          java.lang.Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<RowPredicate,RowPredicate._Fields>

setFieldValue

public void setFieldValue(int fieldID,
                          java.lang.Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<RowPredicate,RowPredicate._Fields>

getFieldValue

public java.lang.Object getFieldValue(RowPredicate._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<RowPredicate,RowPredicate._Fields>

getFieldValue

public java.lang.Object getFieldValue(int fieldId)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<RowPredicate,RowPredicate._Fields>

isSet

public boolean isSet(RowPredicate._Fields field)
Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<RowPredicate,RowPredicate._Fields>

isSet

public boolean isSet(int fieldID)
Specified by:
isSet in interface org.apache.thrift.TBase<RowPredicate,RowPredicate._Fields>

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(RowPredicate that)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(RowPredicate other)
Specified by:
compareTo in interface java.lang.Comparable<RowPredicate>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<RowPredicate,RowPredicate._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<RowPredicate,RowPredicate._Fields>
Throws:
org.apache.thrift.TException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2010 The Apache Software Foundation