Package org.teamapps.universaldb.index
Class AbstractBufferIndex<TYPE,FILTER>
java.lang.Object
org.teamapps.universaldb.index.AbstractIndex<TYPE,FILTER>
org.teamapps.universaldb.index.AbstractBufferIndex<TYPE,FILTER>
- All Implemented Interfaces:
ColumnIndex<TYPE,FILTER>,MappedObject
- Direct Known Subclasses:
BooleanIndex,DoubleIndex,FloatIndex,IntegerIndex,LongIndex,ShortIndex,SingleReferenceIndex
public abstract class AbstractBufferIndex<TYPE,FILTER> extends AbstractIndex<TYPE,FILTER>
-
Constructor Summary
Constructors Constructor Description AbstractBufferIndex(java.lang.String name, TableIndex table, FullTextIndexingOptions fullTextIndexingOptions) -
Method Summary
Modifier and Type Method Description voidclose()voiddrop()protected voidensureBufferSize(int id)protected org.agrona.concurrent.AtomicBuffergetBuffer(int index)protected abstract intgetEntrySize()protected intgetIndexForId(int id)intgetMaximumId()protected intgetOffsetForIndex(int index)Methods inherited from class org.teamapps.universaldb.index.AbstractIndex
getFQN, getFullTextIndexingOptions, getMappingId, getName, getPath, getTable, negateInput, setMappingId, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.teamapps.universaldb.index.ColumnIndex
createFilter, createFilter, filter, getGenericValue, getReferencedColumn, getStringValue, getType, readTransactionValue, removeValue, setGenericValue, sortRecords, writeSchema, writeTransactionValue
-
Constructor Details
-
AbstractBufferIndex
public AbstractBufferIndex(java.lang.String name, TableIndex table, FullTextIndexingOptions fullTextIndexingOptions)
-
-
Method Details
-
getEntrySize
protected abstract int getEntrySize() -
ensureBufferSize
protected void ensureBufferSize(int id) -
getIndexForId
protected int getIndexForId(int id) -
getOffsetForIndex
protected int getOffsetForIndex(int index) -
getBuffer
protected org.agrona.concurrent.AtomicBuffer getBuffer(int index) -
getMaximumId
public int getMaximumId() -
close
public void close() -
drop
public void drop()
-