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
ServerError
Column[] getHeaders() throws ServerError
ServerError
long getNumberOfRows() throws ServerError
ServerError
long[] getWhereList(java.lang.String condition, java.util.Map<java.lang.String,RType> variables, long start, long stop, long step) throws ServerError
ServerError
Data readCoordinates(long[] rowNumbers) throws ServerError
rowNumbers
- must contain at least one element or an
ApiUsageException
will be thrown.ServerError
Data read(long[] colNumbers, long start, long stop) throws ServerError
ServerError
Data 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]
ServerError
void addData(Column[] cols) throws ServerError
ServerError
void 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.ServerError
java.util.Map<java.lang.String,RType> getAllMetadata() throws ServerError
ServerError
RType getMetadata(java.lang.String key) throws ServerError
ServerError
void setAllMetadata(java.util.Map<java.lang.String,RType> dict) throws ServerError
ServerError
void setMetadata(java.lang.String key, RType value) throws ServerError
ServerError
void initialize(Column[] cols) throws ServerError
ServerError
int addColumn(Column col) throws ServerError
ServerError
void delete() throws ServerError
ServerError
void close() throws ServerError
ServerError