Class BooleanIndex
java.lang.Object
org.teamapps.universaldb.index.AbstractIndex<TYPE,FILTER>
org.teamapps.universaldb.index.AbstractBufferIndex<java.lang.Boolean,BooleanFilter>
org.teamapps.universaldb.index.bool.BooleanIndex
- All Implemented Interfaces:
ColumnIndex<java.lang.Boolean,BooleanFilter>,MappedObject
- Direct Known Subclasses:
BitSetBooleanIndex
public class BooleanIndex extends AbstractBufferIndex<java.lang.Boolean,BooleanFilter>
-
Field Summary
Fields Modifier and Type Field Description static byte[]BIT_MASKSstatic intENTRY_SIZE -
Constructor Summary
Constructors Constructor Description BooleanIndex(java.lang.String name, TableIndex tableIndex, ColumnType columnType) -
Method Summary
Modifier and Type Method Description voiddumpIndex(java.io.DataOutputStream dataOutputStream, java.util.BitSet records)java.util.BitSetfilter(java.util.BitSet records, BooleanFilter booleanFilter)java.util.BitSetfilterEquals(java.util.BitSet bitSet, boolean compare)java.util.BitSetfilterNotEquals(java.util.BitSet bitSet, boolean compare)java.util.BitSetgetBitSet()intgetCount()protected intgetEntrySize()java.lang.BooleangetGenericValue(int id)intgetMaxId()intgetNextId()IndexTypegetType()booleangetValue(int id)java.lang.BooleanreadTransactionValue(java.io.DataInputStream dataInputStream)voidremoveValue(int id)voidrestoreIndex(java.io.DataInputStream dataInputStream)voidsetGenericValue(int id, java.lang.Boolean value)voidsetValue(int id, boolean value)java.util.List<SortEntry>sortRecords(java.util.List<SortEntry> sortEntries, boolean ascending, java.util.Locale locale)voidwriteTransactionValue(java.lang.Boolean value, java.io.DataOutputStream dataOutputStream)Methods inherited from class org.teamapps.universaldb.index.AbstractBufferIndex
close, drop, ensureBufferSize, getBuffer, getIndexForId, getMaximumId, getOffsetForIndexMethods inherited from class org.teamapps.universaldb.index.AbstractIndex
getColumnType, 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, dumpIndex, getReferencedColumn, getStringValue, restoreIndex, writeSchema
-
Field Details
-
ENTRY_SIZE
public static final int ENTRY_SIZE- See Also:
- Constant Field Values
-
BIT_MASKS
public static final byte[] BIT_MASKS
-
-
Constructor Details
-
Method Details
-
getEntrySize
protected int getEntrySize()- Specified by:
getEntrySizein classAbstractBufferIndex<java.lang.Boolean,BooleanFilter>
-
getType
-
getGenericValue
public java.lang.Boolean getGenericValue(int id) -
setGenericValue
public void setGenericValue(int id, java.lang.Boolean value) -
removeValue
public void removeValue(int id) -
filter
-
getValue
public boolean getValue(int id) -
setValue
public void setValue(int id, boolean value) -
writeTransactionValue
public void writeTransactionValue(java.lang.Boolean value, java.io.DataOutputStream dataOutputStream) throws java.io.IOException- Throws:
java.io.IOException
-
readTransactionValue
public java.lang.Boolean readTransactionValue(java.io.DataInputStream dataInputStream) throws java.io.IOException- Throws:
java.io.IOException
-
sortRecords
-
dumpIndex
public void dumpIndex(java.io.DataOutputStream dataOutputStream, java.util.BitSet records) throws java.io.IOException- Throws:
java.io.IOException
-
restoreIndex
public void restoreIndex(java.io.DataInputStream dataInputStream) throws java.io.IOException- Throws:
java.io.IOException
-
filterEquals
public java.util.BitSet filterEquals(java.util.BitSet bitSet, boolean compare) -
filterNotEquals
public java.util.BitSet filterNotEquals(java.util.BitSet bitSet, boolean compare) -
getCount
public int getCount() -
getBitSet
public java.util.BitSet getBitSet() -
getMaxId
public int getMaxId() -
getNextId
public int getNextId()
-