public class SimpleTextTermVectorsWriter extends TermVectorsWriter
FOR RECREATIONAL USE ONLY
Constructor and Description |
---|
SimpleTextTermVectorsWriter(Directory directory,
String segment,
IOContext context) |
Modifier and Type | Method and Description |
---|---|
void |
abort() |
void |
addPosition(int position,
int startOffset,
int endOffset,
BytesRef payload) |
void |
close() |
void |
finish(FieldInfos fis,
int numDocs) |
Comparator<BytesRef> |
getComparator() |
void |
startDocument(int numVectorFields) |
void |
startField(FieldInfo info,
int numTerms,
boolean positions,
boolean offsets,
boolean payloads) |
void |
startTerm(BytesRef term,
int freq) |
addAllDocVectors, addProx, finishDocument, finishField, finishTerm, merge
public SimpleTextTermVectorsWriter(Directory directory, String segment, IOContext context) throws IOException
IOException
public void startDocument(int numVectorFields) throws IOException
startDocument
in class TermVectorsWriter
IOException
public void startField(FieldInfo info, int numTerms, boolean positions, boolean offsets, boolean payloads) throws IOException
startField
in class TermVectorsWriter
IOException
public void startTerm(BytesRef term, int freq) throws IOException
startTerm
in class TermVectorsWriter
IOException
public void addPosition(int position, int startOffset, int endOffset, BytesRef payload) throws IOException
addPosition
in class TermVectorsWriter
IOException
public void abort()
abort
in class TermVectorsWriter
public void finish(FieldInfos fis, int numDocs) throws IOException
finish
in class TermVectorsWriter
IOException
public void close() throws IOException
close
in interface Closeable
close
in class TermVectorsWriter
IOException
public Comparator<BytesRef> getComparator() throws IOException
getComparator
in class TermVectorsWriter
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.