| Modifier and Type | Method and Description |
|---|---|
static Command |
fromThrift(TCommand tc)
Reconstruct a
Command from a TCommand received over the
wire. |
static TCommand |
toThrift(Command command)
Convert a
Command to a TCommand suitable for wire
transport. |
public static TCommand toThrift(Command command)
Command to a TCommand suitable for wire
transport.command - the Command to serializeTCommandUnsupportedOperationException - if the Command type is not
recognizedpublic static Command fromThrift(TCommand tc)
Command from a TCommand received over the
wire.tc - the TCommand to deserializeCommandUnsupportedOperationException - if the verb is not recognized