public class SliceRange extends java.lang.Object implements org.apache.thrift.TBase<SliceRange,SliceRange._Fields>, java.io.Serializable, java.lang.Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
SliceRange._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
| Modifier and Type | Field and Description |
|---|---|
int |
count |
java.nio.ByteBuffer |
finish |
static java.util.Map<SliceRange._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
boolean |
reversed |
java.nio.ByteBuffer |
start |
| Constructor and Description |
|---|
SliceRange() |
SliceRange(java.nio.ByteBuffer start,
java.nio.ByteBuffer finish,
boolean reversed,
int count) |
SliceRange(SliceRange other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
bufferForFinish() |
java.nio.ByteBuffer |
bufferForStart() |
void |
clear()
Return to the state of having just been initialized, as though you had just
called the default constructor.
|
int |
compareTo(SliceRange other) |
SliceRange |
deepCopy() |
boolean |
equals(java.lang.Object that) |
boolean |
equals(SliceRange that) |
SliceRange._Fields |
fieldForId(int fieldId)
Get the F instance that corresponds to fieldId.
|
int |
getCount() |
java.lang.Object |
getFieldValue(SliceRange._Fields field)
Get a field's value by field variable.
|
byte[] |
getFinish() |
byte[] |
getStart() |
int |
hashCode() |
boolean |
isReversed() |
boolean |
isSet(SliceRange._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetCount()
Returns true if field count is set (has been assigned a value) and false otherwise
|
boolean |
isSetFinish()
Returns true if field finish is set (has been assigned a value) and false otherwise
|
boolean |
isSetReversed()
Returns true if field reversed is set (has been assigned a value) and false otherwise
|
boolean |
isSetStart()
Returns true if field start is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
SliceRange |
setCount(int count) |
void |
setCountIsSet(boolean value) |
void |
setFieldValue(SliceRange._Fields field,
java.lang.Object value)
Set a field's value by field variable.
|
SliceRange |
setFinish(byte[] finish) |
SliceRange |
setFinish(java.nio.ByteBuffer finish) |
void |
setFinishIsSet(boolean value) |
SliceRange |
setReversed(boolean reversed) |
void |
setReversedIsSet(boolean value) |
SliceRange |
setStart(byte[] start) |
SliceRange |
setStart(java.nio.ByteBuffer 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)
Writes the objects out to the protocol
|
public java.nio.ByteBuffer start
public java.nio.ByteBuffer finish
public boolean reversed
public int count
public static final java.util.Map<SliceRange._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public SliceRange()
public SliceRange(java.nio.ByteBuffer start,
java.nio.ByteBuffer finish,
boolean reversed,
int count)
public SliceRange(SliceRange other)
public SliceRange deepCopy()
deepCopy in interface org.apache.thrift.TBase<SliceRange,SliceRange._Fields>public void clear()
org.apache.thrift.TBaseclear in interface org.apache.thrift.TBase<SliceRange,SliceRange._Fields>public byte[] getStart()
public java.nio.ByteBuffer bufferForStart()
public SliceRange setStart(byte[] start)
public SliceRange setStart(java.nio.ByteBuffer start)
public void unsetStart()
public boolean isSetStart()
public void setStartIsSet(boolean value)
public byte[] getFinish()
public java.nio.ByteBuffer bufferForFinish()
public SliceRange setFinish(byte[] finish)
public SliceRange setFinish(java.nio.ByteBuffer 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)
org.apache.thrift.TBasesetFieldValue in interface org.apache.thrift.TBase<SliceRange,SliceRange._Fields>public java.lang.Object getFieldValue(SliceRange._Fields field)
org.apache.thrift.TBasegetFieldValue in interface org.apache.thrift.TBase<SliceRange,SliceRange._Fields>public boolean isSet(SliceRange._Fields field)
isSet in interface org.apache.thrift.TBase<SliceRange,SliceRange._Fields>public boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic boolean equals(SliceRange that)
public int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(SliceRange other)
compareTo in interface java.lang.Comparable<SliceRange>public SliceRange._Fields fieldForId(int fieldId)
org.apache.thrift.TBasefieldForId in interface org.apache.thrift.TBase<SliceRange,SliceRange._Fields>public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
org.apache.thrift.TBaseread in interface org.apache.thrift.TBase<SliceRange,SliceRange._Fields>iprot - Input protocolorg.apache.thrift.TExceptionpublic void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
org.apache.thrift.TBasewrite in interface org.apache.thrift.TBase<SliceRange,SliceRange._Fields>oprot - Output protocolorg.apache.thrift.TExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void validate()
throws org.apache.thrift.TException
org.apache.thrift.TExceptionCopyright © 2014 The Apache Software Foundation