public class BridgeOutputBuilder
extends java.lang.Object
OneField
objects (obtained from the Resolver) into an output
record.Constructor and Description |
---|
BridgeOutputBuilder(ProtocolData input)
Constructs a BridgeOutputBuilder.
|
Modifier and Type | Method and Description |
---|---|
Writable |
getErrorOutput(java.lang.Exception ex)
Returns the error record.
|
Writable |
getPartialLine()
Returns whether or not this is a partial line.
|
java.util.LinkedList<Writable> |
makeOutput(java.util.List<OneField> recFields)
Translates recFields (obtained from the Resolver) into an output record.
|
public BridgeOutputBuilder(ProtocolData input)
input
- input data, like requested output format and schema
informationpublic Writable getErrorOutput(java.lang.Exception ex) throws java.lang.Exception
ex
- exception to be stored in recordjava.lang.Exception
- if the output format is not binarypublic java.util.LinkedList<Writable> makeOutput(java.util.List<OneField> recFields) throws BadRecordException
recFields
- record fields to be serializedBadRecordException
- if building the output record failedpublic Writable getPartialLine()