org.mtzky.lucene.type
クラス LuceneIntegerStrategy

java.lang.Object
  上位を拡張 org.mtzky.lucene.type.LuceneIntegerStrategy
すべての実装されたインタフェース:
LuceneFieldStrategy
直系の既知のサブクラス:
LuceneByteStrategy, LuceneShortStrategy

public class LuceneIntegerStrategy
extends Object
implements LuceneFieldStrategy

作成者:
mtzky

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

コンストラクタの詳細

LuceneIntegerStrategy

public LuceneIntegerStrategy(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

toInt

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


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