AbstractRecordWriter@Deprecated public abstract class AbstractRecordWriter extends Object implements RecordWriter
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRecordWriter(HiveEndPoint endPoint,
HiveConf conf)
Deprecated.
As of release 1.3/2.1. Replaced by
AbstractRecordWriter(HiveEndPoint, HiveConf, StreamingConnection) |
protected |
AbstractRecordWriter(HiveEndPoint endPoint2,
HiveConf conf,
StreamingConnection conn)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Deprecated.
Clear bufferred writes.
|
void |
closeBatch()
Deprecated.
Close the RecordUpdater.
|
abstract Object |
encode(byte[] record)
Deprecated.
Encode a record as an Object that Hive can read with the ObjectInspector associated with the
serde returned by
getSerde(). |
void |
flush()
Deprecated.
Flush records from buffer.
|
protected int |
getBucket(Object row)
Deprecated.
|
protected abstract ObjectInspector[] |
getBucketObjectInspectors()
Deprecated.
|
protected abstract StructField[] |
getBucketStructFields()
Deprecated.
|
protected static ObjectInspector[] |
getObjectInspectorsForBucketedCols(List<Integer> bucketIds,
StructObjectInspector recordObjInspector)
Deprecated.
|
protected abstract StructObjectInspector |
getRecordObjectInspector()
Deprecated.
|
abstract AbstractSerDe |
getSerde()
Deprecated.
Get the SerDe for the Objects created by
encode(byte[]). |
void |
newBatch(Long minWriteId,
Long maxWriteID)
Deprecated.
Creates a new record updater for the new batch
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteprotected AbstractRecordWriter(HiveEndPoint endPoint, HiveConf conf) throws ConnectionError, StreamingException
AbstractRecordWriter(HiveEndPoint, HiveConf, StreamingConnection)ConnectionErrorStreamingExceptionprotected AbstractRecordWriter(HiveEndPoint endPoint2, HiveConf conf, StreamingConnection conn) throws StreamingException
StreamingExceptionpublic abstract AbstractSerDe getSerde() throws SerializationError
encode(byte[]). This is public so that test
frameworks can use it.SerializationErrorpublic abstract Object encode(byte[] record) throws SerializationError
getSerde(). This is public so that test frameworks can use it.record - record to be deserializedSerializationErrorprotected abstract ObjectInspector[] getBucketObjectInspectors()
protected abstract StructObjectInspector getRecordObjectInspector()
protected abstract StructField[] getBucketStructFields()
protected int getBucket(Object row) throws SerializationError
SerializationErrorpublic void flush()
throws StreamingIOFailure
RecordWriterflush in interface RecordWriterStreamingIOFailurepublic void clear()
throws StreamingIOFailure
RecordWriterclear in interface RecordWriterStreamingIOFailurepublic void newBatch(Long minWriteId, Long maxWriteID) throws StreamingIOFailure, SerializationError
newBatch in interface RecordWriterminWriteId - smallest writeid in the batchmaxWriteID - largest writeid in the batchStreamingIOFailure - if failed to create record updaterSerializationErrorpublic void closeBatch()
throws StreamingIOFailure
RecordWritercloseBatch in interface RecordWriterStreamingIOFailureprotected static ObjectInspector[] getObjectInspectorsForBucketedCols(List<Integer> bucketIds, StructObjectInspector recordObjInspector) throws SerializationError
SerializationErrorCopyright © 2019 The Apache Software Foundation. All Rights Reserved.