StrictJsonWriter@Deprecated public class StrictJsonWriter extends AbstractRecordWriter
| Constructor and Description |
|---|
StrictJsonWriter(HiveEndPoint endPoint)
Deprecated.
As of release 1.3/2.1. Replaced by
StrictJsonWriter(HiveEndPoint, HiveConf, StreamingConnection) |
StrictJsonWriter(HiveEndPoint endPoint,
HiveConf conf)
Deprecated.
As of release 1.3/2.1. Replaced by
StrictJsonWriter(HiveEndPoint, HiveConf, StreamingConnection) |
StrictJsonWriter(HiveEndPoint endPoint,
HiveConf conf,
StreamingConnection conn)
Deprecated.
|
StrictJsonWriter(HiveEndPoint endPoint,
StreamingConnection conn)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
encode(byte[] utf8StrRecord)
Deprecated.
Encode a record as an Object that Hive can read with the ObjectInspector associated with the
serde returned by
AbstractRecordWriter.getSerde(). |
protected ObjectInspector[] |
getBucketObjectInspectors()
Deprecated.
|
protected StructField[] |
getBucketStructFields()
Deprecated.
|
protected HCatRecordObjectInspector |
getRecordObjectInspector()
Deprecated.
|
AbstractSerDe |
getSerde()
Deprecated.
Get the SerDe for the Objects created by
AbstractRecordWriter.encode(byte[]). |
void |
write(long writeId,
byte[] record)
Deprecated.
Writes using a hive RecordUpdater
|
clear, closeBatch, flush, getBucket, getObjectInspectorsForBucketedCols, newBatchpublic StrictJsonWriter(HiveEndPoint endPoint) throws ConnectionError, SerializationError, StreamingException
StrictJsonWriter(HiveEndPoint, HiveConf, StreamingConnection)public StrictJsonWriter(HiveEndPoint endPoint, HiveConf conf) throws StreamingException
StrictJsonWriter(HiveEndPoint, HiveConf, StreamingConnection)StreamingExceptionpublic StrictJsonWriter(HiveEndPoint endPoint, StreamingConnection conn) throws ConnectionError, SerializationError, StreamingException
endPoint - the end point to write toConnectionErrorSerializationErrorStreamingExceptionpublic StrictJsonWriter(HiveEndPoint endPoint, HiveConf conf, StreamingConnection conn) throws ConnectionError, SerializationError, StreamingException
endPoint - the end point to write toconf - a Hive conf object. Should be null if not using advanced Hive settings.conn - connection this Writer is to be used withConnectionErrorSerializationErrorStreamingExceptionpublic AbstractSerDe getSerde()
AbstractRecordWriterAbstractRecordWriter.encode(byte[]). This is public so that test
frameworks can use it.getSerde in class AbstractRecordWriterprotected HCatRecordObjectInspector getRecordObjectInspector()
getRecordObjectInspector in class AbstractRecordWriterprotected StructField[] getBucketStructFields()
getBucketStructFields in class AbstractRecordWriterprotected ObjectInspector[] getBucketObjectInspectors()
getBucketObjectInspectors in class AbstractRecordWriterpublic void write(long writeId,
byte[] record)
throws StreamingIOFailure,
SerializationError
RecordWriterwriteId - the write ID of the table mapping to Txn in which the write occursrecord - the record to be writtenStreamingIOFailureSerializationErrorpublic Object encode(byte[] utf8StrRecord) throws SerializationError
AbstractRecordWriterAbstractRecordWriter.getSerde(). This is public so that test frameworks can use it.encode in class AbstractRecordWriterutf8StrRecord - record to be deserializedSerializationErrorCopyright © 2019 The Apache Software Foundation. All Rights Reserved.