Interface ColumnIndex<TYPE,​FILTER>

All Superinterfaces:
MappedObject
All Known Implementing Classes:
AbstractIndex, BinaryIndex, BooleanIndex, DoubleIndex, FileIndex, FileIndex, FloatIndex, IntegerIndex, LongIndex, MultiReferenceIndex, ShortIndex, SingleReferenceIndex, TextIndex, TranslatableTextIndex

public interface ColumnIndex<TYPE,​FILTER>
extends MappedObject
  • Method Details

    • createColumn

      static ColumnIndex createColumn​(TableIndex table, java.lang.String name, ColumnType columnType)
    • getStringValue

      default java.lang.String getStringValue​(int id)
    • getName

      java.lang.String getName()
    • getTable

      TableIndex getTable()
    • getColumnType

      ColumnType getColumnType()
    • getFQN

      java.lang.String getFQN()
      Specified by:
      getFQN in interface MappedObject
    • getType

      IndexType getType()
    • getFullTextIndexingOptions

      FullTextIndexingOptions getFullTextIndexingOptions()
    • getMappingId

      int getMappingId()
      Specified by:
      getMappingId in interface MappedObject
    • setMappingId

      void setMappingId​(int id)
      Specified by:
      setMappingId in interface MappedObject
    • getGenericValue

      TYPE getGenericValue​(int id)
    • isEmpty

      boolean isEmpty​(int id)
    • setGenericValue

      void setGenericValue​(int id, TYPE value)
    • removeValue

      void removeValue​(int id)
    • getReferencedColumn

      default ColumnIndex getReferencedColumn()
    • createFilter

      default IndexFilter<TYPE,​FILTER> createFilter​(FILTER filter)
    • createFilter

      default IndexFilter<TYPE,​FILTER> createFilter​(FILTER filter, IndexPath indexPath)
    • writeSchema

      default void writeSchema​(java.io.DataOutputStream dataOutputStream) throws java.io.IOException
      Throws:
      java.io.IOException
    • sortRecords

      java.util.List<SortEntry> sortRecords​(java.util.List<SortEntry> sortEntries, boolean ascending, UserContext userContext)
    • filter

      java.util.BitSet filter​(java.util.BitSet records, FILTER filter)
    • dumpIndex

      default void dumpIndex​(java.io.File file, java.util.BitSet records) throws java.io.IOException
      Throws:
      java.io.IOException
    • dumpIndex

      void dumpIndex​(java.io.DataOutputStream dataOutputStream, java.util.BitSet records) throws java.io.IOException
      Throws:
      java.io.IOException
    • restoreIndex

      default void restoreIndex​(java.io.File file) throws java.io.IOException
      Throws:
      java.io.IOException
    • restoreIndex

      void restoreIndex​(java.io.DataInputStream dataInputStream) throws java.io.IOException
      Throws:
      java.io.IOException
    • close

      void close()
    • drop

      void drop()