Class BooleanIndex
java.lang.Object
org.teamapps.universaldb.index.AbstractIndex<java.lang.Boolean,BooleanFilter>
org.teamapps.universaldb.index.bool.BooleanIndex
- All Implemented Interfaces:
ColumnIndex<java.lang.Boolean,BooleanFilter>,MappedObject
public class BooleanIndex extends AbstractIndex<java.lang.Boolean,BooleanFilter>
-
Constructor Summary
Constructors Constructor Description BooleanIndex(java.lang.String name, TableIndex tableIndex, ColumnType columnType) -
Method Summary
Modifier and Type Method Description voidclose()voiddrop()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()java.lang.BooleangetGenericValue(int id)intgetMaxId()intgetNextId()IndexTypegetType()booleangetValue(int id)booleanisEmpty(int id)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, UserContext userContext)Methods inherited from class org.teamapps.universaldb.index.AbstractIndex
getColumnType, getDataPath, getFQN, getFullTextIndexingOptions, getFullTextIndexPath, getMappingId, getName, 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
-
Constructor Details
-
BooleanIndex
-
-
Method Details
-
getType
-
getGenericValue
public java.lang.Boolean getGenericValue(int id) -
isEmpty
public boolean isEmpty(int id) -
setGenericValue
public void setGenericValue(int id, java.lang.Boolean value) -
removeValue
public void removeValue(int id) -
close
public void close() -
drop
public void drop() -
filter
-
getValue
public boolean getValue(int id) -
setValue
public void setValue(int id, boolean value) -
sortRecords
public java.util.List<SortEntry> sortRecords(java.util.List<SortEntry> sortEntries, boolean ascending, UserContext userContext) -
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()
-