public class AvroGenericRecordHDFSWriter extends AbstractHDFSWriter
filePath, lastUsedTime, needsRotation, offset, rotationPolicy
Constructor and Description |
---|
AvroGenericRecordHDFSWriter(FileRotationPolicy policy,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FSDataOutputStream stream,
org.apache.avro.Schema schema) |
Modifier and Type | Method and Description |
---|---|
protected void |
doClose() |
protected void |
doSync() |
protected void |
doWrite(Tuple tuple) |
close, getFilePath, needsRotation, sync, write
public AvroGenericRecordHDFSWriter(FileRotationPolicy policy, org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FSDataOutputStream stream, org.apache.avro.Schema schema) throws IOException
IOException
protected void doWrite(Tuple tuple) throws IOException
doWrite
in class AbstractHDFSWriter
IOException
protected void doSync() throws IOException
doSync
in class AbstractHDFSWriter
IOException
protected void doClose() throws IOException
doClose
in class AbstractHDFSWriter
IOException
Copyright © 2019 The Apache Software Foundation. All rights reserved.