Class PrimitiveEntryAtomicStore
java.lang.Object
org.teamapps.universaldb.index.buffer.AbstractResizingAtomicStore
org.teamapps.universaldb.index.buffer.PrimitiveEntryAtomicStore
- Direct Known Subclasses:
RecordIndex
public class PrimitiveEntryAtomicStore extends AbstractResizingAtomicStore
-
Field Summary
Fields Modifier and Type Field Description protected static intBYTE_ENTRIES_PER_FILEprotected static intINTEGER_ENTRIES_PER_FILEprotected static intLONG_ENTRIES_PER_FILEprotected static intSHORT_ENTRIES_PER_FILEFields inherited from class org.teamapps.universaldb.index.buffer.AbstractResizingAtomicStore
byteOrder, MAX_FILE_SIZE, MIN_FILE_SIZE -
Constructor Summary
Constructors Constructor Description PrimitiveEntryAtomicStore(java.io.File path, java.lang.String name) -
Method Summary
Modifier and Type Method Description booleangetBoolean(int id)bytegetByte(int id)doublegetDouble(int id)protected org.agrona.concurrent.AtomicBuffergetFirstBuffer()floatgetFloat(int id)intgetInt(int id)longgetLong(int id)shortgetShort(int id)voidsetBoolean(int id, boolean value)voidsetByte(int id, byte value)voidsetDouble(int id, double value)voidsetFloat(int id, float value)voidsetInt(int id, int value)voidsetLong(int id, long value)voidsetShort(int id, short value)Methods 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
-
Field Details
-
BYTE_ENTRIES_PER_FILE
protected static final int BYTE_ENTRIES_PER_FILE- See Also:
- Constant Field Values
-
SHORT_ENTRIES_PER_FILE
protected static final int SHORT_ENTRIES_PER_FILE- See Also:
- Constant Field Values
-
INTEGER_ENTRIES_PER_FILE
protected static final int INTEGER_ENTRIES_PER_FILE- See Also:
- Constant Field Values
-
LONG_ENTRIES_PER_FILE
protected static final int LONG_ENTRIES_PER_FILE- See Also:
- Constant Field Values
-
-
Constructor Details
-
PrimitiveEntryAtomicStore
public PrimitiveEntryAtomicStore(java.io.File path, java.lang.String name)
-
-
Method Details
-
getBoolean
public boolean getBoolean(int id) -
setBoolean
public void setBoolean(int id, boolean value) -
getByte
public byte getByte(int id) -
setByte
public void setByte(int id, byte value) -
getShort
public short getShort(int id) -
setShort
public void setShort(int id, short value) -
getInt
public int getInt(int id) -
setInt
public void setInt(int id, int value) -
getFloat
public float getFloat(int id) -
setFloat
public void setFloat(int id, float value) -
getLong
public long getLong(int id) -
setLong
public void setLong(int id, long value) -
getDouble
public double getDouble(int id) -
setDouble
public void setDouble(int id, double value) -
getFirstBuffer
protected org.agrona.concurrent.AtomicBuffer getFirstBuffer()
-