Class GridIndexingManager
- java.lang.Object
-
- org.apache.ignite.internal.managers.GridManagerAdapter<IndexingSpi>
-
- org.apache.ignite.internal.managers.indexing.GridIndexingManager
-
- All Implemented Interfaces:
GridComponent,GridManager
public class GridIndexingManager extends GridManagerAdapter<IndexingSpi>
Manages cache indexing.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.ignite.internal.GridComponent
GridComponent.DiscoveryDataExchangeType
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.managers.GridManagerAdapter
ctx, log
-
-
Constructor Summary
Constructors Constructor Description GridIndexingManager(GridKernalContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidonKernalStop0(boolean cancel)IgniteSpiCloseableIterator<?>query(String cacheName, Collection<Object> params, IndexingQueryFilter filters)voidremove(String cacheName, Object key)voidstart()Starts grid component.voidstop(boolean cancel)Stops grid component.<K,V>
voidstore(String cacheName, K key, V val, long expirationTime)Writes key-value pair to index.-
Methods inherited from class org.apache.ignite.internal.managers.GridManagerAdapter
assertParameter, collectGridNodeData, collectJoiningNodeData, discoveryDataType, enabled, getSpi, getSpi, getSpis, inject, onAfterSpiStart, onBeforeSpiStart, onDisconnected, onGridDataReceived, onJoiningNodeDataReceived, onKernalStart, onKernalStart0, onKernalStop, onReconnected, printMemoryStats, startInfo, startSpi, stopInfo, stopSpi, toString, validateNode, validateNode
-
-
-
-
Constructor Detail
-
GridIndexingManager
public GridIndexingManager(GridKernalContext ctx)
- Parameters:
ctx- Kernal context.
-
-
Method Detail
-
start
public void start() throws IgniteCheckedExceptionDescription copied from interface:GridComponentStarts grid component.- Throws:
IgniteCheckedException- Thrown in case of any errors.
-
onKernalStop0
protected void onKernalStop0(boolean cancel)
- Overrides:
onKernalStop0in classGridManagerAdapter<IndexingSpi>- Parameters:
cancel- Cancel flag.
-
stop
public void stop(boolean cancel) throws IgniteCheckedExceptionDescription copied from interface:GridComponentStops grid component.- Parameters:
cancel- Iftrue, then all ongoing tasks or jobs for relevant components need to be cancelled.- Throws:
IgniteCheckedException- Thrown in case of any errors.
-
store
public <K,V> void store(String cacheName, K key, V val, long expirationTime) throws IgniteCheckedException
Writes key-value pair to index.- Parameters:
cacheName- Cache name.key- Key.val- Value.expirationTime- Expiration time or 0 if never expires.- Throws:
IgniteCheckedException- In case of error.
-
remove
public void remove(String cacheName, Object key) throws IgniteCheckedException
- Parameters:
cacheName- Cache name.key- Key.- Throws:
IgniteCheckedException- Thrown in case of any errors.
-
query
public IgniteSpiCloseableIterator<?> query(String cacheName, Collection<Object> params, IndexingQueryFilter filters) throws IgniteCheckedException
- Parameters:
cacheName- Cache name.params- Parameters collection.filters- Filters.- Returns:
- Query result.
- Throws:
IgniteCheckedException- If failed.
-
-