Modifier and Type | Method and Description |
---|---|
RecordID |
addRecord(String tableName,
List<DataBox> values) |
void |
createTempTable(Schema schema,
String tempTableName)
Create a temporary table within this transaction.
|
void |
deleteRecord(String tableName,
RecordID rid) |
void |
deleteTempTable(String tempTableName) |
void |
end() |
Schema |
getFullyQualifiedSchema(String tableName) |
Record |
getRecord(String tableName,
RecordID rid) |
Iterator<Record> |
getRecordIterator(String tableName) |
Schema |
getSchema(String tableName) |
boolean |
isActive() |
QueryPlan |
query(String tableName)
Allows the user to query a table.
|
void |
queryAs(String tableName,
String alias)
Allows the user to provide an alias for a particular table.
|
void |
updateRecord(String tableName,
List<DataBox> values,
RecordID rid) |
public boolean isActive()
public void end()
public QueryPlan query(String tableName) throws DatabaseException
tableName
- The name/alias of the table wished to be queried.DatabaseException
- if table does not existpublic void queryAs(String tableName, String alias) throws DatabaseException
tableName
- The original name of the table.alias
- The new Aliased name.DatabaseException
- if the alias already exists or the table does not.public void createTempTable(Schema schema, String tempTableName) throws DatabaseException
schema
- the table schematempTableName
- the name of the tableDatabaseException
public RecordID addRecord(String tableName, List<DataBox> values) throws DatabaseException
DatabaseException
public void deleteRecord(String tableName, RecordID rid) throws DatabaseException
DatabaseException
public Record getRecord(String tableName, RecordID rid) throws DatabaseException
DatabaseException
public Iterator<Record> getRecordIterator(String tableName) throws DatabaseException
DatabaseException
public void updateRecord(String tableName, List<DataBox> values, RecordID rid) throws DatabaseException
DatabaseException
public Schema getSchema(String tableName) throws DatabaseException
DatabaseException
public Schema getFullyQualifiedSchema(String tableName) throws DatabaseException
DatabaseException
public void deleteTempTable(String tempTableName)
Copyright © 2017. All rights reserved.