Class RecordIndex
java.lang.Object
org.teamapps.universaldb.index.buffer.AbstractResizingAtomicStore
org.teamapps.universaldb.index.buffer.PrimitiveEntryAtomicStore
org.teamapps.universaldb.index.buffer.RecordIndex
public class RecordIndex extends PrimitiveEntryAtomicStore
-
Field Summary
Fields inherited from class org.teamapps.universaldb.index.buffer.PrimitiveEntryAtomicStore
BYTE_ENTRIES_PER_FILE, INTEGER_ENTRIES_PER_FILE, LONG_ENTRIES_PER_FILE, SHORT_ENTRIES_PER_FILEFields inherited from class org.teamapps.universaldb.index.buffer.AbstractResizingAtomicStore
byteOrder, MAX_FILE_SIZE, MIN_FILE_SIZE -
Constructor Summary
Constructors Constructor Description RecordIndex(java.io.File path, java.lang.String name) -
Method Summary
Modifier and Type Method Description intcreateRecord()java.util.BitSetgetBitSet()intgetCount()intgetMaxId()intgetNextAvailableId()java.util.List<java.lang.Integer>getRecords()voidsetBoolean(int id, boolean value)Methods inherited from class org.teamapps.universaldb.index.buffer.PrimitiveEntryAtomicStore
getBoolean, getByte, getDouble, getFirstBuffer, getFloat, getInt, getLong, getShort, setByte, setDouble, setFloat, setInt, setLong, setShortMethods inherited from class org.teamapps.universaldb.index.buffer.AbstractResizingAtomicStore
close, drop, ensureCapacity, ensureCapacity, findNextBlockPosition, flush, getBuffer, getBufferIndex, getBuffers, getMaximumId, getName, getOffset, getOffset, getPath, getTotalCapacity, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
RecordIndex
public RecordIndex(java.io.File path, java.lang.String name)
-
-
Method Details
-
setBoolean
public void setBoolean(int id, boolean value)- Overrides:
setBooleanin classPrimitiveEntryAtomicStore
-
createRecord
public int createRecord() -
getCount
public int getCount() -
getBitSet
public java.util.BitSet getBitSet() -
getRecords
public java.util.List<java.lang.Integer> getRecords() -
getMaxId
public int getMaxId() -
getNextAvailableId
public int getNextAvailableId()
-