public class IndexCollector extends Object implements SchemaObjectCollector<org.apache.geode.cache.query.Index>
IndexCollector
class is an implementation of the SchemaObjectCollector
that is capable of
inspecting a context and finding all Index
schema object instances that have been declared in that context.GemFireCache
,
Index
,
ApplicationContext
,
SchemaObjectCollector
Constructor and Description |
---|
IndexCollector() |
Modifier and Type | Method and Description |
---|---|
Set<org.apache.geode.cache.query.Index> |
collectFrom(ApplicationContext applicationContext)
Collects all schema objects of type
T declared in the given ApplicationContext . |
Set<org.apache.geode.cache.query.Index> |
collectFrom(org.apache.geode.cache.GemFireCache gemfireCache)
Collects all schema objects of type
T defined in the GemFireCache . |
public Set<org.apache.geode.cache.query.Index> collectFrom(ApplicationContext applicationContext)
SchemaObjectCollector
T
declared in the given ApplicationContext
.collectFrom
in interface SchemaObjectCollector<org.apache.geode.cache.query.Index>
applicationContext
- Spring ApplicationContext
from which to collect schema objects
of type T
.Set
of all schema objects of type T
declared in the ApplicationContext
;
returns an empty Set
if no schema object of type T
could be found.ApplicationContext
,
Iterable
public Set<org.apache.geode.cache.query.Index> collectFrom(org.apache.geode.cache.GemFireCache gemfireCache)
SchemaObjectCollector
T
defined in the GemFireCache
.collectFrom
in interface SchemaObjectCollector<org.apache.geode.cache.query.Index>
gemfireCache
- GemFireCache
from which to collect schema objects of type T
.Set
of all schema objects of type T
defined in the GemFireCache
;
returns an empty Set
if no schema object of type T
could be found.GemFireCache
,
Iterable
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.