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 class
TSummary._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 TSummarizerConfiguration
config
long
filesContaining
long
filesExceeding
long
filesLarge
static Map<TSummary._Fields,org.apache.thrift.meta_data.FieldMetaData>
metaDataMap
Map<String,Long>
summary
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
int
compareTo(TSummary other)
TSummary
deepCopy()
boolean
equals(Object that)
boolean
equals(TSummary that)
TSummary._Fields
fieldForId(int fieldId)
TSummarizerConfiguration
getConfig()
Object
getFieldValue(TSummary._Fields field)
long
getFilesContaining()
long
getFilesExceeding()
long
getFilesLarge()
Map<String,Long>
getSummary()
int
getSummarySize()
int
hashCode()
boolean
isSet(TSummary._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwiseboolean
isSetConfig()
Returns true if field config is set (has been assigned a value) and false otherwiseboolean
isSetFilesContaining()
Returns true if field filesContaining is set (has been assigned a value) and false otherwiseboolean
isSetFilesExceeding()
Returns true if field filesExceeding is set (has been assigned a value) and false otherwiseboolean
isSetFilesLarge()
Returns true if field filesLarge is set (has been assigned a value) and false otherwiseboolean
isSetSummary()
Returns true if field summary is set (has been assigned a value) and false otherwisevoid
putToSummary(String key, long val)
void
read(org.apache.thrift.protocol.TProtocol iprot)
TSummary
setConfig(TSummarizerConfiguration config)
void
setConfigIsSet(boolean value)
void
setFieldValue(TSummary._Fields field, Object value)
TSummary
setFilesContaining(long filesContaining)
void
setFilesContainingIsSet(boolean value)
TSummary
setFilesExceeding(long filesExceeding)
void
setFilesExceedingIsSet(boolean value)
TSummary
setFilesLarge(long filesLarge)
void
setFilesLargeIsSet(boolean value)
TSummary
setSummary(Map<String,Long> summary)
void
setSummaryIsSet(boolean value)
String
toString()
void
unsetConfig()
void
unsetFilesContaining()
void
unsetFilesExceeding()
void
unsetFilesLarge()
void
unsetSummary()
void
validate()
void
write(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:
deepCopy
in interfaceorg.apache.thrift.TBase<TSummary,TSummary._Fields>
-
clear
public void clear()
- Specified by:
clear
in 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:
setFieldValue
in interfaceorg.apache.thrift.TBase<TSummary,TSummary._Fields>
-
getFieldValue
public Object getFieldValue(TSummary._Fields field)
- Specified by:
getFieldValue
in 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:
isSet
in interfaceorg.apache.thrift.TBase<TSummary,TSummary._Fields>
-
equals
public boolean equals(TSummary that)
-
compareTo
public int compareTo(TSummary other)
- Specified by:
compareTo
in interfaceComparable<TSummary>
-
fieldForId
public TSummary._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interfaceorg.apache.thrift.TBase<TSummary,TSummary._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
- Specified by:
read
in 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:
write
in interfaceorg.apache.thrift.TSerializable
- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
-