org.hibernate.search.bridge
Class String2FieldBridgeAdaptor

java.lang.Object
  extended by org.hibernate.search.bridge.String2FieldBridgeAdaptor
All Implemented Interfaces:
FieldBridge
Direct Known Subclasses:
TwoWayString2FieldBridgeAdaptor

public class String2FieldBridgeAdaptor
extends java.lang.Object
implements FieldBridge

Bridge to use a StringBridge as a FieldBridge.

Author:
Emmanuel Bernard

Constructor Summary
String2FieldBridgeAdaptor(StringBridge stringBridge)
           
 
Method Summary
 void set(java.lang.String name, java.lang.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
 

Constructor Detail

String2FieldBridgeAdaptor

public String2FieldBridgeAdaptor(StringBridge stringBridge)
Method Detail

set

public void set(java.lang.String name,
                java.lang.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.

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.


Copyright © 2006-2010 Hibernate. All Rights Reserved.