org.apache.lucene.spatial.prefix
Class TermQueryPrefixTreeStrategy

java.lang.Object
  extended by org.apache.lucene.spatial.SpatialStrategy
      extended by org.apache.lucene.spatial.prefix.PrefixTreeStrategy
          extended by org.apache.lucene.spatial.prefix.TermQueryPrefixTreeStrategy

public class TermQueryPrefixTreeStrategy
extends PrefixTreeStrategy

A basic implementation using a large TermsFilter of all the nodes from SpatialPrefixTree.getNodes(com.spatial4j.core.shape.Shape, int, boolean).

WARNING: This API is experimental and might change in incompatible ways in the next release.

Field Summary
 
Fields inherited from class org.apache.lucene.spatial.prefix.PrefixTreeStrategy
defaultFieldValuesArrayLen, distErrPct, FIELD_TYPE, grid
 
Fields inherited from class org.apache.lucene.spatial.SpatialStrategy
ctx, ignoreIncompatibleGeometry
 
Constructor Summary
TermQueryPrefixTreeStrategy(SpatialPrefixTree grid, String fieldName)
           
 
Method Summary
 Filter makeFilter(SpatialArgs args)
          Make a Filter
 
Methods inherited from class org.apache.lucene.spatial.prefix.PrefixTreeStrategy
createIndexableFields, getGrid, makeValueSource, makeValueSource, setDefaultFieldValuesArrayLen, setDistErrPct
 
Methods inherited from class org.apache.lucene.spatial.SpatialStrategy
getFieldName, getSpatialContext, isIgnoreIncompatibleGeometry, makeQuery, setIgnoreIncompatibleGeometry, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TermQueryPrefixTreeStrategy

public TermQueryPrefixTreeStrategy(SpatialPrefixTree grid,
                                   String fieldName)
Method Detail

makeFilter

public Filter makeFilter(SpatialArgs args)
Description copied from class: SpatialStrategy
Make a Filter

Specified by:
makeFilter in class SpatialStrategy


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.