public interface _TableOperationsNC
| Modifier and Type | Method and Description |
|---|---|
int |
addColumn(Column col)
Adds a column and returns the position index of the new column.
|
void |
addData(Column[] cols) |
void |
close() |
void |
delete() |
java.util.Map<java.lang.String,RType> |
getAllMetadata() |
Column[] |
getHeaders()
Returns empty columns.
|
RType |
getMetadata(java.lang.String key) |
long |
getNumberOfRows() |
OriginalFile |
getOriginalFile() |
long[] |
getWhereList(java.lang.String condition,
java.util.Map<java.lang.String,RType> variables,
long start,
long stop,
long step)
http://www.pytables.org/docs/manual/apb.html
Leave all three of start, stop, step to 0 to disable.
|
void |
initialize(Column[] cols)
Initializes the structure based on
|
Data |
read(long[] colNumbers,
long start,
long stop)
http://www.pytables.org/docs/manual/ch04.html#Table.read
|
Data |
readCoordinates(long[] rowNumbers)
Read the given rows of data.
|
void |
setAllMetadata(java.util.Map<java.lang.String,RType> dict) |
void |
setMetadata(java.lang.String key,
RType value) |
Data |
slice(long[] colNumbers,
long[] rowNumbers)
Simple slice method which will return only the given columns
and rows in the order supplied.
|
void |
update(Data modifiedData)
Allows the user to modify a Data instance passed back
from a query method and have the values modified.
|
OriginalFile getOriginalFile() throws ServerError
ServerErrorColumn[] getHeaders() throws ServerError
ServerErrorlong getNumberOfRows()
throws ServerError
ServerErrorlong[] getWhereList(java.lang.String condition,
java.util.Map<java.lang.String,RType> variables,
long start,
long stop,
long step)
throws ServerError
ServerErrorData readCoordinates(long[] rowNumbers) throws ServerError
rowNumbers - must contain at least one element or an
ApiUsageException will be thrown.ServerErrorData read(long[] colNumbers, long start, long stop) throws ServerError
ServerErrorData slice(long[] colNumbers, long[] rowNumbers) throws ServerError
data = table.slice(None, None) assert len(data.rowNumbers) == table.getNumberOfRows() data = table.slice(None, \[3,2,1]) assert data.rowNumbers == \[3,2,1]
ServerErrorvoid addData(Column[] cols) throws ServerError
ServerErrorvoid update(Data modifiedData) throws ServerError
Data.lastModification and the
Data.rowNumbers fields are properly set. An exception
will be thrown if the data has since been modified.ServerErrorjava.util.Map<java.lang.String,RType> getAllMetadata() throws ServerError
ServerErrorRType getMetadata(java.lang.String key) throws ServerError
ServerErrorvoid setAllMetadata(java.util.Map<java.lang.String,RType> dict) throws ServerError
ServerErrorvoid setMetadata(java.lang.String key,
RType value)
throws ServerError
ServerErrorvoid initialize(Column[] cols) throws ServerError
ServerErrorint addColumn(Column col) throws ServerError
ServerErrorvoid delete()
throws ServerError
ServerErrorvoid close()
throws ServerError
ServerError