Interface Store.LockInfoOrBuilder

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

public static interface Store.LockInfoOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.protobuf.ByteString
    write_info.short_value
    long
    the for_update_ts of the pessimistic lock
    com.google.protobuf.ByteString
    the key of the lock
    long
    the start_ts of the transaction
    long
    the lock ttl timestamp in milisecond
    the type of the lock, it can be put, delete, lock
    int
    the type of the lock, it can be put, delete, lock
    long
    the min_commit_ts of the transaction
    com.google.protobuf.ByteString
    the primary lock of the transaction
    com.google.protobuf.ByteString
    getSecondaries(int index)
    the key list of all secondary for transactions that are using Async Commit.
    int
    the key list of all secondary for transactions that are using Async Commit.
    List<com.google.protobuf.ByteString>
    the key list of all secondary for transactions that are using Async Commit.
    com.google.protobuf.ByteString
    the short value will persist to lock_info, and do not write data, commit will set it to
    long
    the number of keys involved in the transaction
    boolean
    bool use_async_commit = 11;

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getPrimaryLock

      com.google.protobuf.ByteString getPrimaryLock()
       the primary lock of the transaction
       
      bytes primary_lock = 1;
      Returns:
      The primaryLock.
    • getKey

      com.google.protobuf.ByteString getKey()
       the key of the lock
       
      bytes key = 2;
      Returns:
      The key.
    • getLockTs

      long getLockTs()
       the start_ts of the transaction
       
      int64 lock_ts = 3;
      Returns:
      The lockTs.
    • getForUpdateTs

      long getForUpdateTs()
       the for_update_ts of the pessimistic lock
       
      int64 for_update_ts = 4;
      Returns:
      The forUpdateTs.
    • getLockTtl

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

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

      int getLockTypeValue()
       the type of the lock, it can be put, delete, lock
       
      .dingodb.pb.store.Op lock_type = 7;
      Returns:
      The enum numeric value on the wire for lockType.
    • getLockType

      Store.Op getLockType()
       the type of the lock, it can be put, delete, lock
       
      .dingodb.pb.store.Op lock_type = 7;
      Returns:
      The lockType.
    • getShortValue

      com.google.protobuf.ByteString getShortValue()
       the short value will persist to lock_info, and do not write data, commit will set it to
       
      bytes short_value = 8;
      Returns:
      The shortValue.
    • getExtraData

      com.google.protobuf.ByteString getExtraData()
       write_info.short_value
       
      bytes extra_data = 9;
      Returns:
      The extraData.
    • getMinCommitTs

      long getMinCommitTs()
       the min_commit_ts of the transaction
       
      int64 min_commit_ts = 10;
      Returns:
      The minCommitTs.
    • getUseAsyncCommit

      boolean getUseAsyncCommit()
      bool use_async_commit = 11;
      Returns:
      The useAsyncCommit.
    • getSecondariesList

      List<com.google.protobuf.ByteString> getSecondariesList()
       the key list of all secondary for transactions that are using Async Commit.
       
      repeated bytes secondaries = 12;
      Returns:
      A list containing the secondaries.
    • getSecondariesCount

      int getSecondariesCount()
       the key list of all secondary for transactions that are using Async Commit.
       
      repeated bytes secondaries = 12;
      Returns:
      The count of secondaries.
    • getSecondaries

      com.google.protobuf.ByteString getSecondaries(int index)
       the key list of all secondary for transactions that are using Async Commit.
       
      repeated bytes secondaries = 12;
      Parameters:
      index - The index of the element to return.
      Returns:
      The secondaries at the given index.