Class ActiveScan
- java.lang.Object
-
- org.apache.accumulo.core.tabletserver.thrift.ActiveScan
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<ActiveScan>
,org.apache.thrift.TBase<ActiveScan,ActiveScan._Fields>
,org.apache.thrift.TSerializable
public class ActiveScan extends Object implements org.apache.thrift.TBase<ActiveScan,ActiveScan._Fields>, Serializable, Cloneable, Comparable<ActiveScan>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ActiveScan._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 long
age
List<ByteBuffer>
authorizations
String
classLoaderContext
String
client
List<TColumn>
columns
TKeyExtent
extent
long
idleTime
static Map<ActiveScan._Fields,org.apache.thrift.meta_data.FieldMetaData>
metaDataMap
long
scanId
List<IterInfo>
ssiList
Map<String,Map<String,String>>
ssio
ScanState
state
String
tableId
ScanType
type
String
user
-
Constructor Summary
Constructors Constructor Description ActiveScan()
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, String classLoaderContext)
ActiveScan(ActiveScan other)
Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToAuthorizations(ByteBuffer elem)
void
addToColumns(TColumn elem)
void
addToSsiList(IterInfo elem)
void
clear()
int
compareTo(ActiveScan other)
ActiveScan
deepCopy()
boolean
equals(Object that)
boolean
equals(ActiveScan that)
ActiveScan._Fields
fieldForId(int fieldId)
long
getAge()
List<ByteBuffer>
getAuthorizations()
Iterator<ByteBuffer>
getAuthorizationsIterator()
int
getAuthorizationsSize()
String
getClassLoaderContext()
String
getClient()
List<TColumn>
getColumns()
Iterator<TColumn>
getColumnsIterator()
int
getColumnsSize()
TKeyExtent
getExtent()
Object
getFieldValue(ActiveScan._Fields field)
long
getIdleTime()
long
getScanId()
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 otherwiseboolean
isSetAge()
Returns true if field age is set (has been assigned a value) and false otherwiseboolean
isSetAuthorizations()
Returns true if field authorizations is set (has been assigned a value) and false otherwiseboolean
isSetClassLoaderContext()
Returns true if field classLoaderContext is set (has been assigned a value) and false otherwiseboolean
isSetClient()
Returns true if field client is set (has been assigned a value) and false otherwiseboolean
isSetColumns()
Returns true if field columns is set (has been assigned a value) and false otherwiseboolean
isSetExtent()
Returns true if field extent is set (has been assigned a value) and false otherwiseboolean
isSetIdleTime()
Returns true if field idleTime is set (has been assigned a value) and false otherwiseboolean
isSetScanId()
Returns true if field scanId is set (has been assigned a value) and false otherwiseboolean
isSetSsiList()
Returns true if field ssiList is set (has been assigned a value) and false otherwiseboolean
isSetSsio()
Returns true if field ssio is set (has been assigned a value) and false otherwiseboolean
isSetState()
Returns true if field state is set (has been assigned a value) and false otherwiseboolean
isSetTableId()
Returns true if field tableId is set (has been assigned a value) and false otherwiseboolean
isSetType()
Returns true if field type is set (has been assigned a value) and false otherwiseboolean
isSetUser()
Returns true if field user is set (has been assigned a value) and false otherwisevoid
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
setClassLoaderContext(String classLoaderContext)
void
setClassLoaderContextIsSet(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
setScanId(long scanId)
void
setScanIdIsSet(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
unsetClassLoaderContext()
void
unsetClient()
void
unsetColumns()
void
unsetExtent()
void
unsetIdleTime()
void
unsetScanId()
void
unsetSsiList()
void
unsetSsio()
void
unsetState()
void
unsetTableId()
void
unsetType()
void
unsetUser()
void
validate()
void
write(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
client
public String client
-
user
public String user
-
tableId
public String tableId
-
age
public long age
-
idleTime
public long idleTime
-
extent
public TKeyExtent extent
-
authorizations
public List<ByteBuffer> authorizations
-
scanId
public long scanId
-
classLoaderContext
public String classLoaderContext
-
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, String classLoaderContext)
-
ActiveScan
public ActiveScan(ActiveScan other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public ActiveScan deepCopy()
- Specified by:
deepCopy
in interfaceorg.apache.thrift.TBase<ActiveScan,ActiveScan._Fields>
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.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)
-
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)
-
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()
-
addToColumns
public void addToColumns(TColumn elem)
-
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()
-
addToSsiList
public void addToSsiList(IterInfo elem)
-
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()
-
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)
-
getScanId
public long getScanId()
-
setScanId
public ActiveScan setScanId(long scanId)
-
unsetScanId
public void unsetScanId()
-
isSetScanId
public boolean isSetScanId()
Returns true if field scanId is set (has been assigned a value) and false otherwise
-
setScanIdIsSet
public void setScanIdIsSet(boolean value)
-
getClassLoaderContext
public String getClassLoaderContext()
-
setClassLoaderContext
public ActiveScan setClassLoaderContext(String classLoaderContext)
-
unsetClassLoaderContext
public void unsetClassLoaderContext()
-
isSetClassLoaderContext
public boolean isSetClassLoaderContext()
Returns true if field classLoaderContext is set (has been assigned a value) and false otherwise
-
setClassLoaderContextIsSet
public void setClassLoaderContextIsSet(boolean value)
-
setFieldValue
public void setFieldValue(ActiveScan._Fields field, Object value)
- Specified by:
setFieldValue
in interfaceorg.apache.thrift.TBase<ActiveScan,ActiveScan._Fields>
-
getFieldValue
public Object getFieldValue(ActiveScan._Fields field)
- Specified by:
getFieldValue
in interfaceorg.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 interfaceorg.apache.thrift.TBase<ActiveScan,ActiveScan._Fields>
-
equals
public boolean equals(ActiveScan that)
-
compareTo
public int compareTo(ActiveScan other)
- Specified by:
compareTo
in interfaceComparable<ActiveScan>
-
fieldForId
public ActiveScan._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interfaceorg.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 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
-
-