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, 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, 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)voidrestoreIndex(java.io.DataInputStream dataInputStream)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
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
-
Constructor Details
-
BinaryIndex
public BinaryIndex(java.lang.String name, TableIndex table, boolean compressContent, ColumnType columnType)
-
-
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
-
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
-
filter
-
close
public void close() -
drop
public void drop()
-