org.apache.lucene.spatial.vector
Class TwoDoublesStrategy

java.lang.Object
  extended by org.apache.lucene.spatial.SpatialStrategy<TwoDoublesFieldInfo>
      extended by org.apache.lucene.spatial.vector.TwoDoublesStrategy

public class TwoDoublesStrategy
extends SpatialStrategy<TwoDoublesFieldInfo>


Field Summary
 
Fields inherited from class org.apache.lucene.spatial.SpatialStrategy
ctx, ignoreIncompatibleGeometry
 
Constructor Summary
TwoDoublesStrategy(com.spatial4j.core.context.SpatialContext ctx, NumericFieldInfo finfo, FieldCache.DoubleParser parser)
           
 
Method Summary
 IndexableField createField(TwoDoublesFieldInfo indexInfo, com.spatial4j.core.shape.Shape shape, boolean index, boolean store)
          Corresponds with Solr's FieldType.createField().
 IndexableField[] createFields(TwoDoublesFieldInfo fieldInfo, com.spatial4j.core.shape.Shape shape, boolean index, boolean store)
          Corresponds with Solr's FieldType.createFields().
 boolean isPolyField()
          Corresponds with Solr's FieldType.isPolyField().
 Filter makeFilter(com.spatial4j.core.query.SpatialArgs args, TwoDoublesFieldInfo fieldInfo)
          Make a Filter
 Query makeQuery(com.spatial4j.core.query.SpatialArgs args, TwoDoublesFieldInfo fieldInfo)
          Make a query
 ValueSource makeValueSource(com.spatial4j.core.query.SpatialArgs args, TwoDoublesFieldInfo fieldInfo)
           
 
Methods inherited from class org.apache.lucene.spatial.SpatialStrategy
getSpatialContext, isIgnoreIncompatibleGeometry, setIgnoreIncompatibleGeometry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwoDoublesStrategy

public TwoDoublesStrategy(com.spatial4j.core.context.SpatialContext ctx,
                          NumericFieldInfo finfo,
                          FieldCache.DoubleParser parser)
Method Detail

isPolyField

public boolean isPolyField()
Description copied from class: SpatialStrategy
Corresponds with Solr's FieldType.isPolyField().

Overrides:
isPolyField in class SpatialStrategy<TwoDoublesFieldInfo>

createFields

public IndexableField[] createFields(TwoDoublesFieldInfo fieldInfo,
                                     com.spatial4j.core.shape.Shape shape,
                                     boolean index,
                                     boolean store)
Description copied from class: SpatialStrategy
Corresponds with Solr's FieldType.createFields().

Overrides:
createFields in class SpatialStrategy<TwoDoublesFieldInfo>

createField

public IndexableField createField(TwoDoublesFieldInfo indexInfo,
                                  com.spatial4j.core.shape.Shape shape,
                                  boolean index,
                                  boolean store)
Description copied from class: SpatialStrategy
Corresponds with Solr's FieldType.createField(). This may return a null field if it does not want to make anything. This is reasonable behavior if 'ignoreIncompatibleGeometry=true' and the geometry is incompatible

Specified by:
createField in class SpatialStrategy<TwoDoublesFieldInfo>

makeValueSource

public ValueSource makeValueSource(com.spatial4j.core.query.SpatialArgs args,
                                   TwoDoublesFieldInfo fieldInfo)
Specified by:
makeValueSource in class SpatialStrategy<TwoDoublesFieldInfo>

makeFilter

public Filter makeFilter(com.spatial4j.core.query.SpatialArgs args,
                         TwoDoublesFieldInfo fieldInfo)
Description copied from class: SpatialStrategy
Make a Filter

Specified by:
makeFilter in class SpatialStrategy<TwoDoublesFieldInfo>

makeQuery

public Query makeQuery(com.spatial4j.core.query.SpatialArgs args,
                       TwoDoublesFieldInfo fieldInfo)
Description copied from class: SpatialStrategy
Make a query

Specified by:
makeQuery in class SpatialStrategy<TwoDoublesFieldInfo>


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