public abstract class AbstractParquetSerializer extends Object implements ParquetSerializer
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractParquetSerializer(org.apache.avro.Schema schema) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCreate() |
void |
afterReopen() |
void |
beforeClose() |
void |
close() |
void |
configure(org.apache.flume.Context context) |
void |
flush() |
org.apache.avro.Schema |
getSchema() |
org.apache.parquet.hadoop.ParquetWriter<org.apache.avro.generic.GenericData.Record> |
getWriter() |
void |
initialize(org.apache.parquet.hadoop.ParquetWriter<org.apache.avro.generic.GenericData.Record> writer) |
boolean |
supportsReopen() |
protected void |
writeRecord(org.apache.avro.generic.GenericData.Record record) |
protected AbstractParquetSerializer(org.apache.avro.Schema schema)
public void configure(org.apache.flume.Context context)
configure in interface org.apache.flume.conf.Configurablepublic void afterCreate()
throws IOException
afterCreate in interface org.apache.flume.serialization.EventSerializerIOExceptionpublic void afterReopen()
throws IOException
afterReopen in interface org.apache.flume.serialization.EventSerializerIOExceptionprotected void writeRecord(org.apache.avro.generic.GenericData.Record record)
throws IOException
IOExceptionpublic void flush()
throws IOException
flush in interface org.apache.flume.serialization.EventSerializerIOExceptionpublic void beforeClose()
throws IOException
beforeClose in interface org.apache.flume.serialization.EventSerializerIOExceptionpublic boolean supportsReopen()
supportsReopen in interface org.apache.flume.serialization.EventSerializerpublic void initialize(org.apache.parquet.hadoop.ParquetWriter<org.apache.avro.generic.GenericData.Record> writer)
throws IOException
initialize in interface ParquetSerializerIOExceptionpublic org.apache.parquet.hadoop.ParquetWriter<org.apache.avro.generic.GenericData.Record> getWriter()
getWriter in interface ParquetSerializerpublic void close()
throws IOException
close in interface ParquetSerializerIOExceptionpublic org.apache.avro.Schema getSchema()
getSchema in interface ParquetSerializerCopyright © 2017. All rights reserved.