Class NearCacheRecordView<R,T>
java.lang.Object
org.gridgain.internal.table.nearcache.NearCacheRecordView<R,T>
- All Implemented Interfaces:
AutoCloseable,org.apache.ignite.table.ContinuousQuerySource<R>,org.apache.ignite.table.criteria.CriteriaQuerySource<R>,org.apache.ignite.table.DataStreamerTarget<R>,org.apache.ignite.table.RecordView<R>
public class NearCacheRecordView<R,T>
extends Object
implements org.apache.ignite.table.RecordView<R>
Record view implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanbooleancontainsAll(@Nullable org.apache.ignite.tx.Transaction tx, Collection<R> keys) containsAllAsync(@Nullable org.apache.ignite.tx.Transaction tx, Collection<R> keys) containsAsync(@Nullable org.apache.ignite.tx.Transaction tx, R key) booleanvoiddeleteAll(@Nullable org.apache.ignite.tx.Transaction tx) deleteAll(@Nullable org.apache.ignite.tx.Transaction tx, Collection<R> keyRecs) deleteAllAsync(@Nullable org.apache.ignite.tx.Transaction tx) deleteAllAsync(@Nullable org.apache.ignite.tx.Transaction tx, Collection<R> keyRecs) deleteAllExact(@Nullable org.apache.ignite.tx.Transaction tx, Collection<R> recs) deleteAllExactAsync(@Nullable org.apache.ignite.tx.Transaction tx, Collection<R> recs) deleteAsync(@Nullable org.apache.ignite.tx.Transaction tx, R keyRec) booleandeleteExact(@Nullable org.apache.ignite.tx.Transaction tx, R rec) deleteExactAsync(@Nullable org.apache.ignite.tx.Transaction tx, R rec) getAll(@Nullable org.apache.ignite.tx.Transaction tx, Collection<R> keyRecs) getAllAsync(@Nullable org.apache.ignite.tx.Transaction tx, Collection<R> keyRecs) getAndDelete(@Nullable org.apache.ignite.tx.Transaction tx, R keyRec) getAndDeleteAsync(@Nullable org.apache.ignite.tx.Transaction tx, R keyRec) getAndReplace(@Nullable org.apache.ignite.tx.Transaction tx, R rec) getAndReplaceAsync(@Nullable org.apache.ignite.tx.Transaction tx, R rec) getAndUpsert(@Nullable org.apache.ignite.tx.Transaction tx, R rec) getAndUpsertAsync(@Nullable org.apache.ignite.tx.Transaction tx, R rec) booleaninsertAll(@Nullable org.apache.ignite.tx.Transaction tx, Collection<R> recs) insertAllAsync(@Nullable org.apache.ignite.tx.Transaction tx, Collection<R> recs) insertAsync(@Nullable org.apache.ignite.tx.Transaction tx, R rec) org.apache.ignite.lang.Cursor<R>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<R>>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<R>> subscriber, @Nullable org.apache.ignite.table.ContinuousQueryOptions options) booleanbooleanreplaceAsync(@Nullable org.apache.ignite.tx.Transaction tx, R rec) replaceAsync(@Nullable org.apache.ignite.tx.Transaction tx, R oldRec, R newRec) <E,V, A, R1> CompletableFuture<Void> streamData(Flow.Publisher<E> publisher, org.apache.ignite.table.DataStreamerReceiverDescriptor<V, A, R1> receiver, Function<E, R> keyFunc, Function<E, V> payloadFunc, A receiverArg, Flow.Subscriber<R1> resultSubscriber, @Nullable org.apache.ignite.table.DataStreamerOptions options) streamData(Flow.Publisher<org.apache.ignite.table.DataStreamerItem<R>> publisher, @Nullable org.apache.ignite.table.DataStreamerOptions options) voidvoidupsertAll(@Nullable org.apache.ignite.tx.Transaction tx, Collection<R> recs) upsertAllAsync(@Nullable org.apache.ignite.tx.Transaction tx, Collection<R> recs) upsertAsync(@Nullable org.apache.ignite.tx.Transaction tx, R rec) 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
streamData
-
Constructor Details
-
Method Details
-
get
- Specified by:
getin interfaceorg.apache.ignite.table.RecordView<R>
-
getAsync
public CompletableFuture<R> getAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R keyRec) - Specified by:
getAsyncin interfaceorg.apache.ignite.table.RecordView<R>
-
getAll
public List<R> getAll(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> keyRecs) - Specified by:
getAllin interfaceorg.apache.ignite.table.RecordView<R>
-
getAllAsync
public CompletableFuture<List<R>> getAllAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> keyRecs) - Specified by:
getAllAsyncin interfaceorg.apache.ignite.table.RecordView<R>
-
contains
- Specified by:
containsin interfaceorg.apache.ignite.table.RecordView<R>
-
containsAsync
public CompletableFuture<Boolean> containsAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R key) - Specified by:
containsAsyncin interfaceorg.apache.ignite.table.RecordView<R>
-
containsAll
public boolean containsAll(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> keys) - Specified by:
containsAllin interfaceorg.apache.ignite.table.RecordView<R>
-
containsAllAsync
public CompletableFuture<Boolean> containsAllAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> keys) - Specified by:
containsAllAsyncin interfaceorg.apache.ignite.table.RecordView<R>
-
upsert
- Specified by:
upsertin interfaceorg.apache.ignite.table.RecordView<R>
-
upsertAsync
public CompletableFuture<Void> upsertAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R rec) - Specified by:
upsertAsyncin interfaceorg.apache.ignite.table.RecordView<R>
-
upsertAll
- Specified by:
upsertAllin interfaceorg.apache.ignite.table.RecordView<R>
-
upsertAllAsync
public CompletableFuture<Void> upsertAllAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> recs) - Specified by:
upsertAllAsyncin interfaceorg.apache.ignite.table.RecordView<R>
-
getAndUpsert
- Specified by:
getAndUpsertin interfaceorg.apache.ignite.table.RecordView<R>
-
getAndUpsertAsync
public CompletableFuture<R> getAndUpsertAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R rec) - Specified by:
getAndUpsertAsyncin interfaceorg.apache.ignite.table.RecordView<R>
-
insert
- Specified by:
insertin interfaceorg.apache.ignite.table.RecordView<R>
-
insertAsync
public CompletableFuture<Boolean> insertAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R rec) - Specified by:
insertAsyncin interfaceorg.apache.ignite.table.RecordView<R>
-
insertAll
public List<R> insertAll(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> recs) - Specified by:
insertAllin interfaceorg.apache.ignite.table.RecordView<R>
-
insertAllAsync
public CompletableFuture<List<R>> insertAllAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> recs) - Specified by:
insertAllAsyncin interfaceorg.apache.ignite.table.RecordView<R>
-
replace
- Specified by:
replacein interfaceorg.apache.ignite.table.RecordView<R>
-
replace
- Specified by:
replacein interfaceorg.apache.ignite.table.RecordView<R>
-
replaceAsync
public CompletableFuture<Boolean> replaceAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R rec) - Specified by:
replaceAsyncin interfaceorg.apache.ignite.table.RecordView<R>
-
replaceAsync
public CompletableFuture<Boolean> replaceAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R oldRec, R newRec) - Specified by:
replaceAsyncin interfaceorg.apache.ignite.table.RecordView<R>
-
getAndReplace
- Specified by:
getAndReplacein interfaceorg.apache.ignite.table.RecordView<R>
-
getAndReplaceAsync
public CompletableFuture<R> getAndReplaceAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R rec) - Specified by:
getAndReplaceAsyncin interfaceorg.apache.ignite.table.RecordView<R>
-
delete
- Specified by:
deletein interfaceorg.apache.ignite.table.RecordView<R>
-
deleteAsync
public CompletableFuture<Boolean> deleteAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R keyRec) - Specified by:
deleteAsyncin interfaceorg.apache.ignite.table.RecordView<R>
-
deleteExact
- Specified by:
deleteExactin interfaceorg.apache.ignite.table.RecordView<R>
-
deleteExactAsync
public CompletableFuture<Boolean> deleteExactAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R rec) - Specified by:
deleteExactAsyncin interfaceorg.apache.ignite.table.RecordView<R>
-
getAndDelete
- Specified by:
getAndDeletein interfaceorg.apache.ignite.table.RecordView<R>
-
getAndDeleteAsync
public CompletableFuture<R> getAndDeleteAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R keyRec) - Specified by:
getAndDeleteAsyncin interfaceorg.apache.ignite.table.RecordView<R>
-
deleteAll
public List<R> deleteAll(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> keyRecs) - Specified by:
deleteAllin interfaceorg.apache.ignite.table.RecordView<R>
-
deleteAll
public void deleteAll(@Nullable @Nullable org.apache.ignite.tx.Transaction tx) - Specified by:
deleteAllin interfaceorg.apache.ignite.table.RecordView<R>
-
deleteAllAsync
public CompletableFuture<List<R>> deleteAllAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> keyRecs) - Specified by:
deleteAllAsyncin interfaceorg.apache.ignite.table.RecordView<R>
-
deleteAllAsync
public CompletableFuture<Void> deleteAllAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx) - Specified by:
deleteAllAsyncin interfaceorg.apache.ignite.table.RecordView<R>
-
deleteAllExact
public List<R> deleteAllExact(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> recs) - Specified by:
deleteAllExactin interfaceorg.apache.ignite.table.RecordView<R>
-
deleteAllExactAsync
public CompletableFuture<List<R>> deleteAllExactAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> recs) - Specified by:
deleteAllExactAsyncin interfaceorg.apache.ignite.table.RecordView<R>
-
streamData
public CompletableFuture<Void> streamData(Flow.Publisher<org.apache.ignite.table.DataStreamerItem<R>> publisher, @Nullable @Nullable org.apache.ignite.table.DataStreamerOptions options) - Specified by:
streamDatain interfaceorg.apache.ignite.table.DataStreamerTarget<R>
-
streamData
public <E,V, CompletableFuture<Void> streamDataA, R1> (Flow.Publisher<E> publisher, org.apache.ignite.table.DataStreamerReceiverDescriptor<V, A, R1> receiver, Function<E, R> keyFunc, Function<E, V> payloadFunc, @Nullable A receiverArg, @Nullable Flow.Subscriber<R1> resultSubscriber, @Nullable @Nullable org.apache.ignite.table.DataStreamerOptions options) - Specified by:
streamDatain interfaceorg.apache.ignite.table.DataStreamerTarget<R>
-
queryContinuously
public void queryContinuously(Flow.Subscriber<org.apache.ignite.table.TableRowEventBatch<R>> subscriber, @Nullable @Nullable org.apache.ignite.table.ContinuousQueryOptions options) - Specified by:
queryContinuouslyin interfaceorg.apache.ignite.table.ContinuousQuerySource<R>
-
query
public org.apache.ignite.lang.Cursor<R> 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<R>
-
queryAsync
public CompletableFuture<org.apache.ignite.lang.AsyncCursor<R>> 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<R>
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-