java.lang.Object | |||
↳ | org.apache.lucene.store.IndexOutput | ||
↳ | org.apache.lucene.store.BufferedIndexOutput | ||
↳ | org.apache.lucene.store.SimpleFSDirectory.SimpleFSIndexOutput |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Closes this stream to further operations.
| |||||||||||
output methods:
| |||||||||||
The number of bytes in the file.
| |||||||||||
Random-access methods
| |||||||||||
Set the file length.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.store.BufferedIndexOutput
| |||||||||||
From class
org.apache.lucene.store.IndexOutput
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.io.Closeable
|
output methods:
b | the bytes to write |
---|---|
offset | the offset in the byte array |
size | the number of bytes to write |
IOException |
---|
Set the file length. By default, this method does nothing (it's optional for a Directory to implement it). But, certain Directory implementations (for example @see FSDirectory) can use this to inform the underlying IO system to pre-allocate the file to the specified size. If the length is longer than the current file length, the bytes added to the file are undefined. Otherwise the file is truncated.
length | file length |
---|
IOException |
---|