org.apache.blur.manager.results
Class BlurResultIterableSearcher

java.lang.Object
  extended by org.apache.blur.manager.results.BlurResultIterableSearcher
All Implemented Interfaces:
Closeable, BlurResultIterable, BlurIterable<BlurResult,BlurException>

public class BlurResultIterableSearcher
extends Object
implements BlurResultIterable


Constructor Summary
BlurResultIterableSearcher(AtomicBoolean running, org.apache.lucene.search.Query query, String table, String shard, IndexSearcherClosable searcher, Selector selector, boolean closeSearcher, boolean runSlow, int fetchCount, int maxHeapPerRowFetch, TableContext context, org.apache.lucene.search.Sort sort, DeepPagingCache deepPagingCache)
           
 
Method Summary
 void close()
           
 Map<String,Long> getShardInfo()
           
 long getTotalResults()
           
 BlurIterator<BlurResult,BlurException> iterator()
           
 void skipTo(long skipTo)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlurResultIterableSearcher

public BlurResultIterableSearcher(AtomicBoolean running,
                                  org.apache.lucene.search.Query query,
                                  String table,
                                  String shard,
                                  IndexSearcherClosable searcher,
                                  Selector selector,
                                  boolean closeSearcher,
                                  boolean runSlow,
                                  int fetchCount,
                                  int maxHeapPerRowFetch,
                                  TableContext context,
                                  org.apache.lucene.search.Sort sort,
                                  DeepPagingCache deepPagingCache)
                           throws BlurException
Throws:
BlurException
Method Detail

getShardInfo

public Map<String,Long> getShardInfo()
Specified by:
getShardInfo in interface BlurResultIterable

getTotalResults

public long getTotalResults()
Specified by:
getTotalResults in interface BlurResultIterable

skipTo

public void skipTo(long skipTo)
Specified by:
skipTo in interface BlurResultIterable

iterator

public BlurIterator<BlurResult,BlurException> iterator()
                                                throws BlurException
Specified by:
iterator in interface BlurIterable<BlurResult,BlurException>
Throws:
BlurException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.