@IgniteSpiNoop public class NoopIndexingSpi extends IgniteSpiAdapter implements IndexingSpi
IndexingSpi
which does not index cache.ignite, igniteInstanceName
Constructor and Description |
---|
NoopIndexingSpi() |
Modifier and Type | Method and Description |
---|---|
Iterator<javax.cache.Cache.Entry<?,?>> |
query(@Nullable String cacheName,
Collection<Object> params,
@Nullable IndexingQueryFilter filters)
Executes query.
|
void |
remove(@Nullable String cacheName,
Object key)
Removes index entry by key.
|
NoopIndexingSpi |
setName(String name)
Sets SPI name.
|
void |
spiStart(@Nullable String igniteInstanceName)
This method is called to start SPI.
|
void |
spiStop()
This method is called to stop SPI.
|
void |
store(@Nullable String cacheName,
Object key,
Object val,
long expirationTime)
Updates index.
|
addTimeoutObject, assertParameter, checkConfigurationConsistency0, clientFailureDetectionTimeout, configInfo, createSpiAttributeName, failureDetectionTimeout, failureDetectionTimeoutEnabled, failureDetectionTimeoutEnabled, getConsistentAttributeNames, getExceptionRegistry, getLocalNode, getName, getNodeAttributes, getSpiContext, ignite, initFailureDetectionTimeout, injectables, injectResources, isNodeStopping, onBeforeStart, onClientDisconnected, onClientReconnected, onContextDestroyed, onContextDestroyed0, onContextInitialized, onContextInitialized0, registerMBean, removeTimeoutObject, started, startInfo, startStopwatch, stopInfo, unregisterMBean
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getNodeAttributes, onClientDisconnected, onClientReconnected, onContextDestroyed, onContextInitialized
public Iterator<javax.cache.Cache.Entry<?,?>> query(@Nullable @Nullable String cacheName, Collection<Object> params, @Nullable @Nullable IndexingQueryFilter filters) throws IgniteSpiException
query
in interface IndexingSpi
cacheName
- Cache name.params
- Query parameters.filters
- System filters.AutoCloseable
it will be correctly closed.IgniteSpiException
- If failed.public void store(@Nullable @Nullable String cacheName, Object key, Object val, long expirationTime) throws IgniteSpiException
store
in interface IndexingSpi
cacheName
- Cache name.key
- Key.val
- Value.expirationTime
- Expiration time or 0 if never expires.IgniteSpiException
- If failed.public void remove(@Nullable @Nullable String cacheName, Object key) throws IgniteSpiException
remove
in interface IndexingSpi
cacheName
- Cache name.key
- Key.IgniteSpiException
- If failed.public void spiStart(@Nullable @Nullable String igniteInstanceName) throws IgniteSpiException
spiStart
in interface IgniteSpi
igniteInstanceName
- Name of Ignite instance this SPI is being started for
(null
for default Ignite instance).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 IgniteSpi
IgniteSpiException
- Thrown in case of any error during SPI stop.public NoopIndexingSpi setName(String name)
setName
in class IgniteSpiAdapter
name
- SPI name.this
for chaining.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019