HdfsTextTableWriter(HdfsTableSink *parent, RuntimeState *state, OutputPartition *output, const HdfsPartitionDescriptor *partition, const HdfsTableDescriptor *table_desc, const std::vector< ExprContext * > &output_expr_ctxs)
virtual Status Init()
Do initialization of writer.
virtual Status InitNewFile()
Called when a new file is started.
virtual uint64_t default_block_size() const
int64_t flush_size_
Size in rowbatch_stringstream_ before we call flush.
virtual std::string file_extension() const
Returns the file extension for this writer.
Status AppendRowBatch(RowBatch *current_row, const std::vector< int32_t > &row_group_indices, bool *new_file)
void PrintEscaped(const StringValue *str_val)
boost::scoped_ptr< MemPool > mem_pool_
Memory pool to use with compressor_.
virtual Status Finalize()
std::stringstream rowbatch_stringstream_
boost::scoped_ptr< Codec > compressor_
Compressor if compression is enabled.
char field_delim_
Character delimiting fields (to become slots).
char tuple_delim_
Character delimiting tuples.
virtual void Close()
Called once when this writer should cleanup any resources.
THdfsCompression::type codec_
Compression codec.