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

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

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

See Also:
Serialized Form

Nested Class Summary
static class MultiScanResult._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 Map<TKeyExtent,List<TRange>> failures
           
 List<TKeyExtent> fullScans
           
static Map<MultiScanResult._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 boolean more
           
 TKey partNextKey
           
 boolean partNextKeyInclusive
           
 TKeyExtent partScan
           
 List<TKeyValue> results
           
 
Constructor Summary
MultiScanResult()
           
MultiScanResult(List<TKeyValue> results, Map<TKeyExtent,List<TRange>> failures, List<TKeyExtent> fullScans, TKeyExtent partScan, TKey partNextKey, boolean partNextKeyInclusive, boolean more)
           
MultiScanResult(MultiScanResult other)
          Performs a deep copy on other.
 
Method Summary
 void addToFullScans(TKeyExtent elem)
           
 void addToResults(TKeyValue elem)
           
 void clear()
           
 int compareTo(MultiScanResult other)
           
 MultiScanResult deepCopy()
           
 boolean equals(MultiScanResult that)
           
 boolean equals(Object that)
           
 MultiScanResult._Fields fieldForId(int fieldId)
           
 Map<TKeyExtent,List<TRange>> getFailures()
           
 int getFailuresSize()
           
 Object getFieldValue(MultiScanResult._Fields field)
           
 List<TKeyExtent> getFullScans()
           
 Iterator<TKeyExtent> getFullScansIterator()
           
 int getFullScansSize()
           
 TKey getPartNextKey()
           
 TKeyExtent getPartScan()
           
 List<TKeyValue> getResults()
           
 Iterator<TKeyValue> getResultsIterator()
           
 int getResultsSize()
           
 int hashCode()
           
 boolean isMore()
           
 boolean isPartNextKeyInclusive()
           
 boolean isSet(MultiScanResult._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetFailures()
          Returns true if field failures is set (has been assigned a value) and false otherwise
 boolean isSetFullScans()
          Returns true if field fullScans is set (has been assigned a value) and false otherwise
 boolean isSetMore()
          Returns true if field more is set (has been assigned a value) and false otherwise
 boolean isSetPartNextKey()
          Returns true if field partNextKey is set (has been assigned a value) and false otherwise
 boolean isSetPartNextKeyInclusive()
          Returns true if field partNextKeyInclusive is set (has been assigned a value) and false otherwise
 boolean isSetPartScan()
          Returns true if field partScan is set (has been assigned a value) and false otherwise
 boolean isSetResults()
          Returns true if field results is set (has been assigned a value) and false otherwise
 void putToFailures(TKeyExtent key, List<TRange> val)
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 MultiScanResult setFailures(Map<TKeyExtent,List<TRange>> failures)
           
 void setFailuresIsSet(boolean value)
           
 void setFieldValue(MultiScanResult._Fields field, Object value)
           
 MultiScanResult setFullScans(List<TKeyExtent> fullScans)
           
 void setFullScansIsSet(boolean value)
           
 MultiScanResult setMore(boolean more)
           
 void setMoreIsSet(boolean value)
           
 MultiScanResult setPartNextKey(TKey partNextKey)
           
 MultiScanResult setPartNextKeyInclusive(boolean partNextKeyInclusive)
           
 void setPartNextKeyInclusiveIsSet(boolean value)
           
 void setPartNextKeyIsSet(boolean value)
           
 MultiScanResult setPartScan(TKeyExtent partScan)
           
 void setPartScanIsSet(boolean value)
           
 MultiScanResult setResults(List<TKeyValue> results)
           
 void setResultsIsSet(boolean value)
           
 String toString()
           
 void unsetFailures()
           
 void unsetFullScans()
           
 void unsetMore()
           
 void unsetPartNextKey()
           
 void unsetPartNextKeyInclusive()
           
 void unsetPartScan()
           
 void unsetResults()
           
 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

results

public List<TKeyValue> results

failures

public Map<TKeyExtent,List<TRange>> failures

fullScans

public List<TKeyExtent> fullScans

partScan

public TKeyExtent partScan

partNextKey

public TKey partNextKey

partNextKeyInclusive

public boolean partNextKeyInclusive

more

public boolean more

metaDataMap

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

MultiScanResult

public MultiScanResult()

MultiScanResult

public MultiScanResult(List<TKeyValue> results,
                       Map<TKeyExtent,List<TRange>> failures,
                       List<TKeyExtent> fullScans,
                       TKeyExtent partScan,
                       TKey partNextKey,
                       boolean partNextKeyInclusive,
                       boolean more)

MultiScanResult

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

Method Detail

deepCopy

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

clear

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

getResultsSize

public int getResultsSize()

getResultsIterator

public Iterator<TKeyValue> getResultsIterator()

addToResults

public void addToResults(TKeyValue elem)

getResults

public List<TKeyValue> getResults()

setResults

public MultiScanResult setResults(List<TKeyValue> results)

unsetResults

public void unsetResults()

isSetResults

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


setResultsIsSet

public void setResultsIsSet(boolean value)

getFailuresSize

public int getFailuresSize()

putToFailures

public void putToFailures(TKeyExtent key,
                          List<TRange> val)

getFailures

public Map<TKeyExtent,List<TRange>> getFailures()

setFailures

public MultiScanResult setFailures(Map<TKeyExtent,List<TRange>> failures)

unsetFailures

public void unsetFailures()

isSetFailures

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


setFailuresIsSet

public void setFailuresIsSet(boolean value)

getFullScansSize

public int getFullScansSize()

getFullScansIterator

public Iterator<TKeyExtent> getFullScansIterator()

addToFullScans

public void addToFullScans(TKeyExtent elem)

getFullScans

public List<TKeyExtent> getFullScans()

setFullScans

public MultiScanResult setFullScans(List<TKeyExtent> fullScans)

unsetFullScans

public void unsetFullScans()

isSetFullScans

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


setFullScansIsSet

public void setFullScansIsSet(boolean value)

getPartScan

public TKeyExtent getPartScan()

setPartScan

public MultiScanResult setPartScan(TKeyExtent partScan)

unsetPartScan

public void unsetPartScan()

isSetPartScan

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


setPartScanIsSet

public void setPartScanIsSet(boolean value)

getPartNextKey

public TKey getPartNextKey()

setPartNextKey

public MultiScanResult setPartNextKey(TKey partNextKey)

unsetPartNextKey

public void unsetPartNextKey()

isSetPartNextKey

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


setPartNextKeyIsSet

public void setPartNextKeyIsSet(boolean value)

isPartNextKeyInclusive

public boolean isPartNextKeyInclusive()

setPartNextKeyInclusive

public MultiScanResult setPartNextKeyInclusive(boolean partNextKeyInclusive)

unsetPartNextKeyInclusive

public void unsetPartNextKeyInclusive()

isSetPartNextKeyInclusive

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


setPartNextKeyInclusiveIsSet

public void setPartNextKeyInclusiveIsSet(boolean value)

isMore

public boolean isMore()

setMore

public MultiScanResult setMore(boolean more)

unsetMore

public void unsetMore()

isSetMore

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


setMoreIsSet

public void setMoreIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

public boolean isSet(MultiScanResult._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<MultiScanResult,MultiScanResult._Fields>

equals

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

equals

public boolean equals(MultiScanResult that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public MultiScanResult._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<MultiScanResult,MultiScanResult._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<MultiScanResult,MultiScanResult._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<MultiScanResult,MultiScanResult._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.