public class NamedWindowIndexRepository
extends java.lang.Object
Maintains index tables and keeps a reference count for user. Allows reuse of indexes for multiple deleting statements.
Constructor and Description |
---|
NamedWindowIndexRepository()
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Pair<IndexMultiKey,EventTableAndNamePair> |
addExplicitIndexOrReuse(boolean unique,
java.util.List<IndexedPropDesc> hashProps,
java.util.List<IndexedPropDesc> btreeProps,
java.lang.Iterable<EventBean> prefilledEvents,
EventType indexedType,
java.lang.String indexName) |
Pair<IndexMultiKey,EventTableAndNamePair> |
addTableCreateOrReuse(java.util.List<IndexedPropDesc> hashProps,
java.util.List<IndexedPropDesc> btreeProps,
java.lang.Iterable<EventBean> prefilledEvents,
EventType indexedType,
IndexHint optionalIndexHint,
boolean isIndexShare,
int subqueryNumber,
java.util.Set<java.lang.String> optionalUniqueKeyProps) |
void |
addTableReference(EventTable table) |
void |
destroy()
Destroy indexes.
|
Pair<IndexMultiKey,EventTableAndNamePair> |
findTable(java.util.Set<java.lang.String> keyPropertyNames,
java.util.Set<java.lang.String> rangePropertyNames,
IndexHint optionalIndexHint) |
IndexMultiKey[] |
getIndexDescriptors() |
java.util.List<EventTable> |
getTables()
Returns a list of current index tables in the repository.
|
void |
removeTableReference(EventTable table)
Remove a reference to an index table, decreasing its reference count.
|
public Pair<IndexMultiKey,EventTableAndNamePair> addExplicitIndexOrReuse(boolean unique, java.util.List<IndexedPropDesc> hashProps, java.util.List<IndexedPropDesc> btreeProps, java.lang.Iterable<EventBean> prefilledEvents, EventType indexedType, java.lang.String indexName)
public Pair<IndexMultiKey,EventTableAndNamePair> addTableCreateOrReuse(java.util.List<IndexedPropDesc> hashProps, java.util.List<IndexedPropDesc> btreeProps, java.lang.Iterable<EventBean> prefilledEvents, EventType indexedType, IndexHint optionalIndexHint, boolean isIndexShare, int subqueryNumber, java.util.Set<java.lang.String> optionalUniqueKeyProps)
public void addTableReference(EventTable table)
public void removeTableReference(EventTable table)
table
- to remove a reference topublic java.util.List<EventTable> getTables()
public void destroy()
public Pair<IndexMultiKey,EventTableAndNamePair> findTable(java.util.Set<java.lang.String> keyPropertyNames, java.util.Set<java.lang.String> rangePropertyNames, IndexHint optionalIndexHint)
public IndexMultiKey[] getIndexDescriptors()