Package com.easydesk.lucene.util
Class DocumentWrapper
java.lang.Object
com.easydesk.lucene.util.DocumentWrapper
- All Implemented Interfaces:
Indexable,IndexConstants
Simple
Indexable 구현- Author:
- 조 영 호
-
Field Summary
Fields inherited from interface com.easydesk.lucene.IndexConstants
AND, ATTACHMENT_ID, ATTACHMENT_PREFIX, ATTACHMENT_TYPE_ID, ATTRIBUTE_ID, ATTRIBUTE_PREFIX, CREATED_DATE, CREATER_NAME, CREATER_NICK_NAME, CREATER_USER_NAME, DATE, DEPEND_ID, DEPEND_TYPE_ID, FLOAT_NUMBER, ITEM_ID, KEY_WORD, MODULE_ID, NUMBER, OR, PARENT_ID, RANGE, TEXT, USER_ID, USER_ITEM_ID, VALUE_ID -
Constructor Summary
ConstructorsConstructorDescriptionDocumentWrapper(org.apache.lucene.index.Term term, org.apache.lucene.document.Document document) Creates a new DocumentWrapper object without location.DocumentWrapper(org.apache.lucene.index.Term term, org.apache.lucene.document.Document document, String location) Creates a new DocumentWrapper object. -
Method Summary
-
Constructor Details
-
DocumentWrapper
public DocumentWrapper(org.apache.lucene.index.Term term, org.apache.lucene.document.Document document) Creates a new DocumentWrapper object without location.- Parameters:
term- unique termdocument- document,null이면 제거
-
DocumentWrapper
public DocumentWrapper(org.apache.lucene.index.Term term, org.apache.lucene.document.Document document, String location) Creates a new DocumentWrapper object.- Parameters:
term- unique termdocument- document,null이면 제거location- index location
-
-
Method Details
-
getLocation
Description copied from interface:Indexableindex location (index root 기준 상대 경로) 을 구한다.- Specified by:
getLocationin interfaceIndexable- Returns:
- index location
-
getTerm
public org.apache.lucene.index.Term getTerm()- Returns:
- unique term
-
getUniqueTerm
public org.apache.lucene.index.Term getUniqueTerm()Description copied from interface:Indexableupdate/remove 를 위한 unique term 을 만든다.이 term 의 field 는 document 에 keyword 로 index 되어 있어야 한다.
- Specified by:
getUniqueTermin interfaceIndexable- Returns:
- term for update/remove
-
getDocument
public org.apache.lucene.document.Document getDocument()Description copied from interface:Indexableindexing 을 위한 document 를 만든다.- Specified by:
getDocumentin interfaceIndexable- Returns:
- document for indexing,
null이면 index 에서 제거한다.
-
hashCode
public int hashCode() -
equals
-
toString
-