Class ProcedureUtil.StateSerializer
java.lang.Object
org.apache.hadoop.hbase.procedure2.ProcedureUtil.StateSerializer
- All Implemented Interfaces:
ProcedureStateSerializer
- Enclosing class:
- ProcedureUtil
private static class ProcedureUtil.StateSerializer
extends Object
implements ProcedureStateSerializer
A serializer for our Procedures. Instead of the previous serializer, it uses the stateMessage
list to store the internal state of the Procedures.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.Procedure.Builder
private int
-
Constructor Summary
ConstructorDescriptionStateSerializer
(org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.Procedure.Builder builder) -
Method Summary
Modifier and TypeMethodDescription<M extends org.apache.hbase.thirdparty.com.google.protobuf.Message>
Mdeserialize
(Class<M> clazz) void
serialize
(org.apache.hbase.thirdparty.com.google.protobuf.Message message)
-
Field Details
-
builder
private final org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.Procedure.Builder builder -
deserializeIndex
-
-
Constructor Details
-
StateSerializer
public StateSerializer(org.apache.hadoop.hbase.shaded.protobuf.generated.ProcedureProtos.Procedure.Builder builder)
-
-
Method Details
-
serialize
public void serialize(org.apache.hbase.thirdparty.com.google.protobuf.Message message) throws IOException - Specified by:
serialize
in interfaceProcedureStateSerializer
- Throws:
IOException
-
deserialize
public <M extends org.apache.hbase.thirdparty.com.google.protobuf.Message> M deserialize(Class<M> clazz) throws IOException - Specified by:
deserialize
in interfaceProcedureStateSerializer
- Throws:
IOException
-