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, boolean compressContent) -
Method Summary
Modifier and Type Method Description voidclose()voiddrop()java.util.BitSetfilter(java.util.BitSet records, BinaryFilter binaryFilter)byte[]getGenericValue(int id)java.util.function.Supplier<java.io.InputStream>getInputStreamSupplier(int id)intgetLength(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, java.util.Locale locale)voidwriteTransactionValue(byte[] value, java.io.DataOutputStream dataOutputStream)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, getReferencedColumn, getStringValue, writeSchema
-
Constructor Details
-
Method Details
-
getType
-
getGenericValue
public byte[] getGenericValue(int id) -
setGenericValue
public void setGenericValue(int id, byte[] value) -
removeValue
public void removeValue(int id) -
getLength
public int getLength(int id) -
getInputStreamSupplier
public java.util.function.Supplier<java.io.InputStream> getInputStreamSupplier(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
-
filter
-
close
public void close() -
drop
public void drop()
-