Class MultiScanResult
- java.lang.Object
-
- 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
Nested Classes Modifier and Type Class Description static class
MultiScanResult._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToFullScans(TKeyExtent elem)
void
addToResults(TKeyValue elem)
void
clear()
int
compareTo(MultiScanResult other)
MultiScanResult
deepCopy()
boolean
equals(Object that)
boolean
equals(MultiScanResult 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 otherwiseboolean
isSetFailures()
Returns true if field failures is set (has been assigned a value) and false otherwiseboolean
isSetFullScans()
Returns true if field fullScans is set (has been assigned a value) and false otherwiseboolean
isSetMore()
Returns true if field more is set (has been assigned a value) and false otherwiseboolean
isSetPartNextKey()
Returns true if field partNextKey is set (has been assigned a value) and false otherwiseboolean
isSetPartNextKeyInclusive()
Returns true if field partNextKeyInclusive is set (has been assigned a value) and false otherwiseboolean
isSetPartScan()
Returns true if field partScan is set (has been assigned a value) and false otherwiseboolean
isSetResults()
Returns true if field results is set (has been assigned a value) and false otherwisevoid
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)
-
-
-
Field Detail
-
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 interfaceorg.apache.thrift.TBase<MultiScanResult,MultiScanResult._Fields>
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.apache.thrift.TBase<MultiScanResult,MultiScanResult._Fields>
-
getResultsSize
public int getResultsSize()
-
addToResults
public void addToResults(TKeyValue elem)
-
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 interfaceorg.apache.thrift.TBase<MultiScanResult,MultiScanResult._Fields>
-
getFieldValue
public Object getFieldValue(MultiScanResult._Fields field)
- Specified by:
getFieldValue
in interfaceorg.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 interfaceorg.apache.thrift.TBase<MultiScanResult,MultiScanResult._Fields>
-
equals
public boolean equals(MultiScanResult that)
-
compareTo
public int compareTo(MultiScanResult other)
- Specified by:
compareTo
in interfaceComparable<MultiScanResult>
-
fieldForId
public MultiScanResult._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interfaceorg.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 interfaceorg.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 interfaceorg.apache.thrift.TBase<MultiScanResult,MultiScanResult._Fields>
- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
-