Package org.apache.drill.exec.store.kudu
Class KuduRecordWriterImpl
java.lang.Object
org.apache.drill.exec.store.AbstractRecordWriter
org.apache.drill.exec.store.kudu.KuduRecordWriter
org.apache.drill.exec.store.kudu.KuduRecordWriterImpl
- All Implemented Interfaces:
RecordWriter
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.exec.store.kudu.KuduRecordWriter
KuduRecordWriter.BigIntKuduConverter, KuduRecordWriter.BitKuduConverter, KuduRecordWriter.Decimal28DenseKuduConverter, KuduRecordWriter.Decimal38DenseKuduConverter, KuduRecordWriter.Float4KuduConverter, KuduRecordWriter.Float8KuduConverter, KuduRecordWriter.IntKuduConverter, KuduRecordWriter.NullableBigIntKuduConverter, KuduRecordWriter.NullableBitKuduConverter, KuduRecordWriter.NullableDecimal28DenseKuduConverter, KuduRecordWriter.NullableDecimal38DenseKuduConverter, KuduRecordWriter.NullableFloat4KuduConverter, KuduRecordWriter.NullableFloat8KuduConverter, KuduRecordWriter.NullableIntKuduConverter, KuduRecordWriter.NullableTimeStampKuduConverter, KuduRecordWriter.NullableUInt8KuduConverter, KuduRecordWriter.NullableVar16CharKuduConverter, KuduRecordWriter.NullableVarBinaryKuduConverter, KuduRecordWriter.NullableVarCharKuduConverter, KuduRecordWriter.NullableVarDecimalKuduConverter, KuduRecordWriter.TimeStampKuduConverter, KuduRecordWriter.UInt8KuduConverter, KuduRecordWriter.Var16CharKuduConverter, KuduRecordWriter.VarBinaryKuduConverter, KuduRecordWriter.VarCharKuduConverter, KuduRecordWriter.VarDecimalKuduConverter -
Constructor Summary
ConstructorsConstructorDescriptionKuduRecordWriterImpl(OperatorContext context, org.apache.kudu.client.KuduClient client, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()voidcleanup()voidCalled after adding all fields in a particular record are added using add{TypeHolder}(fieldId, TypeHolder) methods.voidInitialize the writer.voidCalled before starting writing fields in a record.voidupdateSchema(VectorAccessible batch) Update the schema in RecordWriter.Methods inherited from class org.apache.drill.exec.store.kudu.KuduRecordWriter
getNewBigIntConverter, getNewBitConverter, getNewDecimal28DenseConverter, getNewDecimal38DenseConverter, getNewFloat4Converter, getNewFloat8Converter, getNewIntConverter, getNewNullableBigIntConverter, getNewNullableBitConverter, getNewNullableDecimal28DenseConverter, getNewNullableDecimal38DenseConverter, getNewNullableFloat4Converter, getNewNullableFloat8Converter, getNewNullableIntConverter, getNewNullableTimeStampConverter, getNewNullableUInt8Converter, getNewNullableVar16CharConverter, getNewNullableVarBinaryConverter, getNewNullableVarCharConverter, getNewNullableVarDecimalConverter, getNewTimeStampConverter, getNewUInt8Converter, getNewVar16CharConverter, getNewVarBinaryConverter, getNewVarCharConverter, getNewVarDecimalConverter, setUpMethods inherited from class org.apache.drill.exec.store.AbstractRecordWriter
checkForNewPartition, getNewDateConverter, getNewDecimal18Converter, getNewDecimal28SparseConverter, getNewDecimal38SparseConverter, getNewDecimal9Converter, getNewDictConverter, getNewIntervalConverter, getNewIntervalDayConverter, getNewIntervalYearConverter, getNewMapConverter, getNewNullableDateConverter, getNewNullableDecimal18Converter, getNewNullableDecimal28SparseConverter, getNewNullableDecimal38SparseConverter, getNewNullableDecimal9Converter, getNewNullableIntervalConverter, getNewNullableIntervalDayConverter, getNewNullableIntervalYearConverter, getNewNullableSmallIntConverter, getNewNullableTimeConverter, getNewNullableTinyIntConverter, getNewNullableUInt1Converter, getNewNullableUInt2Converter, getNewNullableUInt4Converter, getNewRepeatedBigIntConverter, getNewRepeatedBitConverter, getNewRepeatedDateConverter, getNewRepeatedDecimal18Converter, getNewRepeatedDecimal28DenseConverter, getNewRepeatedDecimal28SparseConverter, getNewRepeatedDecimal38DenseConverter, getNewRepeatedDecimal38SparseConverter, getNewRepeatedDecimal9Converter, getNewRepeatedDictConverter, getNewRepeatedFloat4Converter, getNewRepeatedFloat8Converter, getNewRepeatedIntConverter, getNewRepeatedIntervalConverter, getNewRepeatedIntervalDayConverter, getNewRepeatedIntervalYearConverter, getNewRepeatedListConverter, getNewRepeatedMapConverter, getNewRepeatedSmallIntConverter, getNewRepeatedTimeConverter, getNewRepeatedTimeStampConverter, getNewRepeatedTinyIntConverter, getNewRepeatedUInt1Converter, getNewRepeatedUInt2Converter, getNewRepeatedUInt4Converter, getNewRepeatedUInt8Converter, getNewRepeatedVar16CharConverter, getNewRepeatedVarBinaryConverter, getNewRepeatedVarCharConverter, getNewRepeatedVarDecimalConverter, getNewSmallIntConverter, getNewTimeConverter, getNewTinyIntConverter, getNewUInt1Converter, getNewUInt2Converter, getNewUInt4Converter, getNewUnionConverter, newPartition, postProcessing, setPartitionVector, supportsFieldMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.drill.exec.store.RecordWriter
checkForNewPartition, getNewDateConverter, getNewDecimal18Converter, getNewDecimal28SparseConverter, getNewDecimal38SparseConverter, getNewDecimal9Converter, getNewDictConverter, getNewIntervalConverter, getNewIntervalDayConverter, getNewIntervalYearConverter, getNewMapConverter, getNewNullableDateConverter, getNewNullableDecimal18Converter, getNewNullableDecimal28SparseConverter, getNewNullableDecimal38SparseConverter, getNewNullableDecimal9Converter, getNewNullableIntervalConverter, getNewNullableIntervalDayConverter, getNewNullableIntervalYearConverter, getNewNullableSmallIntConverter, getNewNullableTimeConverter, getNewNullableTinyIntConverter, getNewNullableUInt1Converter, getNewNullableUInt2Converter, getNewNullableUInt4Converter, getNewRepeatedBigIntConverter, getNewRepeatedBitConverter, getNewRepeatedDateConverter, getNewRepeatedDecimal18Converter, getNewRepeatedDecimal28DenseConverter, getNewRepeatedDecimal28SparseConverter, getNewRepeatedDecimal38DenseConverter, getNewRepeatedDecimal38SparseConverter, getNewRepeatedDecimal9Converter, getNewRepeatedDictConverter, getNewRepeatedFloat4Converter, getNewRepeatedFloat8Converter, getNewRepeatedIntConverter, getNewRepeatedIntervalConverter, getNewRepeatedIntervalDayConverter, getNewRepeatedIntervalYearConverter, getNewRepeatedListConverter, getNewRepeatedMapConverter, getNewRepeatedSmallIntConverter, getNewRepeatedTimeConverter, getNewRepeatedTimeStampConverter, getNewRepeatedTinyIntConverter, getNewRepeatedUInt1Converter, getNewRepeatedUInt2Converter, getNewRepeatedUInt4Converter, getNewRepeatedUInt8Converter, getNewRepeatedVar16CharConverter, getNewRepeatedVarBinaryConverter, getNewRepeatedVarCharConverter, getNewRepeatedVarDecimalConverter, getNewSmallIntConverter, getNewTimeConverter, getNewTinyIntConverter, getNewUInt1Converter, getNewUInt2Converter, getNewUInt4Converter, getNewUnionConverter, postProcessing, supportsField
-
Constructor Details
-
KuduRecordWriterImpl
public KuduRecordWriterImpl(OperatorContext context, org.apache.kudu.client.KuduClient client, String name)
-
-
Method Details
-
init
Description copied from interface:RecordWriterInitialize the writer.- Parameters:
writerOptions- Contains key, value pair of settings.- Throws:
IOException
-
updateSchema
Description copied from interface:RecordWriterUpdate the schema in RecordWriter. Called at least once before starting writing the records.- Parameters:
batch-- Throws:
IOException
-
startRecord
Description copied from interface:RecordWriterCalled before starting writing fields in a record.- Throws:
IOException
-
endRecord
Description copied from interface:RecordWriterCalled after adding all fields in a particular record are added using add{TypeHolder}(fieldId, TypeHolder) methods.- Throws:
IOException
-
abort
- Throws:
IOException
-
cleanup
- Throws:
IOException
-