org.apache.accumulo.core.tabletserver.thrift
Class ActiveScan

java.lang.Object
  extended by org.apache.accumulo.core.tabletserver.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<TColumn> columns
           
 TKeyExtent extent
           
 long idleTime
           
static Map<ActiveScan._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 List<IterInfo> ssiList
           
 Map<String,Map<String,String>> ssio
           
 ScanState state
           
 String tableId
           
 ScanType type
           
 String user
           
 
Constructor Summary
ActiveScan()
           
ActiveScan(ActiveScan other)
          Performs a deep copy on other.
ActiveScan(String client, String user, String tableId, long age, long idleTime, ScanType type, ScanState state, TKeyExtent extent, List<TColumn> columns, List<IterInfo> ssiList, Map<String,Map<String,String>> ssio, List<ByteBuffer> authorizations)
           
 
Method Summary
 void addToAuthorizations(ByteBuffer elem)
           
 void addToColumns(TColumn elem)
           
 void addToSsiList(IterInfo 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<TColumn> getColumns()
           
 Iterator<TColumn> getColumnsIterator()
           
 int getColumnsSize()
           
 TKeyExtent getExtent()
           
 Object getFieldValue(ActiveScan._Fields field)
           
 long getIdleTime()
           
 List<IterInfo> getSsiList()
           
 Iterator<IterInfo> getSsiListIterator()
           
 int getSsiListSize()
           
 Map<String,Map<String,String>> getSsio()
           
 int getSsioSize()
           
 ScanState getState()
           
 String getTableId()
           
 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 isSetSsiList()
          Returns true if field ssiList is set (has been assigned a value) and false otherwise
 boolean isSetSsio()
          Returns true if field ssio 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 isSetTableId()
          Returns true if field tableId 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 putToSsio(String key, Map<String,String> val)
           
 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<TColumn> columns)
           
 void setColumnsIsSet(boolean value)
           
 ActiveScan setExtent(TKeyExtent extent)
           
 void setExtentIsSet(boolean value)
           
 void setFieldValue(ActiveScan._Fields field, Object value)
           
 ActiveScan setIdleTime(long idleTime)
           
 void setIdleTimeIsSet(boolean value)
           
 ActiveScan setSsiList(List<IterInfo> ssiList)
           
 void setSsiListIsSet(boolean value)
           
 ActiveScan setSsio(Map<String,Map<String,String>> ssio)
           
 void setSsioIsSet(boolean value)
           
 ActiveScan setState(ScanState state)
           
 void setStateIsSet(boolean value)
           
 ActiveScan setTableId(String tableId)
           
 void setTableIdIsSet(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 unsetSsiList()
           
 void unsetSsio()
           
 void unsetState()
           
 void unsetTableId()
           
 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

tableId

public String tableId

age

public long age

idleTime

public long idleTime

type

public ScanType type
See Also:
ScanType

state

public ScanState state
See Also:
ScanState

extent

public TKeyExtent extent

columns

public List<TColumn> columns

ssiList

public List<IterInfo> ssiList

ssio

public Map<String,Map<String,String>> ssio

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 tableId,
                  long age,
                  long idleTime,
                  ScanType type,
                  ScanState state,
                  TKeyExtent extent,
                  List<TColumn> columns,
                  List<IterInfo> ssiList,
                  Map<String,Map<String,String>> ssio,
                  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)

getTableId

public String getTableId()

setTableId

public ActiveScan setTableId(String tableId)

unsetTableId

public void unsetTableId()

isSetTableId

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


setTableIdIsSet

public void setTableIdIsSet(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 TKeyExtent getExtent()

setExtent

public ActiveScan setExtent(TKeyExtent 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<TColumn> getColumnsIterator()

addToColumns

public void addToColumns(TColumn elem)

getColumns

public List<TColumn> getColumns()

setColumns

public ActiveScan setColumns(List<TColumn> 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)

getSsiListSize

public int getSsiListSize()

getSsiListIterator

public Iterator<IterInfo> getSsiListIterator()

addToSsiList

public void addToSsiList(IterInfo elem)

getSsiList

public List<IterInfo> getSsiList()

setSsiList

public ActiveScan setSsiList(List<IterInfo> ssiList)

unsetSsiList

public void unsetSsiList()

isSetSsiList

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


setSsiListIsSet

public void setSsiListIsSet(boolean value)

getSsioSize

public int getSsioSize()

putToSsio

public void putToSsio(String key,
                      Map<String,String> val)

getSsio

public Map<String,Map<String,String>> getSsio()

setSsio

public ActiveScan setSsio(Map<String,Map<String,String>> ssio)

unsetSsio

public void unsetSsio()

isSetSsio

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


setSsioIsSet

public void setSsioIsSet(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.