public class HdfsFileWriter extends DataOutput implements Closeable
Modifier and Type | Field and Description |
---|---|
static String |
HDFS_SYNC_BLOCK |
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
HdfsFileWriter(org.apache.hadoop.fs.FileSystem fileSystem,
org.apache.hadoop.fs.Path path) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
long |
getPosition() |
long |
length() |
void |
seek(long pos) |
void |
writeByte(byte b) |
void |
writeBytes(byte[] b,
int offset,
int length) |
copyBytes, writeBytes, writeInt, writeLong, writeShort, writeString, writeStringSet, writeStringStringMap, writeVInt, writeVLong
public static org.slf4j.Logger LOG
public static final String HDFS_SYNC_BLOCK
public HdfsFileWriter(org.apache.hadoop.fs.FileSystem fileSystem, org.apache.hadoop.fs.Path path) throws IOException
IOException
public long length()
public void seek(long pos) throws IOException
IOException
public void flush() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public void writeByte(byte b) throws IOException
writeByte
in class DataOutput
IOException
public void writeBytes(byte[] b, int offset, int length) throws IOException
writeBytes
in class DataOutput
IOException
public long getPosition()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.