Class FileIndex

java.lang.Object
org.teamapps.universaldb.index.AbstractIndex<FileValue,​FileFilter>
org.teamapps.universaldb.index.file.FileIndex
All Implemented Interfaces:
ColumnIndex<FileValue,​FileFilter>, MappedObject

public class FileIndex
extends AbstractIndex<FileValue,​FileFilter>
  • Constructor Details

  • Method Details

    • getType

      public IndexType getType()
    • getGenericValue

      public FileValue getGenericValue​(int id)
    • setGenericValue

      public void setGenericValue​(int id, FileValue value)
    • getValue

      public FileValue getValue​(int id)
    • setValue

      public void setValue​(int id, FileValue value)
    • storeFile

      public FileValue storeFile​(java.io.File file)
    • storeFile

      public FileValue storeFile​(java.io.File file, java.lang.String fileName)
    • storeFile

      public FileValue storeFile​(FileValue fileValue)
    • removeStoredFile

      public void removeStoredFile​(int id)
    • removeValue

      public void removeValue​(int id)
    • writeTransactionValue

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

      public FileValue readTransactionValue​(java.io.DataInputStream dataInputStream) throws java.io.IOException
      Throws:
      java.io.IOException
    • sortRecords

      public java.util.List<SortEntry> sortRecords​(java.util.List<SortEntry> sortEntries, boolean ascending, java.util.Locale locale)
    • 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, FileFilter fileFilter)
    • filterFullText

      public java.util.BitSet filterFullText​(java.util.BitSet records, FileFilter fileFilter)
    • close

      public void close()
    • drop

      public void drop()