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

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

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

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 java.util.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
 TRange clone()
          Deprecated. 
 int compareTo(TRange other)
           
 TRange deepCopy()
           
 boolean equals(java.lang.Object that)
           
 boolean equals(TRange that)
           
 java.lang.Object getFieldValue(int fieldId)
           
 java.lang.Object getFieldValue(TRange._Fields field)
           
 TKey getStart()
           
 TKey getStop()
           
 int hashCode()
           
 boolean isInfiniteStartKey()
           
 boolean isInfiniteStopKey()
           
 boolean isSet(int fieldID)
           
 boolean isSet(TRange._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetInfiniteStartKey()
          Returns true if field infiniteStartKey is set (has been asigned a value) and false otherwise
 boolean isSetInfiniteStopKey()
          Returns true if field infiniteStopKey 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
 boolean isSetStartKeyInclusive()
          Returns true if field startKeyInclusive is set (has been asigned a value) and false otherwise
 boolean isSetStop()
          Returns true if field stop is set (has been asigned a value) and false otherwise
 boolean isSetStopKeyInclusive()
          Returns true if field stopKeyInclusive is set (has been asigned a value) and false otherwise
 boolean isStartKeyInclusive()
           
 boolean isStopKeyInclusive()
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setFieldValue(int fieldID, java.lang.Object value)
           
 void setFieldValue(TRange._Fields field, java.lang.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)
           
 java.lang.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
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 java.util.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>

clone

@Deprecated
public TRange clone()
Deprecated. 

Overrides:
clone in class java.lang.Object

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 asigned 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 asigned 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 asigned 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 asigned 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 asigned 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 asigned a value) and false otherwise


setInfiniteStopKeyIsSet

public void setInfiniteStopKeyIsSet(boolean value)

setFieldValue

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

setFieldValue

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

getFieldValue

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

getFieldValue

public java.lang.Object getFieldValue(int fieldId)
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 asigned a value) and false otherwise

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

isSet

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

equals

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

equals

public boolean equals(TRange that)

hashCode

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

compareTo

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

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 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 © 2012 The Apache Software Foundation. All Rights Reserved.