org.hibernate.search.spatial
Class SpatialFieldBridge

java.lang.Object
  extended by org.hibernate.search.spatial.SpatialFieldBridge
All Implemented Interfaces:
FieldBridge
Direct Known Subclasses:
SpatialFieldBridgeByQuadTree, SpatialFieldBridgeByRange

public abstract class SpatialFieldBridge
extends Object
implements FieldBridge


Field Summary
protected  String latitudeField
           
protected  String longitudeField
           
 
Constructor Summary
SpatialFieldBridge()
           
 
Method Summary
static String capitalize(String name)
           
protected  Double getLatitude(Object value)
           
protected  Double getLongitude(Object value)
           
abstract  void set(String name, Object value, org.apache.lucene.document.Document document, LuceneOptions luceneOptions)
          Manipulate the document to index the given value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

latitudeField

protected String latitudeField

longitudeField

protected String longitudeField
Constructor Detail

SpatialFieldBridge

public SpatialFieldBridge()
Method Detail

set

public abstract void set(String name,
                         Object value,
                         org.apache.lucene.document.Document document,
                         LuceneOptions luceneOptions)
Description copied from interface: FieldBridge
Manipulate the document to index the given value.

A common implementation is to add a Field with the given name to document following the parameters luceneOptions if the value is not null. {code} String fieldValue = convertToString(value); luceneOptions.addFieldToDocument(name, fieldValue, document); {code}

Specified by:
set in interface FieldBridge
Parameters:
name - The field to add to the Lucene document
value - The actual value to index
document - The Lucene document into which we want to index the value.
luceneOptions - Contains the parameters used for adding value to the Lucene document.

getLatitude

protected Double getLatitude(Object value)

getLongitude

protected Double getLongitude(Object value)

capitalize

public static String capitalize(String name)


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