net.conquiris.api.search
Class AbstractHitMapper<T>

java.lang.Object
  extended by net.conquiris.api.search.AbstractHitMapper<T>
Type Parameters:
T - Type of the custom object.
All Implemented Interfaces:
Function<Hit,T>, HitMapper<T>

public abstract class AbstractHitMapper<T>
extends Object
implements HitMapper<T>

Abstract implementation of a hit mapper.

Author:
Andres Rodriguez

Constructor Summary
protected AbstractHitMapper()
          Constructor with no selector.
protected AbstractHitMapper(FieldSelector selector)
          Constructor with a provided selector.
 
Method Summary
 FieldSelector getFieldSelector()
          Returns the field selector to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
apply, equals
 

Constructor Detail

AbstractHitMapper

protected AbstractHitMapper()
Constructor with no selector.


AbstractHitMapper

protected AbstractHitMapper(@Nullable
                            FieldSelector selector)
Constructor with a provided selector.

Method Detail

getFieldSelector

public final FieldSelector getFieldSelector()
Description copied from interface: HitMapper
Returns the field selector to use.

Specified by:
getFieldSelector in interface HitMapper<T>
Returns:
The field selector or null if no selector is used.


Copyright © 2013 Derquinse Projects. All Rights Reserved.