Interface DocumentBuilder<T>

Type Parameters:
T - OM type
All Superinterfaces:
IndexConstants
All Known Implementing Classes:
AbstractAttributeValueDocumentBuilder, AttachmentDocumentBuilder, AttributeValueDocumentBuilder, FileAttributeDocumentBuilder, FloatAttributeDocumentBuilder, OptionAttributeDocumentBuilder, QueryDocumentBuilder, RangeAttributeDocumentBuilder, StructuredStringAttributeDocumentBuilder

public interface DocumentBuilder<T> extends IndexConstants
OM 객체의 Lucene Document 를 만든다.

기존 com.easydesk.lucene.*DocumentBuilder 의 reflection (getInstance(OM)) 방식을 대체한다. DocumentFactory 는 OM class 와 가장 가까운 상위 type 의 builder 를 사용한다.

Author:
YounghoCho
  • Method Details

    • getType

      Class<T> getType()
      Returns:
      이 builder 가 처리하는 OM type
    • getInstance

      org.apache.lucene.document.Document getInstance(T om) throws Exception
      Parameters:
      om - OM 객체
      Returns:
      document, index 하지 않거나 index 에서 제거하여야 하면 null
      Throws:
      Exception - 오류