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, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.teamapps.universaldb.index.ColumnIndex
createFilter, createFilter, filter, getGenericValue, getReferencedColumn, getStringValue, getType, readTransactionValue, removeValue, setGenericValue, sortRecords, writeSchema, writeTransactionValue
-
-
-
-
Constructor Detail
-
AbstractBufferIndex
public AbstractBufferIndex(java.lang.String name, TableIndex table, FullTextIndexingOptions fullTextIndexingOptions)
-
-
Method Detail
-
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()
-
-