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 Summary
Constructors Constructor Description FileIndex(java.lang.String name, TableIndex table, FullTextIndexingOptions fullTextIndexingOptions, CollectionTextSearchIndex collectionSearchIndex, FileStore fileStore)
-
Method Summary
Modifier and Type Method Description voidclose()voiddrop()java.util.BitSetfilter(java.util.BitSet records, FileFilter fileFilter)java.util.BitSetfilterFullText(java.util.BitSet records, FileFilter fileFilter)FileValuegetGenericValue(int id)IndexTypegetType()FileValuegetValue(int id)FileValuereadTransactionValue(java.io.DataInputStream dataInputStream)voidremoveStoredFile(int id)voidremoveValue(int id)voidsetGenericValue(int id, FileValue value)voidsetValue(int id, FileValue value)java.util.List<SortEntry>sortRecords(java.util.List<SortEntry> sortEntries, boolean ascending)FileValuestoreFile(java.io.File file)FileValuestoreFile(FileValue fileValue)voidwriteTransactionValue(FileValue value, java.io.DataOutputStream dataOutputStream)-
Methods inherited from class org.teamapps.universaldb.index.AbstractIndex
getFQN, getFullTextIndexingOptions, getMappingId, getName, getPath, getTable, negateInput, setMappingId, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.teamapps.universaldb.index.ColumnIndex
createFilter, createFilter, getReferencedColumn, getStringValue, writeSchema
-
-
-
-
Constructor Detail
-
FileIndex
public FileIndex(java.lang.String name, TableIndex table, FullTextIndexingOptions fullTextIndexingOptions, CollectionTextSearchIndex collectionSearchIndex, FileStore fileStore)
-
-
Method Detail
-
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)
-
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)
-
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()
-
-