|
||||||||||
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.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(String name)
|
|
MemoryTable(String name,
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(Collection rows)
Insert the given rows into this table and any associated indices. |
void |
applyUpdates(Collection 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 Row s 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.event.BaseTableModificationPublisher |
---|
addTableModificationListener, getTableModificationListeners, publishEvent, removeTableModificationListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MemoryTable(String name)
public MemoryTable(String name, String type)
Method Detail |
---|
public void populateIndex(Index index) throws AxionException
Table
Index
, adding my current rows to it. Does not
add
the index.
populateIndex
in interface Table
populateIndex
in class BaseTable
AxionException
Table.addIndex(org.axiondb.Index)
public int getNextRowId()
Table
getNextRowId
in interface Table
getNextRowId
in class BaseTable
public void truncate() throws AxionException
Table
truncate
in interface Table
AxionException
public void freeRowId(int id)
Table
freeRowId
in interface Table
freeRowId
in class BaseTable
public int getRowCount()
Table
Row
s I contain.
getRowCount
in interface Table
getRowCount
in class BaseTable
public Row getRow(int id)
getRow
in interface RowSource
getRow
in class BaseTable
public void applyInserts(Collection rows) throws AxionException
Table
applyInserts
in interface Table
applyInserts
in class BaseTable
rows
- a collection of Rows
AxionException
public void applyDeletes(org.apache.commons.collections.primitives.IntCollection rowids) throws AxionException
Table
applyDeletes
in interface Table
applyDeletes
in class BaseTable
AxionException
public void applyUpdates(Collection rows) throws AxionException
Table
applyUpdates
in interface Table
applyUpdates
in class BaseTable
AxionException
protected RowIterator getRowIterator() throws AxionException
getRowIterator
in class BaseTable
AxionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |