Interface Store.TxnPrewriteRequestOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Store.TxnPrewriteRequest, Store.TxnPrewriteRequest.Builder
Enclosing class:
Store

public static interface Store.TxnPrewriteRequestOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasRequestInfo

      boolean hasRequestInfo()
      .dingodb.pb.common.RequestInfo request_info = 1;
      Returns:
      Whether the requestInfo field is set.
    • getRequestInfo

      Common.RequestInfo getRequestInfo()
      .dingodb.pb.common.RequestInfo request_info = 1;
      Returns:
      The requestInfo.
    • getRequestInfoOrBuilder

      Common.RequestInfoOrBuilder getRequestInfoOrBuilder()
      .dingodb.pb.common.RequestInfo request_info = 1;
    • hasContext

      boolean hasContext()
      .dingodb.pb.store.Context context = 2;
      Returns:
      Whether the context field is set.
    • getContext

      Store.Context getContext()
      .dingodb.pb.store.Context context = 2;
      Returns:
      The context.
    • getContextOrBuilder

      Store.ContextOrBuilder getContextOrBuilder()
      .dingodb.pb.store.Context context = 2;
    • getMutationsList

      List<Store.Mutation> getMutationsList()
       The data to be written to the database.
       
      repeated .dingodb.pb.store.Mutation mutations = 3;
    • getMutations

      Store.Mutation getMutations(int index)
       The data to be written to the database.
       
      repeated .dingodb.pb.store.Mutation mutations = 3;
    • getMutationsCount

      int getMutationsCount()
       The data to be written to the database.
       
      repeated .dingodb.pb.store.Mutation mutations = 3;
    • getMutationsOrBuilderList

      List<? extends Store.MutationOrBuilder> getMutationsOrBuilderList()
       The data to be written to the database.
       
      repeated .dingodb.pb.store.Mutation mutations = 3;
    • getMutationsOrBuilder

      Store.MutationOrBuilder getMutationsOrBuilder(int index)
       The data to be written to the database.
       
      repeated .dingodb.pb.store.Mutation mutations = 3;
    • getPrimaryLock

      com.google.protobuf.ByteString getPrimaryLock()
       The primary lock of the transaction is setup by client
       
      bytes primary_lock = 4;
      Returns:
      The primaryLock.
    • getStartTs

      long getStartTs()
       Identifies the transaction being written.
       
      int64 start_ts = 5;
      Returns:
      The startTs.
    • getLockTtl

      long getLockTtl()
       the lock's ttl is timestamp in milisecond.
       
      int64 lock_ttl = 6;
      Returns:
      The lockTtl.
    • getTxnSize

      long getTxnSize()
       the number of keys involved in the transaction
       
      int64 txn_size = 7;
      Returns:
      The txnSize.
    • getTryOnePc

      boolean getTryOnePc()
       When the transaction involves only one region, it's possible to commit the
       transaction directly with 1PC protocol.
       
      bool try_one_pc = 8;
      Returns:
      The tryOnePc.
    • getMaxCommitTs

      long getMaxCommitTs()
       The max commit ts is reserved for limiting the commit ts of 1PC, which can be used to avoid inconsistency with
       schema change. This field is unused now.
       
      int64 max_commit_ts = 9;
      Returns:
      The maxCommitTs.
    • getPessimisticChecksList

      List<Store.TxnPrewriteRequest.PessimisticCheck> getPessimisticChecksList()
       for pessimistic transaction
       check if the keys is locked by pessimistic transaction
       
      repeated .dingodb.pb.store.TxnPrewriteRequest.PessimisticCheck pessimistic_checks = 10;
      Returns:
      A list containing the pessimisticChecks.
    • getPessimisticChecksCount

      int getPessimisticChecksCount()
       for pessimistic transaction
       check if the keys is locked by pessimistic transaction
       
      repeated .dingodb.pb.store.TxnPrewriteRequest.PessimisticCheck pessimistic_checks = 10;
      Returns:
      The count of pessimisticChecks.
    • getPessimisticChecks

      Store.TxnPrewriteRequest.PessimisticCheck getPessimisticChecks(int index)
       for pessimistic transaction
       check if the keys is locked by pessimistic transaction
       
      repeated .dingodb.pb.store.TxnPrewriteRequest.PessimisticCheck pessimistic_checks = 10;
      Parameters:
      index - The index of the element to return.
      Returns:
      The pessimisticChecks at the given index.
    • getPessimisticChecksValueList

      List<Integer> getPessimisticChecksValueList()
       for pessimistic transaction
       check if the keys is locked by pessimistic transaction
       
      repeated .dingodb.pb.store.TxnPrewriteRequest.PessimisticCheck pessimistic_checks = 10;
      Returns:
      A list containing the enum numeric values on the wire for pessimisticChecks.
    • getPessimisticChecksValue

      int getPessimisticChecksValue(int index)
       for pessimistic transaction
       check if the keys is locked by pessimistic transaction
       
      repeated .dingodb.pb.store.TxnPrewriteRequest.PessimisticCheck pessimistic_checks = 10;
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of pessimisticChecks at the given index.
    • getForUpdateTsChecksList

      List<Store.TxnPrewriteRequest.ForUpdateTsCheck> getForUpdateTsChecksList()
       fo pessimistic transaction
       for_update_ts constriants that should be checked when prewriting a pessimistic transaction.
       
      repeated .dingodb.pb.store.TxnPrewriteRequest.ForUpdateTsCheck for_update_ts_checks = 11;
    • getForUpdateTsChecks

      Store.TxnPrewriteRequest.ForUpdateTsCheck getForUpdateTsChecks(int index)
       fo pessimistic transaction
       for_update_ts constriants that should be checked when prewriting a pessimistic transaction.
       
      repeated .dingodb.pb.store.TxnPrewriteRequest.ForUpdateTsCheck for_update_ts_checks = 11;
    • getForUpdateTsChecksCount

      int getForUpdateTsChecksCount()
       fo pessimistic transaction
       for_update_ts constriants that should be checked when prewriting a pessimistic transaction.
       
      repeated .dingodb.pb.store.TxnPrewriteRequest.ForUpdateTsCheck for_update_ts_checks = 11;
    • getForUpdateTsChecksOrBuilderList

      List<? extends Store.TxnPrewriteRequest.ForUpdateTsCheckOrBuilder> getForUpdateTsChecksOrBuilderList()
       fo pessimistic transaction
       for_update_ts constriants that should be checked when prewriting a pessimistic transaction.
       
      repeated .dingodb.pb.store.TxnPrewriteRequest.ForUpdateTsCheck for_update_ts_checks = 11;
    • getForUpdateTsChecksOrBuilder

      Store.TxnPrewriteRequest.ForUpdateTsCheckOrBuilder getForUpdateTsChecksOrBuilder(int index)
       fo pessimistic transaction
       for_update_ts constriants that should be checked when prewriting a pessimistic transaction.
       
      repeated .dingodb.pb.store.TxnPrewriteRequest.ForUpdateTsCheck for_update_ts_checks = 11;
    • getLockExtraDatasList

       for both pessimistic and optimistic transaction
       the extra_data executor want to store in lock
       
      repeated .dingodb.pb.store.TxnPrewriteRequest.LockExtraData lock_extra_datas = 12;
    • getLockExtraDatas

      Store.TxnPrewriteRequest.LockExtraData getLockExtraDatas(int index)
       for both pessimistic and optimistic transaction
       the extra_data executor want to store in lock
       
      repeated .dingodb.pb.store.TxnPrewriteRequest.LockExtraData lock_extra_datas = 12;
    • getLockExtraDatasCount

      int getLockExtraDatasCount()
       for both pessimistic and optimistic transaction
       the extra_data executor want to store in lock
       
      repeated .dingodb.pb.store.TxnPrewriteRequest.LockExtraData lock_extra_datas = 12;
    • getLockExtraDatasOrBuilderList

      List<? extends Store.TxnPrewriteRequest.LockExtraDataOrBuilder> getLockExtraDatasOrBuilderList()
       for both pessimistic and optimistic transaction
       the extra_data executor want to store in lock
       
      repeated .dingodb.pb.store.TxnPrewriteRequest.LockExtraData lock_extra_datas = 12;
    • getLockExtraDatasOrBuilder

      Store.TxnPrewriteRequest.LockExtraDataOrBuilder getLockExtraDatasOrBuilder(int index)
       for both pessimistic and optimistic transaction
       the extra_data executor want to store in lock
       
      repeated .dingodb.pb.store.TxnPrewriteRequest.LockExtraData lock_extra_datas = 12;
    • getMinCommitTs

      long getMinCommitTs()
       If min_commit_ts > 0, this is a large transaction request, the final commit_ts
       will be inferred from `min_commit_ts`.
       
      int64 min_commit_ts = 13;
      Returns:
      The minCommitTs.
    • getUseAsyncCommit

      boolean getUseAsyncCommit()
       When async commit is enabled, `secondaries` should be set as the key list of all secondary
       locks if the request prewrites the primary lock.
       
      bool use_async_commit = 14;
      Returns:
      The useAsyncCommit.
    • getSecondariesList

      List<com.google.protobuf.ByteString> getSecondariesList()
      repeated bytes secondaries = 15;
      Returns:
      A list containing the secondaries.
    • getSecondariesCount

      int getSecondariesCount()
      repeated bytes secondaries = 15;
      Returns:
      The count of secondaries.
    • getSecondaries

      com.google.protobuf.ByteString getSecondaries(int index)
      repeated bytes secondaries = 15;
      Parameters:
      index - The index of the element to return.
      Returns:
      The secondaries at the given index.