public interface IndexStoreStrategy
Modifier and Type | Method and Description |
---|---|
long |
count(Filter filter,
NodeState root,
NodeState indexMeta,
java.util.Set<java.lang.String> values,
int max)
Count the occurrence of a given set of values.
|
long |
count(NodeState root,
NodeState indexMeta,
java.util.Set<java.lang.String> values,
int max)
Count the occurrence of a given set of values.
|
boolean |
exists(com.google.common.base.Supplier<NodeBuilder> index,
java.lang.String key)
Check whether an entry for the given key exists.
|
java.lang.String |
getIndexNodeName() |
java.lang.Iterable<java.lang.String> |
query(Filter filter,
java.lang.String indexName,
NodeState indexMeta,
java.lang.Iterable<java.lang.String> values)
Search for a given set of values.
|
void |
update(com.google.common.base.Supplier<NodeBuilder> index,
java.lang.String path,
java.lang.String indexName,
NodeBuilder indexMeta,
java.util.Set<java.lang.String> beforeKeys,
java.util.Set<java.lang.String> afterKeys)
Updates the index for the given path.
|
void update(com.google.common.base.Supplier<NodeBuilder> index, java.lang.String path, java.lang.String indexName, NodeBuilder indexMeta, java.util.Set<java.lang.String> beforeKeys, java.util.Set<java.lang.String> afterKeys) throws CommitFailedException
index
- the index node supplierpath
- path stored in the indexindexName
- the name of the index. May be null.indexMeta
- the definition of the index. May be null.beforeKeys
- keys that no longer apply to the pathafterKeys
- keys that now do apply to the pathCommitFailedException
boolean exists(com.google.common.base.Supplier<NodeBuilder> index, java.lang.String key)
index
- the index node supplierkey
- the keyjava.lang.Iterable<java.lang.String> query(Filter filter, java.lang.String indexName, NodeState indexMeta, java.lang.Iterable<java.lang.String> values)
filter
- the filter (can optionally be used for optimized query execution)indexName
- the name of the index (for logging)indexMeta
- the index metadata node (may not be null)values
- values to look for (null to check for property existence)long count(NodeState root, NodeState indexMeta, java.util.Set<java.lang.String> values, int max)
root
- the root node (may not be null)indexMeta
- the index metadata node (may not be null)values
- values to look for (null to check for property existence)max
- the maximum value to returnlong count(Filter filter, NodeState root, NodeState indexMeta, java.util.Set<java.lang.String> values, int max)
filter
- the filter which can be used to estimate better costroot
- the root node (may not be null)indexMeta
- the index metadata node (may not be null)values
- values to look for (null to check for property existence)max
- the maximum value to returnjava.lang.String getIndexNodeName()
Copyright © 2010 - 2023 Adobe. All Rights Reserved