Package alluxio.wire
Class OperationId
- java.lang.Object
-
- alluxio.collections.Pair<java.lang.Long,java.lang.Long>
-
- alluxio.wire.OperationId
-
public class OperationId extends Pair<java.lang.Long,java.lang.Long>
Used as an unique ID wrapper.
-
-
Constructor Summary
Constructors Constructor Description OperationId(java.lang.Long leastSignificant, java.lang.Long mostSignificant)
Constructs and initializes a 128 bit OperationId.OperationId(java.util.UUID guid)
Constructs and initializes a 128 bit OperationId from an UUID.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OperationId
fromFsProto(alluxio.grpc.FsOpPId opId)
Creates FsOpId from proto.static OperationId
fromJournalProto(alluxio.proto.journal.Journal.JournalOpPId opId)
Creates FsOpId from proto.alluxio.grpc.FsOpPId
toFsProto()
alluxio.proto.journal.Journal.JournalOpPId
toJournalProto()
-
-
-
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 bitsmostSignificant
- 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
-
-