Beispiel #1
0
 protected internal override Document FetchNextOrNull()
 {
     if (EnsureValidDisi())
     {
         try
         {
             int doc = CurrentIdIterator.nextDoc();
             if (doc == DocIdSetIterator.NO_MORE_DOCS)
             {
                 CurrentIdIterator = null;
                 CurrentScorer     = null;
                 CurrentReader     = null;
                 return(FetchNextOrNull());
             }
             return(CurrentReader.document(doc));
         }
         catch (IOException e)
         {
             throw new Exception(e);
         }
     }
     else
     {
         return(null);
     }
 }
Beispiel #2
0
 internal void UpdateCurrentDocument(int docID, LeafReader reader)
 {
     try
     {
         CurrentDoc = reader.document(docID);
     }
     catch (IOException e)
     {
         throw new Exception(e);
     }
 }
Beispiel #3
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public void collect(int doc) throws java.io.IOException
        public override void Collect(int doc)
        {
            _nodeIds.Add(LuceneDocumentStructure.GetNodeId(_reader.document(doc)));
        }