Package com.easydesk.lucene.util
Class QueryInfo
java.lang.Object
com.easydesk.lucene.util.QueryInfo
- All Implemented Interfaces:
Serializable
Client 에서 Server 로 전달하는 Query 정보
- Author:
- 조 영 호
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]getIds()intgetType()longbooleangetValue()voidsetIds(int[] ids) voidsetTarget(int target) voidsetType(QueryInfo.TYPE type) voidsetUserOnly(boolean userOnly) set for personal attribute or user constraint attributevoidtoString()
-
Constructor Details
-
QueryInfo
public QueryInfo(long userId) Creates a new QueryInfo object.- Parameters:
userId- searcher id
-
-
Method Details
-
getUserId
public long getUserId()- Returns:
- searcher id
-
setType
- Parameters:
type- query type
-
getType
- Returns:
- query type
-
setIds
public void setIds(int[] ids) - Parameters:
ids- attribute id 배열
-
getIds
public int[] getIds()- Returns:
- attribute id 배열
-
setValue
- Parameters:
value- query string
-
getValue
- Returns:
- query string
-
setUserOnly
public void setUserOnly(boolean userOnly) set for personal attribute or user constraint attribute- Parameters:
userOnly- true 이면 searcher 의 정보만 검색한다.
-
getUserOnly
public boolean getUserOnly()- Returns:
- userOnly
-
getTarget
public int getTarget()- Returns:
- target
-
setTarget
public void setTarget(int target) - Parameters:
target- target
-
toString
-