public class TRange extends Object implements org.apache.thrift.TBase<TRange,TRange._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
TRange._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
boolean |
infiniteStartKey |
boolean |
infiniteStopKey |
static Map<TRange._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
TKey |
start |
boolean |
startKeyInclusive |
TKey |
stop |
boolean |
stopKeyInclusive |
Constructor and Description |
---|
TRange() |
TRange(TKey start,
TKey stop,
boolean startKeyInclusive,
boolean stopKeyInclusive,
boolean infiniteStartKey,
boolean infiniteStopKey) |
TRange(TRange other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(TRange other) |
TRange |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(TRange that) |
TRange._Fields |
fieldForId(int fieldId) |
Object |
getFieldValue(TRange._Fields field) |
TKey |
getStart() |
TKey |
getStop() |
int |
hashCode() |
boolean |
isInfiniteStartKey() |
boolean |
isInfiniteStopKey() |
boolean |
isSet(TRange._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetInfiniteStartKey()
Returns true if field infiniteStartKey is set (has been assigned a value) and false otherwise
|
boolean |
isSetInfiniteStopKey()
Returns true if field infiniteStopKey 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
|
boolean |
isSetStartKeyInclusive()
Returns true if field startKeyInclusive is set (has been assigned a value) and false otherwise
|
boolean |
isSetStop()
Returns true if field stop is set (has been assigned a value) and false otherwise
|
boolean |
isSetStopKeyInclusive()
Returns true if field stopKeyInclusive is set (has been assigned a value) and false otherwise
|
boolean |
isStartKeyInclusive() |
boolean |
isStopKeyInclusive() |
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldValue(TRange._Fields field,
Object value) |
TRange |
setInfiniteStartKey(boolean infiniteStartKey) |
void |
setInfiniteStartKeyIsSet(boolean value) |
TRange |
setInfiniteStopKey(boolean infiniteStopKey) |
void |
setInfiniteStopKeyIsSet(boolean value) |
TRange |
setStart(TKey start) |
void |
setStartIsSet(boolean value) |
TRange |
setStartKeyInclusive(boolean startKeyInclusive) |
void |
setStartKeyInclusiveIsSet(boolean value) |
TRange |
setStop(TKey stop) |
void |
setStopIsSet(boolean value) |
TRange |
setStopKeyInclusive(boolean stopKeyInclusive) |
void |
setStopKeyInclusiveIsSet(boolean value) |
String |
toString() |
void |
unsetInfiniteStartKey() |
void |
unsetInfiniteStopKey() |
void |
unsetStart() |
void |
unsetStartKeyInclusive() |
void |
unsetStop() |
void |
unsetStopKeyInclusive() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public TKey start
public TKey stop
public boolean startKeyInclusive
public boolean stopKeyInclusive
public boolean infiniteStartKey
public boolean infiniteStopKey
public static final Map<TRange._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public TRange()
public TRange(TKey start, TKey stop, boolean startKeyInclusive, boolean stopKeyInclusive, boolean infiniteStartKey, boolean infiniteStopKey)
public TRange(TRange other)
public TRange deepCopy()
deepCopy
in interface org.apache.thrift.TBase<TRange,TRange._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<TRange,TRange._Fields>
public TKey getStart()
public void unsetStart()
public boolean isSetStart()
public void setStartIsSet(boolean value)
public TKey getStop()
public void unsetStop()
public boolean isSetStop()
public void setStopIsSet(boolean value)
public boolean isStartKeyInclusive()
public TRange setStartKeyInclusive(boolean startKeyInclusive)
public void unsetStartKeyInclusive()
public boolean isSetStartKeyInclusive()
public void setStartKeyInclusiveIsSet(boolean value)
public boolean isStopKeyInclusive()
public TRange setStopKeyInclusive(boolean stopKeyInclusive)
public void unsetStopKeyInclusive()
public boolean isSetStopKeyInclusive()
public void setStopKeyInclusiveIsSet(boolean value)
public boolean isInfiniteStartKey()
public TRange setInfiniteStartKey(boolean infiniteStartKey)
public void unsetInfiniteStartKey()
public boolean isSetInfiniteStartKey()
public void setInfiniteStartKeyIsSet(boolean value)
public boolean isInfiniteStopKey()
public TRange setInfiniteStopKey(boolean infiniteStopKey)
public void unsetInfiniteStopKey()
public boolean isSetInfiniteStopKey()
public void setInfiniteStopKeyIsSet(boolean value)
public void setFieldValue(TRange._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<TRange,TRange._Fields>
public Object getFieldValue(TRange._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<TRange,TRange._Fields>
public boolean isSet(TRange._Fields field)
isSet
in interface org.apache.thrift.TBase<TRange,TRange._Fields>
public boolean equals(TRange that)
public int compareTo(TRange other)
compareTo
in interface Comparable<TRange>
public TRange._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<TRange,TRange._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<TRange,TRange._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<TRange,TRange._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.