Class TextIndex

java.lang.Object
org.teamapps.universaldb.index.AbstractIndex<java.lang.String,​TextFilter>
org.teamapps.universaldb.index.text.TextIndex
All Implemented Interfaces:
ColumnIndex<java.lang.String,​TextFilter>, MappedObject

public class TextIndex
extends AbstractIndex<java.lang.String,​TextFilter>
  • Constructor Details

  • Method Details

    • getCollectionSearchIndex

      public CollectionTextSearchIndex getCollectionSearchIndex()
    • isFilteredByCollectionTextIndex

      public boolean isFilteredByCollectionTextIndex​(TextFilter filter)
    • isFilteredExclusivelyByCollectionTextIndex

      public boolean isFilteredExclusivelyByCollectionTextIndex​(TextFilter filter)
    • getType

      public IndexType getType()
    • getGenericValue

      public java.lang.String getGenericValue​(int id)
    • setGenericValue

      public void setGenericValue​(int id, java.lang.String value)
    • removeValue

      public void removeValue​(int id)
    • getValue

      public java.lang.String getValue​(int id)
    • setValue

      public void setValue​(int id, java.lang.String value)
    • writeTransactionValue

      public void writeTransactionValue​(java.lang.String value, java.io.DataOutputStream dataOutputStream) throws java.io.IOException
      Throws:
      java.io.IOException
    • readTransactionValue

      public java.lang.String readTransactionValue​(java.io.DataInputStream dataInputStream) throws java.io.IOException
      Throws:
      java.io.IOException
    • 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

      public java.util.BitSet filter​(java.util.BitSet records, TextFilter textFilter)
    • close

      public void close()
    • drop

      public void drop()
    • sortRecords

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

      public java.util.BitSet filter​(java.util.BitSet records, TextFilter textFilter, boolean performLocalFullTextSearch)
    • filterEmpty

      public java.util.BitSet filterEmpty​(java.util.BitSet bitSet)
    • filterNotEmpty

      public java.util.BitSet filterNotEmpty​(java.util.BitSet bitSet)
    • filterLengthGreater

      public java.util.BitSet filterLengthGreater​(java.util.BitSet bitSet, int length)
    • filterLengthSmaller

      public java.util.BitSet filterLengthSmaller​(java.util.BitSet bitSet, int length)