Package org.teamapps.universaldb.index
Interface ColumnIndex<TYPE,FILTER>
- All Superinterfaces:
MappedObject
- All Known Implementing Classes:
AbstractBufferIndex,AbstractIndex,BinaryIndex,BitSetBooleanIndex,BooleanIndex,DoubleIndex,FileIndex,FileIndex,FloatIndex,IntegerIndex,LongIndex,MultiReferenceIndex,ShortIndex,SingleReferenceIndex,TextIndex,TranslatableTextIndex
public interface ColumnIndex<TYPE,FILTER> extends MappedObject
-
Method Summary
Modifier and Type Method Description voidclose()static ColumnIndexcreateColumn(TableIndex table, java.lang.String name, ColumnType columnType)default IndexFilter<TYPE,FILTER>createFilter(FILTER filter)default IndexFilter<TYPE,FILTER>createFilter(FILTER filter, IndexPath indexPath)voiddrop()voiddumpIndex(java.io.DataOutputStream dataOutputStream, java.util.BitSet records)default voiddumpIndex(java.io.File file, java.util.BitSet records)java.util.BitSetfilter(java.util.BitSet records, FILTER filter)ColumnTypegetColumnType()java.lang.StringgetFQN()FullTextIndexingOptionsgetFullTextIndexingOptions()TYPEgetGenericValue(int id)intgetMappingId()java.lang.StringgetName()default ColumnIndexgetReferencedColumn()default java.lang.StringgetStringValue(int id)TableIndexgetTable()IndexTypegetType()TYPEreadTransactionValue(java.io.DataInputStream dataInputStream)voidremoveValue(int id)voidrestoreIndex(java.io.DataInputStream dataInputStream)default voidrestoreIndex(java.io.File file)voidsetGenericValue(int id, TYPE value)voidsetMappingId(int id)java.util.List<SortEntry>sortRecords(java.util.List<SortEntry> sortEntries, boolean ascending, java.util.Locale locale)default voidwriteSchema(java.io.DataOutputStream dataOutputStream)voidwriteTransactionValue(TYPE value, java.io.DataOutputStream dataOutputStream)
-
Method Details
-
createColumn
-
getStringValue
default java.lang.String getStringValue(int id) -
getName
java.lang.String getName() -
getTable
TableIndex getTable() -
getColumnType
ColumnType getColumnType() -
getFQN
java.lang.String getFQN()- Specified by:
getFQNin interfaceMappedObject
-
getType
IndexType getType() -
getFullTextIndexingOptions
FullTextIndexingOptions getFullTextIndexingOptions() -
getMappingId
int getMappingId()- Specified by:
getMappingIdin interfaceMappedObject
-
setMappingId
void setMappingId(int id)- Specified by:
setMappingIdin interfaceMappedObject
-
getGenericValue
-
setGenericValue
-
removeValue
void removeValue(int id) -
writeTransactionValue
void writeTransactionValue(TYPE value, java.io.DataOutputStream dataOutputStream) throws java.io.IOException- Throws:
java.io.IOException
-
readTransactionValue
- Throws:
java.io.IOException
-
getReferencedColumn
-
createFilter
-
createFilter
-
writeSchema
default void writeSchema(java.io.DataOutputStream dataOutputStream) throws java.io.IOException- Throws:
java.io.IOException
-
sortRecords
-
filter
-
dumpIndex
default void dumpIndex(java.io.File file, java.util.BitSet records) throws java.io.IOException- Throws:
java.io.IOException
-
dumpIndex
void dumpIndex(java.io.DataOutputStream dataOutputStream, java.util.BitSet records) throws java.io.IOException- Throws:
java.io.IOException
-
restoreIndex
default void restoreIndex(java.io.File file) throws java.io.IOException- Throws:
java.io.IOException
-
restoreIndex
void restoreIndex(java.io.DataInputStream dataInputStream) throws java.io.IOException- Throws:
java.io.IOException
-
close
void close() -
drop
void drop()
-