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 Details

    • BinaryIndex

      public BinaryIndex​(java.lang.String name, TableIndex table, boolean compressContent, ColumnType columnType)
  • Method Details

    • getType

      public IndexType getType()
    • getGenericValue

      public byte[] getGenericValue​(int id)
    • isEmpty

      public boolean isEmpty​(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)
    • 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
    • close

      public void close()
    • drop

      public void drop()
    • filter

      public java.util.BitSet filter​(java.util.BitSet records, BinaryFilter binaryFilter)