org.mtzky.lucene.descriptor
インタフェース LuceneDocumentDesc<E>

型パラメータ:
E - entity
既知の実装クラスの一覧:
AbstractLuceneDocumentDesc, BeanDocumentDesc, MapDocumentDesc

public interface LuceneDocumentDesc<E>

Document entity descriptor.

作成者:
mtzky

メソッドの概要
 Document createDocument(E entity)
           Creates Document from entity.
 E createEntity(Document document)
           Creates entity from Document.
 Analyzer getAnalyzer()
           
 String getIdName()
           
 Term getIdTermByEntity(E entity)
           
 Term getIdTermByValue(Object value)
           
 

メソッドの詳細

getIdName

String getIdName()
戻り値:
the identify field name

getIdTermByEntity

Term getIdTermByEntity(E entity)
パラメータ:
entity -
戻り値:
the term to identify the document(s) to be deleted
関連項目:
IndexWriter.updateDocument(Term, Document), IndexWriter.deleteDocuments(Term)

getIdTermByValue

Term getIdTermByValue(Object value)
パラメータ:
value -
戻り値:
the term to identify the document(s) to be found

getAnalyzer

Analyzer getAnalyzer()
戻り値:
Analyzer

createDocument

Document createDocument(E entity)

Creates Document from entity.

パラメータ:
entity -
戻り値:
Document

createEntity

E createEntity(Document document)

Creates entity from Document.

パラメータ:
document -
戻り値:
entity


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