|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axiondb.event.BaseTableModificationPublisher
org.axiondb.engine.tables.AbstractBaseTable
org.axiondb.engine.tables.BaseTable
org.axiondb.engine.tables.MemoryTable
public class MemoryTable
A memory-resident Table.
| Field Summary |
|---|
| Fields inherited from interface org.axiondb.Table |
|---|
REGULAR_TABLE_TYPE, SYSTEM_TABLE_TYPE |
| Constructor Summary | |
|---|---|
MemoryTable(java.lang.String name)
|
|
MemoryTable(java.lang.String name,
java.lang.String type)
|
|
| Method Summary | |
|---|---|
void |
applyDeletes(org.apache.commons.collections.primitives.IntCollection rowids)
Remove the specified rows from this table and any associated indices. |
void |
applyInserts(RowCollection rows)
Insert the given rows into this table and any associated indices. |
void |
applyUpdates(RowCollection rows)
Update the given rows in this table and any associated indices. |
void |
freeRowId(int id)
Un-reserve a row id. |
int |
getNextRowId()
Reserve a row id. |
Row |
getRow(int id)
|
int |
getRowCount()
Return the number of Rows I contain. |
protected RowIterator |
getRowIterator()
|
void |
populateIndex(Index index)
Populate an Index, adding my current rows to it. |
void |
truncate()
Unconditionally delete all rows in this table. |
| Methods inherited from class org.axiondb.engine.tables.AbstractBaseTable |
|---|
checkConstraints, checkConstraints, checkConstraints, getMatchingRows, hasDeferredConstraint, isDeferAll, migrate |
| Methods inherited from class org.axiondb.event.BaseTableModificationPublisher |
|---|
addTableModificationListener, getTableModificationListeners, publishEvent, removeTableModificationListener, setDeferAllConstraints |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MemoryTable(java.lang.String name)
public MemoryTable(java.lang.String name,
java.lang.String type)
| Method Detail |
|---|
public void applyDeletes(org.apache.commons.collections.primitives.IntCollection rowids)
throws AxionException
Table
applyDeletes in interface TableapplyDeletes in class BaseTableAxionException
public void applyInserts(RowCollection rows)
throws AxionException
Table
applyInserts in interface TableapplyInserts in class BaseTablerows - a collection of Rows
AxionException
public void applyUpdates(RowCollection rows)
throws AxionException
Table
applyUpdates in interface TableapplyUpdates in class BaseTableAxionExceptionpublic final void freeRowId(int id)
Table
freeRowId in interface TablefreeRowId in class BaseTablepublic final int getNextRowId()
Table
getNextRowId in interface TablegetNextRowId in class BaseTablepublic final Row getRow(int id)
getRow in interface RowSourcegetRow in class BaseTablepublic final int getRowCount()
TableRows I contain.
getRowCount in interface TablegetRowCount in class BaseTable
public void populateIndex(Index index)
throws AxionException
TableIndex, adding my current rows to it. Does not
addthe index.
populateIndex in interface TablepopulateIndex in class BaseTableAxionExceptionTable.addIndex(org.axiondb.Index)
public void truncate()
throws AxionException
Table
truncate in interface TableAxionException
protected RowIterator getRowIterator()
throws AxionException
getRowIterator in class BaseTableAxionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||