Class NearCacheKeyValueView<K,V,T>
java.lang.Object
org.gridgain.internal.table.nearcache.NearCacheKeyValueView<K,V,T>
- All Implemented Interfaces:
AutoCloseable,org.apache.ignite.table.ContinuousQuerySource<Map.Entry<K,,V>> org.apache.ignite.table.criteria.CriteriaQuerySource<Map.Entry<K,,V>> org.apache.ignite.table.DataStreamerTarget<Map.Entry<K,,V>> org.apache.ignite.table.KeyValueView<K,V>
public class NearCacheKeyValueView<K,V,T>
extends Object
implements org.apache.ignite.table.KeyValueView<K,V>
Key-value view implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanbooleancontainsAll(@Nullable org.apache.ignite.tx.Transaction tx, Collection<K> keys) containsAllAsync(@Nullable org.apache.ignite.tx.Transaction tx, Collection<K> keys) containsAsync(@Nullable org.apache.ignite.tx.Transaction tx, K key) getAll(@Nullable org.apache.ignite.tx.Transaction tx, Collection<K> keys) getAllAsync(@Nullable org.apache.ignite.tx.Transaction tx, Collection<K> keys) getAndPutAsync(@Nullable org.apache.ignite.tx.Transaction tx, K key, V val) getAndRemove(@Nullable org.apache.ignite.tx.Transaction tx, K key) getAndRemoveAsync(@Nullable org.apache.ignite.tx.Transaction tx, K key) getAndReplace(@Nullable org.apache.ignite.tx.Transaction tx, K key, V val) getAndReplaceAsync(@Nullable org.apache.ignite.tx.Transaction tx, K key, V val) @Nullable org.apache.ignite.lang.NullableValue<V>getNullable(@Nullable org.apache.ignite.tx.Transaction tx, K key) org.apache.ignite.lang.NullableValue<V>getNullableAndPut(@Nullable org.apache.ignite.tx.Transaction tx, K key, V val) CompletableFuture<org.apache.ignite.lang.NullableValue<V>>getNullableAndPutAsync(@Nullable org.apache.ignite.tx.Transaction tx, K key, V val) org.apache.ignite.lang.NullableValue<V>getNullableAndRemove(@Nullable org.apache.ignite.tx.Transaction tx, K key) CompletableFuture<org.apache.ignite.lang.NullableValue<V>>getNullableAndRemoveAsync(@Nullable org.apache.ignite.tx.Transaction tx, K key) org.apache.ignite.lang.NullableValue<V>getNullableAndReplace(@Nullable org.apache.ignite.tx.Transaction tx, K key, V val) CompletableFuture<org.apache.ignite.lang.NullableValue<V>>getNullableAndReplaceAsync(@Nullable org.apache.ignite.tx.Transaction tx, K key, V val) CompletableFuture<org.apache.ignite.lang.NullableValue<V>>getNullableAsync(@Nullable org.apache.ignite.tx.Transaction tx, K key) getOrDefault(@Nullable org.apache.ignite.tx.Transaction tx, K key, V defaultValue) getOrDefaultAsync(@Nullable org.apache.ignite.tx.Transaction tx, K key, V defaultValue) voidvoidputAllAsync(@Nullable org.apache.ignite.tx.Transaction tx, Map<K, V> pairs) booleanputIfAbsent(@Nullable org.apache.ignite.tx.Transaction tx, K key, V val) putIfAbsentAsync(@Nullable org.apache.ignite.tx.Transaction tx, K key, V val) query(@Nullable org.apache.ignite.tx.Transaction tx, @Nullable org.apache.ignite.table.criteria.Criteria criteria, @Nullable String indexName, @Nullable org.apache.ignite.table.criteria.CriteriaQueryOptions opts) CompletableFuture<org.apache.ignite.lang.AsyncCursor<Map.Entry<K,V>>> queryAsync(@Nullable org.apache.ignite.tx.Transaction tx, @Nullable org.apache.ignite.table.criteria.Criteria criteria, @Nullable String indexName, @Nullable org.apache.ignite.table.criteria.CriteriaQueryOptions opts) voidqueryContinuously(Flow.Subscriber<org.apache.ignite.table.TableRowEventBatch<Map.Entry<K, V>>> subscriber, @Nullable org.apache.ignite.table.ContinuousQueryOptions options) booleanvoidremoveAll(@Nullable org.apache.ignite.tx.Transaction tx) removeAll(@Nullable org.apache.ignite.tx.Transaction tx, Collection<K> keys) removeAllAsync(@Nullable org.apache.ignite.tx.Transaction tx) removeAllAsync(@Nullable org.apache.ignite.tx.Transaction tx, Collection<K> keys) removeAsync(@Nullable org.apache.ignite.tx.Transaction tx, K key) booleanremoveExact(@Nullable org.apache.ignite.tx.Transaction tx, K key, V val) removeExactAsync(@Nullable org.apache.ignite.tx.Transaction tx, K key, V val) booleanreplaceAsync(@Nullable org.apache.ignite.tx.Transaction tx, K key, V val) booleanreplaceExact(@Nullable org.apache.ignite.tx.Transaction tx, K key, V oldValue, V newValue) replaceExactAsync(@Nullable org.apache.ignite.tx.Transaction tx, K key, V oldVal, V newVal) <E,P, A, R> CompletableFuture<Void> streamData(Flow.Publisher<E> publisher, org.apache.ignite.table.DataStreamerReceiverDescriptor<P, A, R> receiver, Function<E, Map.Entry<K, V>> keyFunc, Function<E, P> payloadFunc, A receiverArg, @Nullable Flow.Subscriber<R> resultSubscriber, @Nullable org.apache.ignite.table.DataStreamerOptions options) streamData(Flow.Publisher<org.apache.ignite.table.DataStreamerItem<Map.Entry<K, V>>> publisher, @Nullable org.apache.ignite.table.DataStreamerOptions options) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.ignite.table.ContinuousQuerySource
queryContinuouslyMethods inherited from interface org.apache.ignite.table.criteria.CriteriaQuerySource
query, query, queryAsync, queryAsyncMethods inherited from interface org.apache.ignite.table.DataStreamerTarget
streamDataMethods inherited from interface org.apache.ignite.table.KeyValueView
contains, containsAll, containsAllAsync, containsAsync, get, getAll, getAllAsync, getAndPut, getAndPutAsync, getAndRemove, getAndRemoveAsync, getAndReplace, getAndReplaceAsync, getAsync, getNullable, getNullableAndPut, getNullableAndPutAsync, getNullableAndRemove, getNullableAndRemoveAsync, getNullableAndReplace, getNullableAndReplaceAsync, getNullableAsync, getOrDefault, getOrDefaultAsync, put, putAll, putAllAsync, putAsync, putIfAbsent, putIfAbsentAsync, remove, remove, removeAll, removeAllAsync, removeAsync, removeAsync, removeExact, removeExactAsync, replace, replace, replaceAsync, replaceAsync, replaceExact, replaceExactAsync
-
Constructor Details
-
Method Details
-
get
-
getAsync
public CompletableFuture<V> getAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, K key) -
getNullable
-
getNullableAsync
public CompletableFuture<org.apache.ignite.lang.NullableValue<V>> getNullableAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, K key) -
getOrDefault
-
getOrDefaultAsync
public CompletableFuture<V> getOrDefaultAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, K key, @Nullable V defaultValue) -
getAll
-
getAllAsync
public CompletableFuture<Map<K,V>> getAllAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<K> keys) -
contains
-
containsAsync
public CompletableFuture<Boolean> containsAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, K key) -
containsAll
public boolean containsAll(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<K> keys) -
containsAllAsync
public CompletableFuture<Boolean> containsAllAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<K> keys) -
put
-
putAsync
public CompletableFuture<Void> putAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, K key, @Nullable V val) -
putAll
-
putAllAsync
public CompletableFuture<Void> putAllAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Map<K, V> pairs) -
getAndPut
-
getAndPutAsync
public CompletableFuture<V> getAndPutAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, K key, @Nullable V val) -
getNullableAndPut
-
getNullableAndPutAsync
public CompletableFuture<org.apache.ignite.lang.NullableValue<V>> getNullableAndPutAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, K key, @Nullable V val) -
putIfAbsent
-
putIfAbsentAsync
public CompletableFuture<Boolean> putIfAbsentAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, K key, @Nullable V val) -
remove
-
removeExact
-
removeAsync
public CompletableFuture<Boolean> removeAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, K key) -
removeExactAsync
public CompletableFuture<Boolean> removeExactAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, K key, V val) -
removeAll
public void removeAll(@Nullable @Nullable org.apache.ignite.tx.Transaction tx) -
removeAll
public Collection<K> removeAll(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<K> keys) -
removeAllAsync
public CompletableFuture<Collection<K>> removeAllAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<K> keys) -
removeAllAsync
public CompletableFuture<Void> removeAllAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx) -
getAndRemove
-
getAndRemoveAsync
public CompletableFuture<V> getAndRemoveAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, K key) -
getNullableAndRemove
-
getNullableAndRemoveAsync
public CompletableFuture<org.apache.ignite.lang.NullableValue<V>> getNullableAndRemoveAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, K key) -
replace
-
replaceExact
-
replaceAsync
public CompletableFuture<Boolean> replaceAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, K key, @Nullable V val) -
replaceExactAsync
public CompletableFuture<Boolean> replaceExactAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, K key, @Nullable V oldVal, @Nullable V newVal) -
getAndReplace
-
getAndReplaceAsync
public CompletableFuture<V> getAndReplaceAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, K key, @Nullable V val) -
getNullableAndReplace
-
getNullableAndReplaceAsync
public CompletableFuture<org.apache.ignite.lang.NullableValue<V>> getNullableAndReplaceAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, K key, @Nullable V val) -
queryContinuously
public void queryContinuously(Flow.Subscriber<org.apache.ignite.table.TableRowEventBatch<Map.Entry<K, V>>> subscriber, @Nullable @Nullable org.apache.ignite.table.ContinuousQueryOptions options) - Specified by:
queryContinuouslyin interfaceorg.apache.ignite.table.ContinuousQuerySource<K>
-
streamData
public CompletableFuture<Void> streamData(Flow.Publisher<org.apache.ignite.table.DataStreamerItem<Map.Entry<K, V>>> publisher, @Nullable @Nullable org.apache.ignite.table.DataStreamerOptions options) - Specified by:
streamDatain interfaceorg.apache.ignite.table.DataStreamerTarget<K>
-
streamData
public <E,P, CompletableFuture<Void> streamDataA, R> (Flow.Publisher<E> publisher, org.apache.ignite.table.DataStreamerReceiverDescriptor<P, A, R> receiver, Function<E, Map.Entry<K, V>> keyFunc, Function<E, P> payloadFunc, @Nullable A receiverArg, @Nullable @Nullable Flow.Subscriber<R> resultSubscriber, @Nullable @Nullable org.apache.ignite.table.DataStreamerOptions options) - Specified by:
streamDatain interfaceorg.apache.ignite.table.DataStreamerTarget<K>
-
query
public org.apache.ignite.lang.Cursor<Map.Entry<K,V>> query(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, @Nullable @Nullable org.apache.ignite.table.criteria.Criteria criteria, @Nullable @Nullable String indexName, @Nullable @Nullable org.apache.ignite.table.criteria.CriteriaQueryOptions opts) - Specified by:
queryin interfaceorg.apache.ignite.table.criteria.CriteriaQuerySource<K>
-
queryAsync
public CompletableFuture<org.apache.ignite.lang.AsyncCursor<Map.Entry<K,V>>> queryAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, @Nullable @Nullable org.apache.ignite.table.criteria.Criteria criteria, @Nullable @Nullable String indexName, @Nullable @Nullable org.apache.ignite.table.criteria.CriteriaQueryOptions opts) - Specified by:
queryAsyncin interfaceorg.apache.ignite.table.criteria.CriteriaQuerySource<K>
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-