@IgniteSpiNoop public class NoopIndexingSpi extends IgniteSpiAdapter implements IndexingSpi
IndexingSpi
which does not index cache.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.
|
assertParameter, checkConfigurationConsistency0, configInfo, createSpiAttributeName, getConsistentAttributeNames, getIgniteHome, getLocalNodeId, getName, getNodeAttributes, getSpiContext, getStartTimestamp, getStartTimestampFormatted, getUpTime, getUpTimeFormatted, injectables, onContextDestroyed, onContextDestroyed0, onContextInitialized, onContextInitialized0, registerMBean, setName, startInfo, startStopwatch, stopInfo, unregisterMBean
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getNodeAttributes, onContextDestroyed, onContextInitialized
public Iterator<javax.cache.Cache.Entry<?,?>> query(@Nullable String spaceName, Collection<Object> params, @Nullable IndexingQueryFilter filters) throws IgniteSpiException
query
in interface IndexingSpi
spaceName
- 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 IndexingSpi
spaceName
- 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 IndexingSpi
spaceName
- Space name.key
- Key.IgniteSpiException
- If failed.public void onSwap(@Nullable String spaceName, Object key) throws IgniteSpiException
onSwap
in interface IndexingSpi
spaceName
- Space name.key
- Key.IgniteSpiException
- If failed.public void onUnswap(@Nullable String spaceName, Object key, Object val) throws IgniteSpiException
onUnswap
in interface IndexingSpi
spaceName
- Space name.key
- Key.val
- Value.IgniteSpiException
- If failed.public void spiStart(@Nullable String gridName) throws IgniteSpiException
spiStart
in interface IgniteSpi
gridName
- 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 IgniteSpi
IgniteSpiException
- Thrown in case of any error during SPI stop.
Follow @ApacheIgnite
Apache Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 16 2015