public class TableCloserI extends AbstractCloseableAmdServant implements _StatefulServiceInterfaceOperations, _TableOperations
Constructor and Description |
---|
TableCloserI(ServiceFactoryI sf,
TablePrx tablePrx,
Ice.Identity id) |
Modifier and Type | Method and Description |
---|---|
int |
addColumn(Column col,
Ice.Current __current)
Adds a column and returns the position index of the new column.
|
void |
addData(Column[] cols,
Ice.Current __current) |
void |
delete(Ice.Current __current) |
java.util.Map<java.lang.String,RType> |
getAllMetadata(Ice.Current __current) |
Column[] |
getHeaders(Ice.Current __current)
Returns empty columns.
|
RType |
getMetadata(java.lang.String key,
Ice.Current __current) |
long |
getNumberOfRows(Ice.Current __current) |
OriginalFile |
getOriginalFile(Ice.Current __current) |
TablePrx |
getProxy() |
long[] |
getWhereList(java.lang.String condition,
java.util.Map<java.lang.String,RType> variables,
long start,
long stop,
long step,
Ice.Current __current)
http://www.pytables.org/docs/manual/apb.html
Leave all three of start, stop, step to 0 to disable.
|
void |
initialize(Column[] cols,
Ice.Current __current)
Initializes the structure based on
|
protected void |
postClose(Ice.Current current)
Should not throw any exceptions which should be detected by clients
since it is called in a finally block after the client thread has been
released.
|
protected void |
preClose(Ice.Current current) |
Data |
read(long[] colNumbers,
long start,
long stop,
Ice.Current __current)
http://www.pytables.org/docs/manual/ch04.html#Table.read
|
Data |
readCoordinates(long[] rowNumbers,
Ice.Current __current)
Read the given rows of data.
|
void |
setAllMetadata(java.util.Map<java.lang.String,RType> dict,
Ice.Current __current) |
void |
setMetadata(java.lang.String key,
RType value,
Ice.Current __current) |
Data |
slice(long[] colNumbers,
long[] rowNumbers,
Ice.Current __current)
Simple slice method which will return only the given columns
and rows in the order supplied.
|
void |
update(Data modifiedData,
Ice.Current __current)
Allows the user to modify a Data instance passed back
from a query method and have the values modified.
|
close_async, close
activate_async, applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, executorWorkCall, getCurrentEventContext_async, onSetOmeroContext, passivate_async, runnableCall, safeRunnableCall, setApplicationContext, setHolder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
activate_async, close_async, getCurrentEventContext_async, passivate_async
close
public TableCloserI(ServiceFactoryI sf, TablePrx tablePrx, Ice.Identity id) throws ServerError
ServerError
public TablePrx getProxy()
protected void preClose(Ice.Current current) throws java.lang.Throwable
preClose
in class AbstractCloseableAmdServant
java.lang.Throwable
protected void postClose(Ice.Current current)
AbstractCloseableAmdServant
postClose
in class AbstractCloseableAmdServant
public OriginalFile getOriginalFile(Ice.Current __current) throws ServerError
getOriginalFile
in interface _TableOperations
ServerError
public Column[] getHeaders(Ice.Current __current) throws ServerError
_TableOperations
getHeaders
in interface _TableOperations
__current
- The Current object for the invocation.ServerError
public long getNumberOfRows(Ice.Current __current) throws ServerError
getNumberOfRows
in interface _TableOperations
ServerError
public long[] getWhereList(java.lang.String condition, java.util.Map<java.lang.String,RType> variables, long start, long stop, long step, Ice.Current __current) throws ServerError
_TableOperations
getWhereList
in interface _TableOperations
__current
- The Current object for the invocation.ServerError
public Data readCoordinates(long[] rowNumbers, Ice.Current __current) throws ServerError
_TableOperations
readCoordinates
in interface _TableOperations
rowNumbers
- must contain at least one element or an
ApiUsageException
will be thrown.__current
- The Current object for the invocation.ServerError
public Data read(long[] colNumbers, long start, long stop, Ice.Current __current) throws ServerError
_TableOperations
read
in interface _TableOperations
__current
- The Current object for the invocation.ServerError
public Data slice(long[] colNumbers, long[] rowNumbers, Ice.Current __current) throws ServerError
_TableOperations
data = table.slice(None, None) assert len(data.rowNumbers) == table.getNumberOfRows() data = table.slice(None, \[3,2,1]) assert data.rowNumbers == \[3,2,1]
slice
in interface _TableOperations
__current
- The Current object for the invocation.ServerError
public void addData(Column[] cols, Ice.Current __current) throws ServerError
addData
in interface _TableOperations
ServerError
public void update(Data modifiedData, Ice.Current __current) throws ServerError
_TableOperations
Data.lastModification
and the
Data.rowNumbers
fields are properly set. An exception
will be thrown if the data has since been modified.update
in interface _TableOperations
__current
- The Current object for the invocation.ServerError
public java.util.Map<java.lang.String,RType> getAllMetadata(Ice.Current __current) throws ServerError
getAllMetadata
in interface _TableOperations
ServerError
public RType getMetadata(java.lang.String key, Ice.Current __current) throws ServerError
getMetadata
in interface _TableOperations
ServerError
public void setAllMetadata(java.util.Map<java.lang.String,RType> dict, Ice.Current __current) throws ServerError
setAllMetadata
in interface _TableOperations
ServerError
public void setMetadata(java.lang.String key, RType value, Ice.Current __current) throws ServerError
setMetadata
in interface _TableOperations
ServerError
public void initialize(Column[] cols, Ice.Current __current) throws ServerError
_TableOperations
initialize
in interface _TableOperations
__current
- The Current object for the invocation.ServerError
public int addColumn(Column col, Ice.Current __current) throws ServerError
_TableOperations
addColumn
in interface _TableOperations
__current
- The Current object for the invocation.ServerError
public void delete(Ice.Current __current) throws ServerError
delete
in interface _TableOperations
ServerError