Package alluxio.wire

Class OperationId


  • public class OperationId
    extends Pair<java.lang.Long,​java.lang.Long>
    Used as an unique ID wrapper.
    • Constructor Detail

      • OperationId

        public OperationId​(java.lang.Long leastSignificant,
                           java.lang.Long mostSignificant)
        Constructs and initializes a 128 bit OperationId.
        Parameters:
        leastSignificant - the least significant bits
        mostSignificant - the most significant bits
      • OperationId

        public OperationId​(java.util.UUID guid)
        Constructs and initializes a 128 bit OperationId from an UUID.
        Parameters:
        guid - the guid
    • Method Detail

      • toFsProto

        public alluxio.grpc.FsOpPId toFsProto()
        Returns:
        proto representation of fs operation id
      • toJournalProto

        public alluxio.proto.journal.Journal.JournalOpPId toJournalProto()
        Returns:
        proto representation of fs operation id
      • fromFsProto

        public static OperationId fromFsProto​(alluxio.grpc.FsOpPId opId)
        Creates FsOpId from proto.
        Parameters:
        opId - proto op id
        Returns:
        wire fs op id
      • fromJournalProto

        public static OperationId fromJournalProto​(alluxio.proto.journal.Journal.JournalOpPId opId)
        Creates FsOpId from proto.
        Parameters:
        opId - proto op id
        Returns:
        wire fs op id