org.apache.accumulo.proxy.thrift
Class ActiveCompaction

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

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

See Also:
Serialized Form

Nested Class Summary
static class ActiveCompaction._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 long age
           
 long entriesRead
           
 long entriesWritten
           
 KeyExtent extent
           
 List<String> inputFiles
           
 List<IteratorSetting> iterators
           
 String localityGroup
           
static Map<ActiveCompaction._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 String outputFile
           
 CompactionReason reason
           
 CompactionType type
           
 
Constructor Summary
ActiveCompaction()
           
ActiveCompaction(ActiveCompaction other)
          Performs a deep copy on other.
ActiveCompaction(KeyExtent extent, long age, List<String> inputFiles, String outputFile, CompactionType type, CompactionReason reason, String localityGroup, long entriesRead, long entriesWritten, List<IteratorSetting> iterators)
           
 
Method Summary
 void addToInputFiles(String elem)
           
 void addToIterators(IteratorSetting elem)
           
 void clear()
           
 int compareTo(ActiveCompaction other)
           
 ActiveCompaction deepCopy()
           
 boolean equals(ActiveCompaction that)
           
 boolean equals(Object that)
           
 ActiveCompaction._Fields fieldForId(int fieldId)
           
 long getAge()
           
 long getEntriesRead()
           
 long getEntriesWritten()
           
 KeyExtent getExtent()
           
 Object getFieldValue(ActiveCompaction._Fields field)
           
 List<String> getInputFiles()
           
 Iterator<String> getInputFilesIterator()
           
 int getInputFilesSize()
           
 List<IteratorSetting> getIterators()
           
 Iterator<IteratorSetting> getIteratorsIterator()
           
 int getIteratorsSize()
           
 String getLocalityGroup()
           
 String getOutputFile()
           
 CompactionReason getReason()
           
 CompactionType getType()
           
 int hashCode()
           
 boolean isSet(ActiveCompaction._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetAge()
          Returns true if field age is set (has been assigned a value) and false otherwise
 boolean isSetEntriesRead()
          Returns true if field entriesRead is set (has been assigned a value) and false otherwise
 boolean isSetEntriesWritten()
          Returns true if field entriesWritten is set (has been assigned a value) and false otherwise
 boolean isSetExtent()
          Returns true if field extent is set (has been assigned a value) and false otherwise
 boolean isSetInputFiles()
          Returns true if field inputFiles is set (has been assigned a value) and false otherwise
 boolean isSetIterators()
          Returns true if field iterators is set (has been assigned a value) and false otherwise
 boolean isSetLocalityGroup()
          Returns true if field localityGroup is set (has been assigned a value) and false otherwise
 boolean isSetOutputFile()
          Returns true if field outputFile is set (has been assigned a value) and false otherwise
 boolean isSetReason()
          Returns true if field reason is set (has been assigned a value) and false otherwise
 boolean isSetType()
          Returns true if field type is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 ActiveCompaction setAge(long age)
           
 void setAgeIsSet(boolean value)
           
 ActiveCompaction setEntriesRead(long entriesRead)
           
 void setEntriesReadIsSet(boolean value)
           
 ActiveCompaction setEntriesWritten(long entriesWritten)
           
 void setEntriesWrittenIsSet(boolean value)
           
 ActiveCompaction setExtent(KeyExtent extent)
           
 void setExtentIsSet(boolean value)
           
 void setFieldValue(ActiveCompaction._Fields field, Object value)
           
 ActiveCompaction setInputFiles(List<String> inputFiles)
           
 void setInputFilesIsSet(boolean value)
           
 ActiveCompaction setIterators(List<IteratorSetting> iterators)
           
 void setIteratorsIsSet(boolean value)
           
 ActiveCompaction setLocalityGroup(String localityGroup)
           
 void setLocalityGroupIsSet(boolean value)
           
 ActiveCompaction setOutputFile(String outputFile)
           
 void setOutputFileIsSet(boolean value)
           
 ActiveCompaction setReason(CompactionReason reason)
           
 void setReasonIsSet(boolean value)
           
 ActiveCompaction setType(CompactionType type)
           
 void setTypeIsSet(boolean value)
           
 String toString()
           
 void unsetAge()
           
 void unsetEntriesRead()
           
 void unsetEntriesWritten()
           
 void unsetExtent()
           
 void unsetInputFiles()
           
 void unsetIterators()
           
 void unsetLocalityGroup()
           
 void unsetOutputFile()
           
 void unsetReason()
           
 void unsetType()
           
 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

extent

public KeyExtent extent

age

public long age

inputFiles

public List<String> inputFiles

outputFile

public String outputFile

type

public CompactionType type
See Also:
CompactionType

reason

public CompactionReason reason
See Also:
CompactionReason

localityGroup

public String localityGroup

entriesRead

public long entriesRead

entriesWritten

public long entriesWritten

iterators

public List<IteratorSetting> iterators

metaDataMap

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

ActiveCompaction

public ActiveCompaction()

ActiveCompaction

public ActiveCompaction(KeyExtent extent,
                        long age,
                        List<String> inputFiles,
                        String outputFile,
                        CompactionType type,
                        CompactionReason reason,
                        String localityGroup,
                        long entriesRead,
                        long entriesWritten,
                        List<IteratorSetting> iterators)

ActiveCompaction

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

Method Detail

deepCopy

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

clear

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

getExtent

public KeyExtent getExtent()

setExtent

public ActiveCompaction setExtent(KeyExtent extent)

unsetExtent

public void unsetExtent()

isSetExtent

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


setExtentIsSet

public void setExtentIsSet(boolean value)

getAge

public long getAge()

setAge

public ActiveCompaction setAge(long age)

unsetAge

public void unsetAge()

isSetAge

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


setAgeIsSet

public void setAgeIsSet(boolean value)

getInputFilesSize

public int getInputFilesSize()

getInputFilesIterator

public Iterator<String> getInputFilesIterator()

addToInputFiles

public void addToInputFiles(String elem)

getInputFiles

public List<String> getInputFiles()

setInputFiles

public ActiveCompaction setInputFiles(List<String> inputFiles)

unsetInputFiles

public void unsetInputFiles()

isSetInputFiles

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


setInputFilesIsSet

public void setInputFilesIsSet(boolean value)

getOutputFile

public String getOutputFile()

setOutputFile

public ActiveCompaction setOutputFile(String outputFile)

unsetOutputFile

public void unsetOutputFile()

isSetOutputFile

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


setOutputFileIsSet

public void setOutputFileIsSet(boolean value)

getType

public CompactionType getType()
See Also:
CompactionType

setType

public ActiveCompaction setType(CompactionType type)
See Also:
CompactionType

unsetType

public void unsetType()

isSetType

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


setTypeIsSet

public void setTypeIsSet(boolean value)

getReason

public CompactionReason getReason()
See Also:
CompactionReason

setReason

public ActiveCompaction setReason(CompactionReason reason)
See Also:
CompactionReason

unsetReason

public void unsetReason()

isSetReason

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


setReasonIsSet

public void setReasonIsSet(boolean value)

getLocalityGroup

public String getLocalityGroup()

setLocalityGroup

public ActiveCompaction setLocalityGroup(String localityGroup)

unsetLocalityGroup

public void unsetLocalityGroup()

isSetLocalityGroup

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


setLocalityGroupIsSet

public void setLocalityGroupIsSet(boolean value)

getEntriesRead

public long getEntriesRead()

setEntriesRead

public ActiveCompaction setEntriesRead(long entriesRead)

unsetEntriesRead

public void unsetEntriesRead()

isSetEntriesRead

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


setEntriesReadIsSet

public void setEntriesReadIsSet(boolean value)

getEntriesWritten

public long getEntriesWritten()

setEntriesWritten

public ActiveCompaction setEntriesWritten(long entriesWritten)

unsetEntriesWritten

public void unsetEntriesWritten()

isSetEntriesWritten

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


setEntriesWrittenIsSet

public void setEntriesWrittenIsSet(boolean value)

getIteratorsSize

public int getIteratorsSize()

getIteratorsIterator

public Iterator<IteratorSetting> getIteratorsIterator()

addToIterators

public void addToIterators(IteratorSetting elem)

getIterators

public List<IteratorSetting> getIterators()

setIterators

public ActiveCompaction setIterators(List<IteratorSetting> iterators)

unsetIterators

public void unsetIterators()

isSetIterators

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


setIteratorsIsSet

public void setIteratorsIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

equals

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

equals

public boolean equals(ActiveCompaction that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public ActiveCompaction._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<ActiveCompaction,ActiveCompaction._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<ActiveCompaction,ActiveCompaction._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<ActiveCompaction,ActiveCompaction._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 © 2013 Apache Accumulo Project. All Rights Reserved.