org.apache.accumulo.core.data.thrift
Class TRange

java.lang.Object
  extended by org.apache.accumulo.core.data.thrift.TRange
All Implemented Interfaces:
Serializable, Cloneable, Comparable<TRange>, org.apache.thrift.TBase<TRange,TRange._Fields>

public class TRange
extends Object
implements org.apache.thrift.TBase<TRange,TRange._Fields>, Serializable, Cloneable, Comparable<TRange>

See Also:
Serialized Form

Nested Class Summary
static class TRange._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 boolean infiniteStartKey
           
 boolean infiniteStopKey
           
static Map<TRange._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 TKey start
           
 boolean startKeyInclusive
           
 TKey stop
           
 boolean stopKeyInclusive
           
 
Constructor Summary
TRange()
           
TRange(TKey start, TKey stop, boolean startKeyInclusive, boolean stopKeyInclusive, boolean infiniteStartKey, boolean infiniteStopKey)
           
TRange(TRange other)
          Performs a deep copy on other.
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

start

public TKey start

stop

public TKey stop

startKeyInclusive

public boolean startKeyInclusive

stopKeyInclusive

public boolean stopKeyInclusive

infiniteStartKey

public boolean infiniteStartKey

infiniteStopKey

public boolean infiniteStopKey

metaDataMap

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

TRange

public TRange()

TRange

public TRange(TKey start,
              TKey stop,
              boolean startKeyInclusive,
              boolean stopKeyInclusive,
              boolean infiniteStartKey,
              boolean infiniteStopKey)

TRange

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

Method Detail

deepCopy

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

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<TRange,TRange._Fields>

getStart

public TKey getStart()

setStart

public TRange setStart(TKey start)

unsetStart

public void unsetStart()

isSetStart

public boolean isSetStart()
Returns true if field start is set (has been assigned a value) and false otherwise


setStartIsSet

public void setStartIsSet(boolean value)

getStop

public TKey getStop()

setStop

public TRange setStop(TKey stop)

unsetStop

public void unsetStop()

isSetStop

public boolean isSetStop()
Returns true if field stop is set (has been assigned a value) and false otherwise


setStopIsSet

public void setStopIsSet(boolean value)

isStartKeyInclusive

public boolean isStartKeyInclusive()

setStartKeyInclusive

public TRange setStartKeyInclusive(boolean startKeyInclusive)

unsetStartKeyInclusive

public void unsetStartKeyInclusive()

isSetStartKeyInclusive

public boolean isSetStartKeyInclusive()
Returns true if field startKeyInclusive is set (has been assigned a value) and false otherwise


setStartKeyInclusiveIsSet

public void setStartKeyInclusiveIsSet(boolean value)

isStopKeyInclusive

public boolean isStopKeyInclusive()

setStopKeyInclusive

public TRange setStopKeyInclusive(boolean stopKeyInclusive)

unsetStopKeyInclusive

public void unsetStopKeyInclusive()

isSetStopKeyInclusive

public boolean isSetStopKeyInclusive()
Returns true if field stopKeyInclusive is set (has been assigned a value) and false otherwise


setStopKeyInclusiveIsSet

public void setStopKeyInclusiveIsSet(boolean value)

isInfiniteStartKey

public boolean isInfiniteStartKey()

setInfiniteStartKey

public TRange setInfiniteStartKey(boolean infiniteStartKey)

unsetInfiniteStartKey

public void unsetInfiniteStartKey()

isSetInfiniteStartKey

public boolean isSetInfiniteStartKey()
Returns true if field infiniteStartKey is set (has been assigned a value) and false otherwise


setInfiniteStartKeyIsSet

public void setInfiniteStartKeyIsSet(boolean value)

isInfiniteStopKey

public boolean isInfiniteStopKey()

setInfiniteStopKey

public TRange setInfiniteStopKey(boolean infiniteStopKey)

unsetInfiniteStopKey

public void unsetInfiniteStopKey()

isSetInfiniteStopKey

public boolean isSetInfiniteStopKey()
Returns true if field infiniteStopKey is set (has been assigned a value) and false otherwise


setInfiniteStopKeyIsSet

public void setInfiniteStopKeyIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

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

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(TRange that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(TRange other)
Specified by:
compareTo in interface Comparable<TRange>

fieldForId

public TRange._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<TRange,TRange._Fields>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<TRange,TRange._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<TRange,TRange._Fields>
Throws:
org.apache.thrift.TException

toString

public String toString()
Overrides:
toString in class Object

validate

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


Copyright © 2015 Apache Accumulo Project. All rights reserved.