public class IndexDataWriter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Set<java.lang.String> |
allGroups |
private java.io.BufferedOutputStream |
bos |
private boolean |
descriptorWritten |
private java.io.DataOutputStream |
dos |
(package private) static int |
F_COMPRESSED |
(package private) static int |
F_INDEXED |
(package private) static int |
F_STORED |
(package private) static int |
F_TOKENIZED |
private java.util.zip.GZIPOutputStream |
gos |
private java.util.Set<java.lang.String> |
rootGroups |
(package private) static int |
VERSION |
Constructor and Description |
---|
IndexDataWriter(java.io.OutputStream os) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
write(IndexingContext context,
java.util.List<java.lang.Integer> docIndexes) |
boolean |
writeDocument(org.apache.lucene.document.Document document) |
void |
writeDocumentFields(java.util.List<org.apache.lucene.index.IndexableField> fields) |
int |
writeDocuments(org.apache.lucene.index.IndexReader r,
java.util.List<java.lang.Integer> docIndexes) |
void |
writeField(org.apache.lucene.index.IndexableField field) |
void |
writeGroupFields() |
void |
writeHeader(IndexingContext context) |
private static void |
writeUTF(java.lang.String str,
java.io.DataOutput out) |
static final int VERSION
static final int F_INDEXED
static final int F_TOKENIZED
static final int F_STORED
static final int F_COMPRESSED
private final java.io.DataOutputStream dos
private final java.util.zip.GZIPOutputStream gos
private final java.io.BufferedOutputStream bos
private final java.util.Set<java.lang.String> allGroups
private final java.util.Set<java.lang.String> rootGroups
private boolean descriptorWritten
public IndexDataWriter(java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public int write(IndexingContext context, java.util.List<java.lang.Integer> docIndexes) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public void writeHeader(IndexingContext context) throws java.io.IOException
java.io.IOException
public void writeGroupFields() throws java.io.IOException
java.io.IOException
public int writeDocuments(org.apache.lucene.index.IndexReader r, java.util.List<java.lang.Integer> docIndexes) throws java.io.IOException
java.io.IOException
public boolean writeDocument(org.apache.lucene.document.Document document) throws java.io.IOException
java.io.IOException
public void writeDocumentFields(java.util.List<org.apache.lucene.index.IndexableField> fields) throws java.io.IOException
java.io.IOException
public void writeField(org.apache.lucene.index.IndexableField field) throws java.io.IOException
java.io.IOException
private static void writeUTF(java.lang.String str, java.io.DataOutput out) throws java.io.IOException
java.io.IOException