Class TSummary
- java.lang.Object
-
- org.apache.accumulo.core.dataImpl.thrift.TSummary
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TSummary>,org.apache.thrift.TBase<TSummary,TSummary._Fields>,org.apache.thrift.TSerializable
public class TSummary extends Object implements org.apache.thrift.TBase<TSummary,TSummary._Fields>, Serializable, Cloneable, Comparable<TSummary>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTSummary._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description TSummarizerConfigurationconfiglongfilesContaininglongfilesExceedinglongfilesLargestatic Map<TSummary._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapMap<String,Long>summary
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intcompareTo(TSummary other)TSummarydeepCopy()booleanequals(Object that)booleanequals(TSummary that)TSummary._FieldsfieldForId(int fieldId)TSummarizerConfigurationgetConfig()ObjectgetFieldValue(TSummary._Fields field)longgetFilesContaining()longgetFilesExceeding()longgetFilesLarge()Map<String,Long>getSummary()intgetSummarySize()inthashCode()booleanisSet(TSummary._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetConfig()Returns true if field config is set (has been assigned a value) and false otherwisebooleanisSetFilesContaining()Returns true if field filesContaining is set (has been assigned a value) and false otherwisebooleanisSetFilesExceeding()Returns true if field filesExceeding is set (has been assigned a value) and false otherwisebooleanisSetFilesLarge()Returns true if field filesLarge is set (has been assigned a value) and false otherwisebooleanisSetSummary()Returns true if field summary is set (has been assigned a value) and false otherwisevoidputToSummary(String key, long val)voidread(org.apache.thrift.protocol.TProtocol iprot)TSummarysetConfig(TSummarizerConfiguration config)voidsetConfigIsSet(boolean value)voidsetFieldValue(TSummary._Fields field, Object value)TSummarysetFilesContaining(long filesContaining)voidsetFilesContainingIsSet(boolean value)TSummarysetFilesExceeding(long filesExceeding)voidsetFilesExceedingIsSet(boolean value)TSummarysetFilesLarge(long filesLarge)voidsetFilesLargeIsSet(boolean value)TSummarysetSummary(Map<String,Long> summary)voidsetSummaryIsSet(boolean value)StringtoString()voidunsetConfig()voidunsetFilesContaining()voidunsetFilesExceeding()voidunsetFilesLarge()voidunsetSummary()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
config
public TSummarizerConfiguration config
-
filesContaining
public long filesContaining
-
filesExceeding
public long filesExceeding
-
filesLarge
public long filesLarge
-
metaDataMap
public static final Map<TSummary._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TSummary
public TSummary()
-
TSummary
public TSummary(Map<String,Long> summary, TSummarizerConfiguration config, long filesContaining, long filesExceeding, long filesLarge)
-
TSummary
public TSummary(TSummary other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TSummary deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TSummary,TSummary._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TSummary,TSummary._Fields>
-
getSummarySize
public int getSummarySize()
-
putToSummary
public void putToSummary(String key, long val)
-
unsetSummary
public void unsetSummary()
-
isSetSummary
public boolean isSetSummary()
Returns true if field summary is set (has been assigned a value) and false otherwise
-
setSummaryIsSet
public void setSummaryIsSet(boolean value)
-
getConfig
public TSummarizerConfiguration getConfig()
-
setConfig
public TSummary setConfig(TSummarizerConfiguration config)
-
unsetConfig
public void unsetConfig()
-
isSetConfig
public boolean isSetConfig()
Returns true if field config is set (has been assigned a value) and false otherwise
-
setConfigIsSet
public void setConfigIsSet(boolean value)
-
getFilesContaining
public long getFilesContaining()
-
setFilesContaining
public TSummary setFilesContaining(long filesContaining)
-
unsetFilesContaining
public void unsetFilesContaining()
-
isSetFilesContaining
public boolean isSetFilesContaining()
Returns true if field filesContaining is set (has been assigned a value) and false otherwise
-
setFilesContainingIsSet
public void setFilesContainingIsSet(boolean value)
-
getFilesExceeding
public long getFilesExceeding()
-
setFilesExceeding
public TSummary setFilesExceeding(long filesExceeding)
-
unsetFilesExceeding
public void unsetFilesExceeding()
-
isSetFilesExceeding
public boolean isSetFilesExceeding()
Returns true if field filesExceeding is set (has been assigned a value) and false otherwise
-
setFilesExceedingIsSet
public void setFilesExceedingIsSet(boolean value)
-
getFilesLarge
public long getFilesLarge()
-
setFilesLarge
public TSummary setFilesLarge(long filesLarge)
-
unsetFilesLarge
public void unsetFilesLarge()
-
isSetFilesLarge
public boolean isSetFilesLarge()
Returns true if field filesLarge is set (has been assigned a value) and false otherwise
-
setFilesLargeIsSet
public void setFilesLargeIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TSummary._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TSummary,TSummary._Fields>
-
getFieldValue
public Object getFieldValue(TSummary._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TSummary,TSummary._Fields>
-
isSet
public boolean isSet(TSummary._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<TSummary,TSummary._Fields>
-
equals
public boolean equals(TSummary that)
-
compareTo
public int compareTo(TSummary other)
- Specified by:
compareToin interfaceComparable<TSummary>
-
fieldForId
public TSummary._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TSummary,TSummary._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
-
-