Base class for Thrift binary codecs. Provides encoding and decoding of values using Apache Thrift's TBinaryProtocol.
Type parameters
- A
-
The type being encoded/decoded
Attributes
- Companion
- object
- Source
- ThriftCodec.scala
- Graph
-
- Supertypes
Members list
Value members
Abstract methods
Decodes a value from the Thrift protocol. May throw on malformed input.
Decodes a value from the Thrift protocol. May throw on malformed input.
Attributes
- Source
- ThriftCodec.scala
Encodes a value to the Thrift protocol.
Concrete methods
Decodes the specified input into a value of the target type.
Decodes the specified input into a value of the target type.
Value parameters
- input
-
The input data that needs to be decoded.
Attributes
- Returns
-
Either a
SchemaErrorindicating the decoding failure, or a decoded value. - Definition Classes
- Source
- ThriftCodec.scala
Decodes from a byte array.
Encodes the given value into the specified output representation.
Encodes the given value into the specified output representation.
Value parameters
- output
-
The target output into which the value will be encoded.
- value
-
The value to be encoded.
Attributes
- Returns
-
This method does not return a value.
- Definition Classes
- Source
- ThriftCodec.scala
Encodes to a byte array.
Throws decode error with the given message.
Throws decode error with a path span and underlying error.