it.unimi.di.mg4j.tool
Class PrecomputeIndex.ReplacingDocumentIteratorBuilderVisitor

java.lang.Object
  extended by it.unimi.di.mg4j.query.nodes.AbstractQueryBuilderVisitor<DocumentIterator>
      extended by it.unimi.di.mg4j.search.DocumentIteratorBuilderVisitor
          extended by 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.
 
Fields inherited from class it.unimi.di.mg4j.search.DocumentIteratorBuilderVisitor
curr, defaultIndex, index2Parser, indexMap, limit, numberOfDocuments, weight, weights
 
Constructor Summary
PrecomputeIndex.ReplacingDocumentIteratorBuilderVisitor(MutableString marker, Object2ReferenceMap<String,Index> indexMap, Index defaultIndex, int limit, int bufferSize)
           
 
Method Summary
 void close()
           
 DocumentIterator visit(Term node)
          Visits a Term.
 
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
 

Field Detail

currentTerm

protected int currentTerm
The current term of this builder visitor.

Constructor Detail

PrecomputeIndex.ReplacingDocumentIteratorBuilderVisitor

public PrecomputeIndex.ReplacingDocumentIteratorBuilderVisitor(MutableString marker,
                                                               Object2ReferenceMap<String,Index> indexMap,
                                                               Index defaultIndex,
                                                               int limit,
                                                               int bufferSize)
Method Detail

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