org.mtzky.lucene.type
クラス LuceneFloatStrategy

java.lang.Object
  上位を拡張 org.mtzky.lucene.type.LuceneFloatStrategy
すべての実装されたインタフェース:
LuceneFieldStrategy

public class LuceneFloatStrategy
extends Object
implements LuceneFieldStrategy

作成者:
mtzky

コンストラクタの概要
LuceneFloatStrategy(LucenePropertyConfig config)
           
 
メソッドの概要
 Fieldable getField(Object value)
           
 Term getTerm(Object value)
           
<T> T
getValue(Fieldable field)
           Gets a value to set to the entity.
protected  float toFloat(Object value)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

LuceneFloatStrategy

public LuceneFloatStrategy(LucenePropertyConfig config)
パラメータ:
config -
メソッドの詳細

getField

public Fieldable getField(Object value)
定義:
インタフェース LuceneFieldStrategy 内の getField
戻り値:
NumericField if the property type is numeric, or Field

getValue

public <T> T getValue(Fieldable field)
インタフェース LuceneFieldStrategy の記述:

Gets a value to set to the entity.

定義:
インタフェース LuceneFieldStrategy 内の getValue
型パラメータ:
T - type
パラメータ:
field - Fieldable
戻り値:
value

getTerm

public Term getTerm(Object value)
定義:
インタフェース LuceneFieldStrategy 内の getTerm
戻り値:
Term normalized by type

toFloat

protected float toFloat(Object value)
パラメータ:
value -
戻り値:
value converted to float


Copyright (C) 2010-2011 Mtzky. AllRights Reserved.