Class MultiScanResult
- java.lang.Object
-
- org.apache.accumulo.core.dataImpl.thrift.MultiScanResult
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<MultiScanResult>,org.apache.thrift.TBase<MultiScanResult,MultiScanResult._Fields>,org.apache.thrift.TSerializable
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 classMultiScanResult._FieldsThe 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>>failuresList<TKeyExtent>fullScansstatic Map<MultiScanResult._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapbooleanmoreTKeypartNextKeybooleanpartNextKeyInclusiveTKeyExtentpartScanList<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 voidaddToFullScans(TKeyExtent elem)voidaddToResults(TKeyValue elem)voidclear()intcompareTo(MultiScanResult other)MultiScanResultdeepCopy()booleanequals(Object that)booleanequals(MultiScanResult that)MultiScanResult._FieldsfieldForId(int fieldId)Map<TKeyExtent,List<TRange>>getFailures()intgetFailuresSize()ObjectgetFieldValue(MultiScanResult._Fields field)List<TKeyExtent>getFullScans()Iterator<TKeyExtent>getFullScansIterator()intgetFullScansSize()TKeygetPartNextKey()TKeyExtentgetPartScan()List<TKeyValue>getResults()Iterator<TKeyValue>getResultsIterator()intgetResultsSize()inthashCode()booleanisMore()booleanisPartNextKeyInclusive()booleanisSet(MultiScanResult._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetFailures()Returns true if field failures is set (has been assigned a value) and false otherwisebooleanisSetFullScans()Returns true if field fullScans is set (has been assigned a value) and false otherwisebooleanisSetMore()Returns true if field more is set (has been assigned a value) and false otherwisebooleanisSetPartNextKey()Returns true if field partNextKey is set (has been assigned a value) and false otherwisebooleanisSetPartNextKeyInclusive()Returns true if field partNextKeyInclusive is set (has been assigned a value) and false otherwisebooleanisSetPartScan()Returns true if field partScan is set (has been assigned a value) and false otherwisebooleanisSetResults()Returns true if field results is set (has been assigned a value) and false otherwisevoidputToFailures(TKeyExtent key, List<TRange> val)voidread(org.apache.thrift.protocol.TProtocol iprot)MultiScanResultsetFailures(Map<TKeyExtent,List<TRange>> failures)voidsetFailuresIsSet(boolean value)voidsetFieldValue(MultiScanResult._Fields field, Object value)MultiScanResultsetFullScans(List<TKeyExtent> fullScans)voidsetFullScansIsSet(boolean value)MultiScanResultsetMore(boolean more)voidsetMoreIsSet(boolean value)MultiScanResultsetPartNextKey(TKey partNextKey)MultiScanResultsetPartNextKeyInclusive(boolean partNextKeyInclusive)voidsetPartNextKeyInclusiveIsSet(boolean value)voidsetPartNextKeyIsSet(boolean value)MultiScanResultsetPartScan(TKeyExtent partScan)voidsetPartScanIsSet(boolean value)MultiScanResultsetResults(List<TKeyValue> results)voidsetResultsIsSet(boolean value)StringtoString()voidunsetFailures()voidunsetFullScans()voidunsetMore()voidunsetPartNextKey()voidunsetPartNextKeyInclusive()voidunsetPartScan()voidunsetResults()voidvalidate()voidwrite(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:
deepCopyin interfaceorg.apache.thrift.TBase<MultiScanResult,MultiScanResult._Fields>
-
clear
public void clear()
- Specified by:
clearin 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:
setFieldValuein interfaceorg.apache.thrift.TBase<MultiScanResult,MultiScanResult._Fields>
-
getFieldValue
public Object getFieldValue(MultiScanResult._Fields field)
- Specified by:
getFieldValuein 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:
isSetin interfaceorg.apache.thrift.TBase<MultiScanResult,MultiScanResult._Fields>
-
equals
public boolean equals(MultiScanResult that)
-
compareTo
public int compareTo(MultiScanResult other)
- Specified by:
compareToin interfaceComparable<MultiScanResult>
-
fieldForId
public MultiScanResult._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<MultiScanResult,MultiScanResult._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException- Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-