Indexer.
The IndexWriter operates on standard output streams, and also provides suitable buffering.
Thread-Safety
IndexWriter is not thread-safe and can not be shared between concurrent threads.Indexer, Index
| Modifier and Type | Field and Description |
|---|---|
| private final OutputStream |
| Access | Constructor and Description |
|---|---|
| public | IndexWriter(OutputStream
a stream to write an index to out)Constructs an IndexWriter using the specified stream |
| Modifier and Type | Method and Description |
|---|---|
| private IndexWriterImpl | |
| public int | |
| public int | |
| public int |
| out | back to summary |
|---|---|
| private final OutputStream out | |
| IndexWriter | back to summary |
|---|---|
| public IndexWriter(OutputStream out) Constructs an IndexWriter using the specified stream
| |
| getWriter | back to summary |
|---|---|
| private IndexWriterImpl getWriter(int version) | |
| write | back to summary |
|---|---|
| public int write(Index index) throws IOException Writes the specified index to the associated output stream. This may be called multiple times in order to write multiple indexes. The default version of index file is used.
| |
| write | back to summary |
|---|---|
| public int write(Index index, byte version) throws IOException
Deprecated
Writes the specified index to the associated output stream. This may be called multiple times in order to write multiple indexes.
| |
| write | back to summary |
|---|---|
| public int write(Index index, int version) throws IOException Writes the specified index to the associated output stream. This may be called multiple times in order to write multiple indexes.
| |