public class JsonEncoder extends Object implements BDGlueEncoder
Constructor and Description |
---|
JsonEncoder() |
JsonEncoder(boolean textOnly) |
Modifier and Type | Method and Description |
---|---|
EventData |
encodeDatabaseOperation(DownstreamOperation op)
Encode the DownstreamOperation as a JSON record.
|
EncoderType |
getEncoderType()
Get the EncoderType.
|
public JsonEncoder()
public JsonEncoder(boolean textOnly)
textOnly
- flag to indicate whether to encode everything as text,
or encode non-text fields differently.public EventData encodeDatabaseOperation(DownstreamOperation op) throws IOException
encodeDatabaseOperation
in interface BDGlueEncoder
op
- the operatoin we are encodingIOException
- if an encoding error occurspublic EncoderType getEncoderType()
getEncoderType
in interface BDGlueEncoder
Copyright © 2016–2017. All rights reserved.