org.apache.accumulo.proxy.thrift
Class ActiveScan

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

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

See Also:
Serialized Form

Nested Class Summary
static class ActiveScan._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 long age
           
 List<ByteBuffer> authorizations
           
 String client
           
 List<Column> columns
           
 KeyExtent extent
           
 long idleTime
           
 List<IteratorSetting> iterators
           
static Map<ActiveScan._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 ScanState state
           
 String table
           
 ScanType type
           
 String user
           
 
Constructor Summary
ActiveScan()
           
ActiveScan(ActiveScan other)
          Performs a deep copy on other.
ActiveScan(String client, String user, String table, long age, long idleTime, ScanType type, ScanState state, KeyExtent extent, List<Column> columns, List<IteratorSetting> iterators, List<ByteBuffer> authorizations)
           
 
Method Summary
 void addToAuthorizations(ByteBuffer elem)
           
 void addToColumns(Column elem)
           
 void addToIterators(IteratorSetting elem)
           
 void clear()
           
 int compareTo(ActiveScan other)
           
 ActiveScan deepCopy()
           
 boolean equals(ActiveScan that)
           
 boolean equals(Object that)
           
 ActiveScan._Fields fieldForId(int fieldId)
           
 long getAge()
           
 List<ByteBuffer> getAuthorizations()
           
 Iterator<ByteBuffer> getAuthorizationsIterator()
           
 int getAuthorizationsSize()
           
 String getClient()
           
 List<Column> getColumns()
           
 Iterator<Column> getColumnsIterator()
           
 int getColumnsSize()
           
 KeyExtent getExtent()
           
 Object getFieldValue(ActiveScan._Fields field)
           
 long getIdleTime()
           
 List<IteratorSetting> getIterators()
           
 Iterator<IteratorSetting> getIteratorsIterator()
           
 int getIteratorsSize()
           
 ScanState getState()
           
 String getTable()
           
 ScanType getType()
           
 String getUser()
           
 int hashCode()
           
 boolean isSet(ActiveScan._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 isSetAuthorizations()
          Returns true if field authorizations is set (has been assigned a value) and false otherwise
 boolean isSetClient()
          Returns true if field client is set (has been assigned a value) and false otherwise
 boolean isSetColumns()
          Returns true if field columns 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 isSetIdleTime()
          Returns true if field idleTime 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 isSetState()
          Returns true if field state is set (has been assigned a value) and false otherwise
 boolean isSetTable()
          Returns true if field table 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
 boolean isSetUser()
          Returns true if field user is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 ActiveScan setAge(long age)
           
 void setAgeIsSet(boolean value)
           
 ActiveScan setAuthorizations(List<ByteBuffer> authorizations)
           
 void setAuthorizationsIsSet(boolean value)
           
 ActiveScan setClient(String client)
           
 void setClientIsSet(boolean value)
           
 ActiveScan setColumns(List<Column> columns)
           
 void setColumnsIsSet(boolean value)
           
 ActiveScan setExtent(KeyExtent extent)
           
 void setExtentIsSet(boolean value)
           
 void setFieldValue(ActiveScan._Fields field, Object value)
           
 ActiveScan setIdleTime(long idleTime)
           
 void setIdleTimeIsSet(boolean value)
           
 ActiveScan setIterators(List<IteratorSetting> iterators)
           
 void setIteratorsIsSet(boolean value)
           
 ActiveScan setState(ScanState state)
           
 void setStateIsSet(boolean value)
           
 ActiveScan setTable(String table)
           
 void setTableIsSet(boolean value)
           
 ActiveScan setType(ScanType type)
           
 void setTypeIsSet(boolean value)
           
 ActiveScan setUser(String user)
           
 void setUserIsSet(boolean value)
           
 String toString()
           
 void unsetAge()
           
 void unsetAuthorizations()
           
 void unsetClient()
           
 void unsetColumns()
           
 void unsetExtent()
           
 void unsetIdleTime()
           
 void unsetIterators()
           
 void unsetState()
           
 void unsetTable()
           
 void unsetType()
           
 void unsetUser()
           
 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

client

public String client

user

public String user

table

public String table

age

public long age

idleTime

public long idleTime

type

public ScanType type
See Also:
ScanType

state

public ScanState state
See Also:
ScanState

extent

public KeyExtent extent

columns

public List<Column> columns

iterators

public List<IteratorSetting> iterators

authorizations

public List<ByteBuffer> authorizations

metaDataMap

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

ActiveScan

public ActiveScan()

ActiveScan

public ActiveScan(String client,
                  String user,
                  String table,
                  long age,
                  long idleTime,
                  ScanType type,
                  ScanState state,
                  KeyExtent extent,
                  List<Column> columns,
                  List<IteratorSetting> iterators,
                  List<ByteBuffer> authorizations)

ActiveScan

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

Method Detail

deepCopy

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

clear

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

getClient

public String getClient()

setClient

public ActiveScan setClient(String client)

unsetClient

public void unsetClient()

isSetClient

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


setClientIsSet

public void setClientIsSet(boolean value)

getUser

public String getUser()

setUser

public ActiveScan setUser(String user)

unsetUser

public void unsetUser()

isSetUser

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


setUserIsSet

public void setUserIsSet(boolean value)

getTable

public String getTable()

setTable

public ActiveScan setTable(String table)

unsetTable

public void unsetTable()

isSetTable

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


setTableIsSet

public void setTableIsSet(boolean value)

getAge

public long getAge()

setAge

public ActiveScan 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)

getIdleTime

public long getIdleTime()

setIdleTime

public ActiveScan setIdleTime(long idleTime)

unsetIdleTime

public void unsetIdleTime()

isSetIdleTime

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


setIdleTimeIsSet

public void setIdleTimeIsSet(boolean value)

getType

public ScanType getType()
See Also:
ScanType

setType

public ActiveScan setType(ScanType type)
See Also:
ScanType

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)

getState

public ScanState getState()
See Also:
ScanState

setState

public ActiveScan setState(ScanState state)
See Also:
ScanState

unsetState

public void unsetState()

isSetState

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


setStateIsSet

public void setStateIsSet(boolean value)

getExtent

public KeyExtent getExtent()

setExtent

public ActiveScan 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)

getColumnsSize

public int getColumnsSize()

getColumnsIterator

public Iterator<Column> getColumnsIterator()

addToColumns

public void addToColumns(Column elem)

getColumns

public List<Column> getColumns()

setColumns

public ActiveScan setColumns(List<Column> columns)

unsetColumns

public void unsetColumns()

isSetColumns

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


setColumnsIsSet

public void setColumnsIsSet(boolean value)

getIteratorsSize

public int getIteratorsSize()

getIteratorsIterator

public Iterator<IteratorSetting> getIteratorsIterator()

addToIterators

public void addToIterators(IteratorSetting elem)

getIterators

public List<IteratorSetting> getIterators()

setIterators

public ActiveScan 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)

getAuthorizationsSize

public int getAuthorizationsSize()

getAuthorizationsIterator

public Iterator<ByteBuffer> getAuthorizationsIterator()

addToAuthorizations

public void addToAuthorizations(ByteBuffer elem)

getAuthorizations

public List<ByteBuffer> getAuthorizations()

setAuthorizations

public ActiveScan setAuthorizations(List<ByteBuffer> authorizations)

unsetAuthorizations

public void unsetAuthorizations()

isSetAuthorizations

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


setAuthorizationsIsSet

public void setAuthorizationsIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

equals

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

equals

public boolean equals(ActiveScan that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public ActiveScan._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<ActiveScan,ActiveScan._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<ActiveScan,ActiveScan._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<ActiveScan,ActiveScan._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.