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, ColumnType columnType, FullTextIndexingOptions fullTextIndexingOptions, CollectionTextSearchIndex collectionSearchIndex, FileStore fileStore) -
Method Summary
Modifier and Type Method Description voidclose()voiddrop()voiddumpIndex(java.io.DataOutputStream dataOutputStream, java.util.BitSet records)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)booleanisEmpty(int id)voidremoveStoredFile(int id)voidremoveValue(int id)voidrestoreIndex(java.io.DataInputStream dataInputStream)voidsetGenericValue(int id, FileValue value)voidsetValue(int id, FileValue value)java.util.List<SortEntry>sortRecords(java.util.List<SortEntry> sortEntries, boolean ascending, UserContext userContext)FileValuestoreFile(java.io.File file)FileValuestoreFile(java.io.File file, java.lang.String fileName)FileValuestoreFile(FileValue fileValue)Methods inherited from class org.teamapps.universaldb.index.AbstractIndex
getColumnType, getDataPath, getFQN, getFullTextIndexingOptions, getFullTextIndexPath, getMappingId, getName, 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, dumpIndex, getReferencedColumn, getStringValue, restoreIndex, writeSchema
-
Constructor Details
-
FileIndex
public FileIndex(java.lang.String name, TableIndex table, ColumnType columnType, FullTextIndexingOptions fullTextIndexingOptions, CollectionTextSearchIndex collectionSearchIndex, FileStore fileStore)
-
-
Method Details
-
getType
-
getGenericValue
-
isEmpty
public boolean isEmpty(int id) -
setGenericValue
-
getValue
-
setValue
-
storeFile
-
storeFile
-
storeFile
-
removeStoredFile
public void removeStoredFile(int id) -
removeValue
public void removeValue(int id) -
sortRecords
public java.util.List<SortEntry> sortRecords(java.util.List<SortEntry> sortEntries, boolean ascending, UserContext userContext) -
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
-
filterFullText
-
close
public void close() -
drop
public void drop()
-