@IgniteSpiNoop public class NoopIndexingSpi extends IgniteSpiAdapter implements IndexingSpi
IndexingSpi which does not index cache.gridName, ignite| Constructor and Description |
|---|
NoopIndexingSpi() |
| Modifier and Type | Method and Description |
|---|---|
void |
onSwap(String spaceName,
Object key)
Will be called when entry with given key is swapped.
|
void |
onUnswap(String spaceName,
Object key,
Object val)
Will be called when entry with given key is unswapped.
|
Iterator<javax.cache.Cache.Entry<?,?>> |
query(String spaceName,
Collection<Object> params,
IndexingQueryFilter filters)
Executes query.
|
void |
remove(String spaceName,
Object key)
Removes index entry by key.
|
void |
spiStart(String gridName)
This method is called to start SPI.
|
void |
spiStop()
This method is called to stop SPI.
|
void |
store(String spaceName,
Object key,
Object val,
long expirationTime)
Updates index.
|
addTimeoutObject, assertParameter, checkConfigurationConsistency0, configInfo, createSpiAttributeName, failureDetectionTimeout, failureDetectionTimeoutEnabled, failureDetectionTimeoutEnabled, getConsistentAttributeNames, getExceptionRegistry, getIgniteHome, getLocalNode, getLocalNodeId, getName, getNodeAttributes, getSpiContext, getStartTimestamp, getStartTimestampFormatted, getUpTime, getUpTimeFormatted, initFailureDetectionTimeout, injectables, injectResources, isNodeStopping, onClientDisconnected, onClientReconnected, onContextDestroyed, onContextDestroyed0, onContextInitialized, onContextInitialized0, registerMBean, removeTimeoutObject, setName, startInfo, startStopwatch, stopInfo, unregisterMBeanclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getNodeAttributes, onClientDisconnected, onClientReconnected, onContextDestroyed, onContextInitializedpublic Iterator<javax.cache.Cache.Entry<?,?>> query(@Nullable String spaceName, Collection<Object> params, @Nullable IndexingQueryFilter filters) throws IgniteSpiException
query in interface IndexingSpispaceName - Space name.params - Query parameters.filters - System filters.AutoCloseable it will be correctly closed.IgniteSpiException - If failed.public void store(@Nullable
String spaceName,
Object key,
Object val,
long expirationTime)
throws IgniteSpiException
store in interface IndexingSpispaceName - Space name.key - Key.val - Value.expirationTime - Expiration time or 0 if never expires.IgniteSpiException - If failed.public void remove(@Nullable
String spaceName,
Object key)
throws IgniteSpiException
remove in interface IndexingSpispaceName - Space name.key - Key.IgniteSpiException - If failed.public void onSwap(@Nullable
String spaceName,
Object key)
throws IgniteSpiException
onSwap in interface IndexingSpispaceName - Space name.key - Key.IgniteSpiException - If failed.public void onUnswap(@Nullable
String spaceName,
Object key,
Object val)
throws IgniteSpiException
onUnswap in interface IndexingSpispaceName - Space name.key - Key.val - Value.IgniteSpiException - If failed.public void spiStart(@Nullable
String gridName)
throws IgniteSpiException
spiStart in interface IgniteSpigridName - Name of grid instance this SPI is being started for
(null for default grid).IgniteSpiException - Throws in case of any error during SPI start.public void spiStop()
throws IgniteSpiException
Note that this method can be called at any point including during recovery of failed start. It should make no assumptions on what state SPI will be in when this method is called.
spiStop in interface IgniteSpiIgniteSpiException - Thrown in case of any error during SPI stop.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.5.11 Release Date : April 8 2016