Class BinaryIndex
- java.lang.Object
-
- org.teamapps.universaldb.index.AbstractIndex<byte[],BinaryFilter>
-
- org.teamapps.universaldb.index.binary.BinaryIndex
-
- All Implemented Interfaces:
ColumnIndex<byte[],BinaryFilter>,MappedObject
public class BinaryIndex extends AbstractIndex<byte[],BinaryFilter>
-
-
Constructor Summary
Constructors Constructor Description BinaryIndex(java.lang.String name, TableIndex table)
-
Method Summary
Modifier and Type Method Description voidclose()voiddrop()java.util.BitSetfilter(java.util.BitSet records, BinaryFilter binaryFilter)byte[]getGenericValue(int id)IndexTypegetType()byte[]getValue(int id)byte[]readTransactionValue(java.io.DataInputStream dataInputStream)voidremoveValue(int id)voidsetGenericValue(int id, byte[] value)voidsetValue(int id, byte[] value)java.util.List<SortEntry>sortRecords(java.util.List<SortEntry> sortEntries, boolean ascending)voidwriteTransactionValue(byte[] value, java.io.DataOutputStream dataOutputStream)-
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, getReferencedColumn, getStringValue, writeSchema
-
-
-
-
Constructor Detail
-
BinaryIndex
public BinaryIndex(java.lang.String name, TableIndex table)
-
-
Method Detail
-
getType
public IndexType getType()
-
getGenericValue
public byte[] getGenericValue(int id)
-
setGenericValue
public void setGenericValue(int id, byte[] value)
-
removeValue
public void removeValue(int id)
-
getValue
public byte[] getValue(int id)
-
setValue
public void setValue(int id, byte[] value)
-
writeTransactionValue
public void writeTransactionValue(byte[] value, java.io.DataOutputStream dataOutputStream) throws java.io.IOException- Throws:
java.io.IOException
-
readTransactionValue
public byte[] readTransactionValue(java.io.DataInputStream dataInputStream) throws java.io.IOException- Throws:
java.io.IOException
-
sortRecords
public java.util.List<SortEntry> sortRecords(java.util.List<SortEntry> sortEntries, boolean ascending)
-
filter
public java.util.BitSet filter(java.util.BitSet records, BinaryFilter binaryFilter)
-
close
public void close()
-
drop
public void drop()
-
-