timoninmaxim commented on a change in pull request #8490:
URL: https://github.com/apache/ignite/pull/8490#discussion_r594554427
##########
File path:
modules/core/src/main/java/org/apache/ignite/spi/indexing/IndexingSpi.java
##########
@@ -84,7 +91,56 @@
* @param expirationTime Expiration time or 0 if never expires.
* @throws IgniteSpiException If failed.
*/
- public void store(@Nullable String cacheName, Object key, Object val, long
expirationTime) throws IgniteSpiException;
+ public default void store(@Nullable String cacheName, Object key, Object
val, long expirationTime) throws IgniteSpiException {
+ // No-op.
+ }
+
+ /**
+ * Updates index with new row. Note that key is unique for cache, so if
cache contains multiple indexes
+ * the key should be removed from indexes other than one being updated.
+ *
+ * @param cctx Cache context.
+ * @param newRow cache row to store in index.
+ * @param prevRow optional cache row that will be replaced with new row.
+ */
+ public void store(GridCacheContext<?, ?> cctx, CacheDataRow newRow,
@Nullable CacheDataRow prevRow,
Review comment:
Replace IgniteIndexing (IndexSpi) with IndexProcessor
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]