org.elasticsearch.search.scan
Class ScanContext

java.lang.Object
  extended by org.elasticsearch.search.scan.ScanContext

public class ScanContext
extends Object

The scan context allows to optimize readers we already processed during scanning. We do that by keeping track of the count per reader, and if we are done with it, we no longer process it by using a filter that returns null docIdSet for this reader.


Nested Class Summary
static class ScanContext.ScanFilter
           
 
Constructor Summary
ScanContext()
           
 
Method Summary
 void clear()
           
 org.apache.lucene.search.TopDocs execute(SearchContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScanContext

public ScanContext()
Method Detail

clear

public void clear()

execute

public org.apache.lucene.search.TopDocs execute(SearchContext context)
                                         throws IOException
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.