|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.thrift.SliceRange
public class SliceRange
A slice range is a structure that stores basic range, ordering and limit information for a query that will return multiple columns. It could be thought of as Cassandra's version of LIMIT and ORDER BY
Nested Class Summary | |
---|---|
static class |
SliceRange._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them. |
Field Summary | |
---|---|
int |
count
|
byte[] |
finish
|
static java.util.Map<SliceRange._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap
|
boolean |
reversed
|
byte[] |
start
|
Constructor Summary | |
---|---|
SliceRange()
|
|
SliceRange(byte[] start,
byte[] finish,
boolean reversed,
int count)
|
|
SliceRange(SliceRange other)
Performs a deep copy on other. |
Method Summary | |
---|---|
SliceRange |
clone()
Deprecated. |
int |
compareTo(SliceRange other)
|
SliceRange |
deepCopy()
|
boolean |
equals(java.lang.Object that)
|
boolean |
equals(SliceRange that)
|
int |
getCount()
|
java.lang.Object |
getFieldValue(int fieldId)
|
java.lang.Object |
getFieldValue(SliceRange._Fields field)
|
byte[] |
getFinish()
|
byte[] |
getStart()
|
int |
hashCode()
|
boolean |
isReversed()
|
boolean |
isSet(int fieldID)
|
boolean |
isSet(SliceRange._Fields field)
Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise |
boolean |
isSetCount()
Returns true if field count is set (has been asigned a value) and false otherwise |
boolean |
isSetFinish()
Returns true if field finish is set (has been asigned a value) and false otherwise |
boolean |
isSetReversed()
Returns true if field reversed is set (has been asigned a value) and false otherwise |
boolean |
isSetStart()
Returns true if field start is set (has been asigned a value) and false otherwise |
void |
read(org.apache.thrift.protocol.TProtocol iprot)
|
SliceRange |
setCount(int count)
|
void |
setCountIsSet(boolean value)
|
void |
setFieldValue(int fieldID,
java.lang.Object value)
|
void |
setFieldValue(SliceRange._Fields field,
java.lang.Object value)
|
SliceRange |
setFinish(byte[] finish)
|
void |
setFinishIsSet(boolean value)
|
SliceRange |
setReversed(boolean reversed)
|
void |
setReversedIsSet(boolean value)
|
SliceRange |
setStart(byte[] start)
|
void |
setStartIsSet(boolean value)
|
java.lang.String |
toString()
|
void |
unsetCount()
|
void |
unsetFinish()
|
void |
unsetReversed()
|
void |
unsetStart()
|
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 |
---|
public byte[] start
public byte[] finish
public boolean reversed
public int count
public static final java.util.Map<SliceRange._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail |
---|
public SliceRange()
public SliceRange(byte[] start, byte[] finish, boolean reversed, int count)
public SliceRange(SliceRange other)
Method Detail |
---|
public SliceRange deepCopy()
deepCopy
in interface org.apache.thrift.TBase<SliceRange._Fields>
@Deprecated public SliceRange clone()
clone
in class java.lang.Object
public byte[] getStart()
public SliceRange setStart(byte[] start)
public void unsetStart()
public boolean isSetStart()
public void setStartIsSet(boolean value)
public byte[] getFinish()
public SliceRange setFinish(byte[] finish)
public void unsetFinish()
public boolean isSetFinish()
public void setFinishIsSet(boolean value)
public boolean isReversed()
public SliceRange setReversed(boolean reversed)
public void unsetReversed()
public boolean isSetReversed()
public void setReversedIsSet(boolean value)
public int getCount()
public SliceRange setCount(int count)
public void unsetCount()
public boolean isSetCount()
public void setCountIsSet(boolean value)
public void setFieldValue(SliceRange._Fields field, java.lang.Object value)
setFieldValue
in interface org.apache.thrift.TBase<SliceRange._Fields>
public void setFieldValue(int fieldID, java.lang.Object value)
setFieldValue
in interface org.apache.thrift.TBase<SliceRange._Fields>
public java.lang.Object getFieldValue(SliceRange._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<SliceRange._Fields>
public java.lang.Object getFieldValue(int fieldId)
getFieldValue
in interface org.apache.thrift.TBase<SliceRange._Fields>
public boolean isSet(SliceRange._Fields field)
isSet
in interface org.apache.thrift.TBase<SliceRange._Fields>
public boolean isSet(int fieldID)
isSet
in interface org.apache.thrift.TBase<SliceRange._Fields>
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public boolean equals(SliceRange that)
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(SliceRange other)
compareTo
in interface java.lang.Comparable<SliceRange>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<SliceRange._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<SliceRange._Fields>
org.apache.thrift.TException
public java.lang.String toString()
toString
in class java.lang.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 |