public abstract class SpatialFieldBridge extends Object implements FieldBridge
Modifier and Type | Field and Description |
---|---|
protected String |
latitudeField |
protected String |
longitudeField |
Constructor and Description |
---|
SpatialFieldBridge() |
Modifier and Type | Method and Description |
---|---|
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.
|
protected String latitudeField
protected String longitudeField
public abstract void set(String name, Object value, org.apache.lucene.document.Document document, LuceneOptions luceneOptions)
FieldBridge
name
to document
following
the parameters luceneOptions
if the value
is not null
.
{code}
String fieldValue = convertToString(value);
luceneOptions.addFieldToDocument(name, fieldValue, document);
{code}set
in interface FieldBridge
name
- The field to add to the Lucene documentvalue
- The actual value to indexdocument
- The Lucene document into which we want to index the value.luceneOptions
- Contains the parameters used for adding value
to
the Lucene document.Copyright © 2006–2014 Hibernate. All rights reserved.