use of org.hsqldb_voltpatches.lib.HashMappedList in project voltdb by VoltDB.
the class SessionContext method push.
public void push() {
if (stack == null) {
stack = new HsqlArrayList(true);
}
stack.add(dynamicArguments);
stack.add(routineArguments);
stack.add(routineVariables);
stack.add(rangeIterators);
stack.add(savepoints);
stack.add(savepointTimestamps);
rangeIterators = new RangeIterator[4];
savepoints = new HashMappedList(4);
savepointTimestamps = new LongDeque();
String name = HsqlNameManager.getAutoSavepointNameString(session.actionTimestamp, depth);
session.savepoint(name);
depth++;
}
use of org.hsqldb_voltpatches.lib.HashMappedList in project voltdb by VoltDB.
the class SessionContext method clearStructures.
void clearStructures(StatementDMQL cs) {
if (cs.type == StatementTypes.UPDATE_WHERE || cs.type == StatementTypes.DELETE_WHERE || cs.type == StatementTypes.MERGE) {
if (constraintPath != null) {
constraintPath.clear();
}
if (tableUpdateList != null) {
for (int i = 0; i < tableUpdateList.size(); i++) {
HashMappedList updateList = (HashMappedList) tableUpdateList.get(i);
updateList.clear();
}
}
}
if (cs.type == StatementTypes.INSERT) {
//
}
int count = cs.rangeIteratorCount;
if (count > rangeIterators.length) {
count = rangeIterators.length;
}
for (int i = 0; i < count; i++) {
if (rangeIterators[i] != null) {
rangeIterators[i].reset();
rangeIterators[i] = null;
}
}
}
use of org.hsqldb_voltpatches.lib.HashMappedList in project voltdb by VoltDB.
the class SchemaManager method getAllTables.
/**
* Returns an HsqlArrayList containing references to all non-system
* tables and views. This includes all tables and views registered with
* this Database.
*/
public HsqlArrayList getAllTables() {
Iterator schemas = allSchemaNameIterator();
HsqlArrayList alltables = new HsqlArrayList();
while (schemas.hasNext()) {
String name = (String) schemas.next();
HashMappedList current = getTables(name);
alltables.addAll(current.values());
}
return alltables;
}
Aggregations