public abstract class NumericFieldBridge extends Object implements TwoWayFieldBridge
Constructor and Description |
---|
NumericFieldBridge() |
Modifier and Type | Method and Description |
---|---|
String |
objectToString(Object object)
Convert the object representation to a string.
|
void |
set(String name,
Object value,
org.apache.lucene.document.Document document,
LuceneOptions luceneOptions)
Manipulate the document to index the given value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get
public 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.public String objectToString(Object object)
TwoWayFieldBridge
objectToString
in interface TwoWayFieldBridge
object
- The object to index.null
, but
can be empty.Copyright © 2006–2013 Hibernate. All rights reserved.