Package org.basex.index.value
Class ValueIndex
java.lang.Object
org.basex.index.value.ValueIndex
- All Implemented Interfaces:
Index
- Direct Known Subclasses:
DiskValues,FTIndex,MemValues
Index for texts, attribute values and full-texts.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedValueIndex(Data data, IndexType type) Constructor, initializing the index structure. -
Method Summary
Modifier and TypeMethodDescriptionabstract voidadd(ValueCache values) Add entries to the index.abstract voiddelete(ValueCache values) Deletes entries from the index.abstract voidflush()Flushes the buffered data.abstract intsize()Returns the number of index entries.
-
Field Details
-
type
Index type. -
data
Data instance.
-
-
Constructor Details
-
ValueIndex
Constructor, initializing the index structure.- Parameters:
data- data referencetype- index type
-
-
Method Details
-
size
public abstract int size()Returns the number of index entries.- Returns:
- number of index entries
-
delete
Deletes entries from the index.- Parameters:
values- value cache with [key, id-list] pairs
-
add
Add entries to the index.- Parameters:
values- value cache with [key, id-list] pairs
-
flush
public abstract void flush()Flushes the buffered data.
-