it.unimi.di.mg4j.tool
Class PrecomputeIndex.ReplacingDocumentIteratorBuilderVisitor
java.lang.Object
it.unimi.di.mg4j.query.nodes.AbstractQueryBuilderVisitor<DocumentIterator>
it.unimi.di.mg4j.search.DocumentIteratorBuilderVisitor
it.unimi.di.mg4j.tool.PrecomputeIndex.ReplacingDocumentIteratorBuilderVisitor
- All Implemented Interfaces:
- QueryBuilderVisitor<DocumentIterator>, FlyweightPrototype<QueryBuilderVisitor<DocumentIterator>>, Closeable
- Enclosing class:
- PrecomputeIndex
protected static final class PrecomputeIndex.ReplacingDocumentIteratorBuilderVisitor
- extends DocumentIteratorBuilderVisitor
- implements Closeable
Field Summary |
protected int |
currentTerm
The current term of this builder visitor. |
Methods inherited from class it.unimi.di.mg4j.search.DocumentIteratorBuilderVisitor |
copy, newArray, prepare, pushWeight, visit, visit, visit, visit, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost, visitPost, visitPre, visitPre, visitPre, visitPre, visitPre, visitPre, visitPre, visitPre, visitPre, visitPre, visitPre, visitPre, weight |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
currentTerm
protected int currentTerm
- The current term of this builder visitor.
PrecomputeIndex.ReplacingDocumentIteratorBuilderVisitor
public PrecomputeIndex.ReplacingDocumentIteratorBuilderVisitor(MutableString marker,
Object2ReferenceMap<String,Index> indexMap,
Index defaultIndex,
int limit,
int bufferSize)
visit
public DocumentIterator visit(Term node)
throws QueryBuilderVisitorException
- Description copied from interface:
QueryBuilderVisitor
- Visits a
Term
.
- Specified by:
visit
in interface QueryBuilderVisitor<DocumentIterator>
- Overrides:
visit
in class DocumentIteratorBuilderVisitor
- Parameters:
node
- the leaf to be visited.
- Returns:
- true if the visit should continue.
- Throws:
QueryBuilderVisitorException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Throws:
IOException