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 Details

    • NearCacheRecordView

      public NearCacheRecordView(org.apache.ignite.table.RecordView<R> delegate, NearCache<R,R,T> nearCache)
      Constructor.
      Parameters:
      delegate - Delegate view.
      nearCache - Near cache.
  • Method Details

    • get

      public R get(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R keyRec)
      Specified by:
      get in interface org.apache.ignite.table.RecordView<R>
    • getAsync

      public CompletableFuture<R> getAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R keyRec)
      Specified by:
      getAsync in interface org.apache.ignite.table.RecordView<R>
    • getAll

      public List<R> getAll(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> keyRecs)
      Specified by:
      getAll in interface org.apache.ignite.table.RecordView<R>
    • getAllAsync

      public CompletableFuture<List<R>> getAllAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> keyRecs)
      Specified by:
      getAllAsync in interface org.apache.ignite.table.RecordView<R>
    • contains

      public boolean contains(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R key)
      Specified by:
      contains in interface org.apache.ignite.table.RecordView<R>
    • containsAsync

      public CompletableFuture<Boolean> containsAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R key)
      Specified by:
      containsAsync in interface org.apache.ignite.table.RecordView<R>
    • containsAll

      public boolean containsAll(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> keys)
      Specified by:
      containsAll in interface org.apache.ignite.table.RecordView<R>
    • containsAllAsync

      public CompletableFuture<Boolean> containsAllAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> keys)
      Specified by:
      containsAllAsync in interface org.apache.ignite.table.RecordView<R>
    • upsert

      public void upsert(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R rec)
      Specified by:
      upsert in interface org.apache.ignite.table.RecordView<R>
    • upsertAsync

      public CompletableFuture<Void> upsertAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R rec)
      Specified by:
      upsertAsync in interface org.apache.ignite.table.RecordView<R>
    • upsertAll

      public void upsertAll(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> recs)
      Specified by:
      upsertAll in interface org.apache.ignite.table.RecordView<R>
    • upsertAllAsync

      public CompletableFuture<Void> upsertAllAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> recs)
      Specified by:
      upsertAllAsync in interface org.apache.ignite.table.RecordView<R>
    • getAndUpsert

      public R getAndUpsert(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R rec)
      Specified by:
      getAndUpsert in interface org.apache.ignite.table.RecordView<R>
    • getAndUpsertAsync

      public CompletableFuture<R> getAndUpsertAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R rec)
      Specified by:
      getAndUpsertAsync in interface org.apache.ignite.table.RecordView<R>
    • insert

      public boolean insert(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R rec)
      Specified by:
      insert in interface org.apache.ignite.table.RecordView<R>
    • insertAsync

      public CompletableFuture<Boolean> insertAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R rec)
      Specified by:
      insertAsync in interface org.apache.ignite.table.RecordView<R>
    • insertAll

      public List<R> insertAll(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> recs)
      Specified by:
      insertAll in interface org.apache.ignite.table.RecordView<R>
    • insertAllAsync

      public CompletableFuture<List<R>> insertAllAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> recs)
      Specified by:
      insertAllAsync in interface org.apache.ignite.table.RecordView<R>
    • replace

      public boolean replace(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R rec)
      Specified by:
      replace in interface org.apache.ignite.table.RecordView<R>
    • replace

      public boolean replace(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R oldRec, R newRec)
      Specified by:
      replace in interface org.apache.ignite.table.RecordView<R>
    • replaceAsync

      public CompletableFuture<Boolean> replaceAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R rec)
      Specified by:
      replaceAsync in interface org.apache.ignite.table.RecordView<R>
    • replaceAsync

      public CompletableFuture<Boolean> replaceAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R oldRec, R newRec)
      Specified by:
      replaceAsync in interface org.apache.ignite.table.RecordView<R>
    • getAndReplace

      public R getAndReplace(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R rec)
      Specified by:
      getAndReplace in interface org.apache.ignite.table.RecordView<R>
    • getAndReplaceAsync

      public CompletableFuture<R> getAndReplaceAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R rec)
      Specified by:
      getAndReplaceAsync in interface org.apache.ignite.table.RecordView<R>
    • delete

      public boolean delete(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R keyRec)
      Specified by:
      delete in interface org.apache.ignite.table.RecordView<R>
    • deleteAsync

      public CompletableFuture<Boolean> deleteAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R keyRec)
      Specified by:
      deleteAsync in interface org.apache.ignite.table.RecordView<R>
    • deleteExact

      public boolean deleteExact(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R rec)
      Specified by:
      deleteExact in interface org.apache.ignite.table.RecordView<R>
    • deleteExactAsync

      public CompletableFuture<Boolean> deleteExactAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R rec)
      Specified by:
      deleteExactAsync in interface org.apache.ignite.table.RecordView<R>
    • getAndDelete

      public R getAndDelete(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R keyRec)
      Specified by:
      getAndDelete in interface org.apache.ignite.table.RecordView<R>
    • getAndDeleteAsync

      public CompletableFuture<R> getAndDeleteAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, R keyRec)
      Specified by:
      getAndDeleteAsync in interface org.apache.ignite.table.RecordView<R>
    • deleteAll

      public List<R> deleteAll(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> keyRecs)
      Specified by:
      deleteAll in interface org.apache.ignite.table.RecordView<R>
    • deleteAll

      public void deleteAll(@Nullable @Nullable org.apache.ignite.tx.Transaction tx)
      Specified by:
      deleteAll in interface org.apache.ignite.table.RecordView<R>
    • deleteAllAsync

      public CompletableFuture<List<R>> deleteAllAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> keyRecs)
      Specified by:
      deleteAllAsync in interface org.apache.ignite.table.RecordView<R>
    • deleteAllAsync

      public CompletableFuture<Void> deleteAllAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx)
      Specified by:
      deleteAllAsync in interface org.apache.ignite.table.RecordView<R>
    • deleteAllExact

      public List<R> deleteAllExact(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> recs)
      Specified by:
      deleteAllExact in interface org.apache.ignite.table.RecordView<R>
    • deleteAllExactAsync

      public CompletableFuture<List<R>> deleteAllExactAsync(@Nullable @Nullable org.apache.ignite.tx.Transaction tx, Collection<R> recs)
      Specified by:
      deleteAllExactAsync in interface org.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:
      streamData in interface org.apache.ignite.table.DataStreamerTarget<R>
    • streamData

      public <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, @Nullable A receiverArg, @Nullable Flow.Subscriber<R1> resultSubscriber, @Nullable @Nullable org.apache.ignite.table.DataStreamerOptions options)
      Specified by:
      streamData in interface org.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:
      queryContinuously in interface org.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:
      query in interface org.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:
      queryAsync in interface org.apache.ignite.table.criteria.CriteriaQuerySource<R>
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception