org.apache.solr.store.hdfs
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, writeVLongpublic 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
IOExceptionpublic long length()
public void seek(long pos)
throws IOException
IOExceptionpublic void flush()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface CloseableIOExceptionpublic void writeByte(byte b)
throws IOException
writeByte in class DataOutputIOExceptionpublic void writeBytes(byte[] b,
int offset,
int length)
throws IOException
writeBytes in class DataOutputIOExceptionpublic long getPosition()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.