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, java.util.Locale locale)FileValuestoreFile(java.io.File file)FileValuestoreFile(java.io.File file, java.lang.String fileName)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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.teamapps.universaldb.index.ColumnIndex
createFilter, createFilter, getReferencedColumn, getStringValue, writeSchema
-
Constructor Details
-
FileIndex
public FileIndex(java.lang.String name, TableIndex table, FullTextIndexingOptions fullTextIndexingOptions, CollectionTextSearchIndex collectionSearchIndex, FileStore fileStore)
-
-
Method Details
-
getType
-
getGenericValue
-
setGenericValue
-
getValue
-
setValue
-
storeFile
-
storeFile
-
storeFile
-
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
-
filter
-
filterFullText
-
close
public void close() -
drop
public void drop()
-