Class Store.LockInfo

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.dingodb.store.Store.LockInfo
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Store.LockInfoOrBuilder, Serializable
Enclosing class:
Store

public static final class Store.LockInfo extends com.google.protobuf.GeneratedMessageV3 implements Store.LockInfoOrBuilder
Protobuf type dingodb.pb.store.LockInfo
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Protobuf type dingodb.pb.store.LockInfo

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    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.Parser<Store.LockInfo>
     
    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.
    int
     
    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;
    int
     
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
    protected Object
    newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Store.LockInfo>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

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

    • PRIMARY_LOCK_FIELD_NUMBER

      public static final int PRIMARY_LOCK_FIELD_NUMBER
      See Also:
    • KEY_FIELD_NUMBER

      public static final int KEY_FIELD_NUMBER
      See Also:
    • LOCK_TS_FIELD_NUMBER

      public static final int LOCK_TS_FIELD_NUMBER
      See Also:
    • FOR_UPDATE_TS_FIELD_NUMBER

      public static final int FOR_UPDATE_TS_FIELD_NUMBER
      See Also:
    • LOCK_TTL_FIELD_NUMBER

      public static final int LOCK_TTL_FIELD_NUMBER
      See Also:
    • TXN_SIZE_FIELD_NUMBER

      public static final int TXN_SIZE_FIELD_NUMBER
      See Also:
    • LOCK_TYPE_FIELD_NUMBER

      public static final int LOCK_TYPE_FIELD_NUMBER
      See Also:
    • SHORT_VALUE_FIELD_NUMBER

      public static final int SHORT_VALUE_FIELD_NUMBER
      See Also:
    • EXTRA_DATA_FIELD_NUMBER

      public static final int EXTRA_DATA_FIELD_NUMBER
      See Also:
    • MIN_COMMIT_TS_FIELD_NUMBER

      public static final int MIN_COMMIT_TS_FIELD_NUMBER
      See Also:
    • USE_ASYNC_COMMIT_FIELD_NUMBER

      public static final int USE_ASYNC_COMMIT_FIELD_NUMBER
      See Also:
    • SECONDARIES_FIELD_NUMBER

      public static final int SECONDARIES_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getPrimaryLock

      public com.google.protobuf.ByteString getPrimaryLock()
       the primary lock of the transaction
       
      bytes primary_lock = 1;
      Specified by:
      getPrimaryLock in interface Store.LockInfoOrBuilder
      Returns:
      The primaryLock.
    • getKey

      public com.google.protobuf.ByteString getKey()
       the key of the lock
       
      bytes key = 2;
      Specified by:
      getKey in interface Store.LockInfoOrBuilder
      Returns:
      The key.
    • getLockTs

      public long getLockTs()
       the start_ts of the transaction
       
      int64 lock_ts = 3;
      Specified by:
      getLockTs in interface Store.LockInfoOrBuilder
      Returns:
      The lockTs.
    • getForUpdateTs

      public long getForUpdateTs()
       the for_update_ts of the pessimistic lock
       
      int64 for_update_ts = 4;
      Specified by:
      getForUpdateTs in interface Store.LockInfoOrBuilder
      Returns:
      The forUpdateTs.
    • getLockTtl

      public long getLockTtl()
       the lock ttl timestamp in milisecond
       
      int64 lock_ttl = 5;
      Specified by:
      getLockTtl in interface Store.LockInfoOrBuilder
      Returns:
      The lockTtl.
    • getTxnSize

      public long getTxnSize()
       the number of keys involved in the transaction
       
      int64 txn_size = 6;
      Specified by:
      getTxnSize in interface Store.LockInfoOrBuilder
      Returns:
      The txnSize.
    • getLockTypeValue

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

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

      public 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;
      Specified by:
      getShortValue in interface Store.LockInfoOrBuilder
      Returns:
      The shortValue.
    • getExtraData

      public com.google.protobuf.ByteString getExtraData()
       write_info.short_value
       
      bytes extra_data = 9;
      Specified by:
      getExtraData in interface Store.LockInfoOrBuilder
      Returns:
      The extraData.
    • getMinCommitTs

      public long getMinCommitTs()
       the min_commit_ts of the transaction
       
      int64 min_commit_ts = 10;
      Specified by:
      getMinCommitTs in interface Store.LockInfoOrBuilder
      Returns:
      The minCommitTs.
    • getUseAsyncCommit

      public boolean getUseAsyncCommit()
      bool use_async_commit = 11;
      Specified by:
      getUseAsyncCommit in interface Store.LockInfoOrBuilder
      Returns:
      The useAsyncCommit.
    • getSecondariesList

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

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

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

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Store.LockInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Store.LockInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Store.LockInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Store.LockInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Store.LockInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Store.LockInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Store.LockInfo parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Store.LockInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Store.LockInfo parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Store.LockInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Store.LockInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Store.LockInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Store.LockInfo.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Store.LockInfo.Builder newBuilder()
    • newBuilder

      public static Store.LockInfo.Builder newBuilder(Store.LockInfo prototype)
    • toBuilder

      public Store.LockInfo.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Store.LockInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Store.LockInfo getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Store.LockInfo> parser()
    • getParserForType

      public com.google.protobuf.Parser<Store.LockInfo> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Store.LockInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder