org.hibernate.search.spatial
Class SpatialFieldBridgeByQuadTree
java.lang.Object
org.hibernate.search.spatial.SpatialFieldBridge
org.hibernate.search.spatial.SpatialFieldBridgeByQuadTree
- All Implemented Interfaces:
- FieldBridge, ParameterizedBridge
public class SpatialFieldBridgeByQuadTree
- extends SpatialFieldBridge
- implements ParameterizedBridge
Hibernate Search field bridge, binding a Coordinates to Quad Tree field in the index
- Author:
- Nicolas Helleringer
Method Summary |
void |
set(String name,
Object value,
org.apache.lucene.document.Document document,
LuceneOptions luceneOptions)
Actual overridden method that does the indexing |
void |
setParameterValues(Map parameters)
Override method for default min and max quad tree level |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_TOP_QUAD_TREE_LEVEL
public static final int DEFAULT_TOP_QUAD_TREE_LEVEL
- See Also:
- Constant Field Values
DEFAULT_BOTTOM_QUAD_TREE_LEVEL
public static final int DEFAULT_BOTTOM_QUAD_TREE_LEVEL
- See Also:
- Constant Field Values
SpatialFieldBridgeByQuadTree
public SpatialFieldBridgeByQuadTree()
SpatialFieldBridgeByQuadTree
public SpatialFieldBridgeByQuadTree(int topQuadTreeLevel,
int bottomQuadTreeLevel)
SpatialFieldBridgeByQuadTree
public SpatialFieldBridgeByQuadTree(int topQuadTreeLevel,
int bottomQuadTreeLevel,
String latitudeField,
String longitudeField)
set
public void set(String name,
Object value,
org.apache.lucene.document.Document document,
LuceneOptions luceneOptions)
- Actual overridden method that does the indexing
- Specified by:
set
in interface FieldBridge
- Specified by:
set
in class SpatialFieldBridge
- Parameters:
name
- of the fieldvalue
- of the fielddocument
- document being indexedluceneOptions
- current indexing options and accessors
setParameterValues
public void setParameterValues(Map parameters)
- Override method for default min and max quad tree level
- Specified by:
setParameterValues
in interface ParameterizedBridge
- Parameters:
parameters
- Map containing the topQuadTreeLevel and bottomQuadTreeLevel values
Copyright © 2006-2013 Red Hat Middleware, LLC. All Rights Reserved