public class HDFSWriter extends AbstractHDFSWriter
filePath, lastUsedTime, needsRotation, offset, rotationPolicy
Constructor and Description |
---|
HDFSWriter(FileRotationPolicy policy,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.fs.FSDataOutputStream out,
RecordFormat format) |
Modifier and Type | Method and Description |
---|---|
protected void |
doClose() |
protected void |
doSync() |
protected void |
doWrite(Tuple tuple) |
close, getFilePath, needsRotation, sync, write
public HDFSWriter(FileRotationPolicy policy, org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FSDataOutputStream out, RecordFormat format)
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 © 2022 The Apache Software Foundation. All rights reserved.