public class IndexConfiguration extends Object implements ConfigurableIndexDefinitionProvider
IndexConfiguration allows programmatic setup of indexes. This is suitable for cases where there is no option
to use the equivalent Indexed annotation.| Constructor and Description |
|---|
IndexConfiguration()
Creates new empty
IndexConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
void |
addIndexDefinition(IndexDefinition indexDefinition)
Add given
RedisIndexSetting. |
Set<IndexDefinition> |
getIndexDefinitionsFor(Serializable keyspace)
Get the list of
IndexDefinition for a given keyspace. |
Set<IndexDefinition> |
getIndexDefinitionsFor(Serializable keyspace,
String path)
|
boolean |
hasIndexFor(Serializable keyspace)
Checks if an index is defined for a given
keyspace. |
boolean |
hasIndexFor(Serializable keyspace,
String path)
Checks if an index is defined for a given
keyspace and property path. |
protected Iterable<? extends IndexDefinition> |
initialConfiguration()
Customization hook.
|
public IndexConfiguration()
IndexConfiguration.public boolean hasIndexFor(Serializable keyspace)
IndexDefinitionProviderkeyspace.hasIndexFor in interface IndexDefinitionProviderkeyspace - the keyspace to getpublic boolean hasIndexFor(Serializable keyspace, String path)
IndexDefinitionProviderkeyspace and property path.hasIndexFor in interface IndexDefinitionProviderpublic Set<IndexDefinition> getIndexDefinitionsFor(Serializable keyspace, String path)
IndexDefinitionProvidergetIndexDefinitionsFor in interface IndexDefinitionProviderpublic Set<IndexDefinition> getIndexDefinitionsFor(Serializable keyspace)
IndexDefinitionProviderIndexDefinition for a given keyspace.getIndexDefinitionsFor in interface IndexDefinitionProviderpublic void addIndexDefinition(IndexDefinition indexDefinition)
IndexDefinitionRegistryRedisIndexSetting.addIndexDefinition in interface IndexDefinitionRegistryindexDefinition - must not be null.protected Iterable<? extends IndexDefinition> initialConfiguration()
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.