protected static class FSDirectory.FSIndexOutput extends BufferedIndexOutput
Constructor and Description |
---|
FSIndexOutput(FSDirectory parent,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this stream to further operations.
|
void |
flushBuffer(byte[] b,
int offset,
int size)
output methods:
|
long |
length()
The number of bytes in the file.
|
void |
seek(long pos)
Random-access methods
|
void |
setLength(long length)
Set the file length.
|
flush, getFilePointer, writeByte, writeBytes
copyBytes, writeBytes, writeChars, writeChars, writeInt, writeLong, writeShort, writeString, writeStringStringMap, writeVInt, writeVLong
public FSIndexOutput(FSDirectory parent, java.lang.String name) throws java.io.IOException
java.io.IOException
public void flushBuffer(byte[] b, int offset, int size) throws java.io.IOException
flushBuffer
in class BufferedIndexOutput
b
- the bytes to writeoffset
- the offset in the byte arraysize
- the number of bytes to writejava.io.IOException
public void close() throws java.io.IOException
BufferedIndexOutput
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class BufferedIndexOutput
java.io.IOException
public void seek(long pos) throws java.io.IOException
seek
in class BufferedIndexOutput
java.io.IOException
BufferedIndexOutput.getFilePointer()
public long length() throws java.io.IOException
BufferedIndexOutput
length
in class BufferedIndexOutput
java.io.IOException
public void setLength(long length) throws java.io.IOException
IndexOutput
setLength
in class IndexOutput
length
- file lengthjava.io.IOException
Copyright © 2000-2024 Apache Software Foundation. All Rights Reserved.