org.hibernate.search.spatial.impl
Class QuadTreeFilter

java.lang.Object
  extended by org.apache.lucene.search.Filter
      extended by org.hibernate.search.spatial.impl.QuadTreeFilter
All Implemented Interfaces:
Serializable

public final class QuadTreeFilter
extends org.apache.lucene.search.Filter

Lucene Filter for filtering documents which have been indexed with Hibernate Search Spatial SpatialFieldBridge Use denormalized Quad Tree Cell Ids to return a sub set of documents near the center

Author:
Nicolas Helleringer
See Also:
SpatialFieldBridgeByQuadTree, Coordinates, Serialized Form

Constructor Summary
QuadTreeFilter(List<String> quadTreeCellsIds, String fieldName)
           
 
Method Summary
 org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.IndexReader reader)
          Returns Doc Ids by searching the index for document having the correct Qud Tree Cell Id at given qud tree level
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QuadTreeFilter

public QuadTreeFilter(List<String> quadTreeCellsIds,
                      String fieldName)
Method Detail

getDocIdSet

public org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.IndexReader reader)
                                              throws IOException
Returns Doc Ids by searching the index for document having the correct Qud Tree Cell Id at given qud tree level

Specified by:
getDocIdSet in class org.apache.lucene.search.Filter
Parameters:
reader - reader to the index
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2013 Red Hat Middleware, LLC. All Rights Reserved