|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.blur.thrift.generated.Query
public class Query
The Query object holds the query string (normal Lucene syntax), filters and type of scoring (used when super query is on).
Nested Class Summary | |
---|---|
static class |
Query._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them. |
Field Summary | |
---|---|
static Map<Query._Fields,FieldMetaData> |
metaDataMap
|
String |
query
A Lucene syntax based query. |
String |
recordFilter
The Record filter (normal Lucene syntax), is a filter performed before the join to filter out Records from the results. |
String |
rowFilter
The Row filter (normal Lucene syntax), is a filter performed after the join to filter out entire Rows from the results. |
boolean |
rowQuery
If the Row query is on, meaning the query will be perform against all the Records (joining records in some cases) and the result will be Rows (groupings of Record). |
ScoreType |
scoreType
The scoring type, see the document on ScoreType for explanation of each score type. |
Constructor Summary | |
---|---|
Query()
|
|
Query(Query other)
Performs a deep copy on other. |
|
Query(String query,
boolean rowQuery,
ScoreType scoreType,
String rowFilter,
String recordFilter)
|
Method Summary | |
---|---|
void |
clear()
Return to the state of having just been initialized, as though you had just called the default constructor. |
int |
compareTo(Query other)
|
Query |
deepCopy()
|
boolean |
equals(Object that)
|
boolean |
equals(Query that)
|
Query._Fields |
fieldForId(int fieldId)
Get the F instance that corresponds to fieldId. |
Object |
getFieldValue(Query._Fields field)
Get a field's value by field variable. |
String |
getQuery()
A Lucene syntax based query. |
String |
getRecordFilter()
The Record filter (normal Lucene syntax), is a filter performed before the join to filter out Records from the results. |
String |
getRowFilter()
The Row filter (normal Lucene syntax), is a filter performed after the join to filter out entire Rows from the results. |
ScoreType |
getScoreType()
The scoring type, see the document on ScoreType for explanation of each score type. |
int |
hashCode()
|
boolean |
isRowQuery()
If the Row query is on, meaning the query will be perform against all the Records (joining records in some cases) and the result will be Rows (groupings of Record). |
boolean |
isSet(Query._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise |
boolean |
isSetQuery()
Returns true if field query is set (has been assigned a value) and false otherwise |
boolean |
isSetRecordFilter()
Returns true if field recordFilter is set (has been assigned a value) and false otherwise |
boolean |
isSetRowFilter()
Returns true if field rowFilter is set (has been assigned a value) and false otherwise |
boolean |
isSetRowQuery()
Returns true if field rowQuery is set (has been assigned a value) and false otherwise |
boolean |
isSetScoreType()
Returns true if field scoreType is set (has been assigned a value) and false otherwise |
void |
read(TProtocol iprot)
Reads the TObject from the given input protocol. |
void |
setFieldValue(Query._Fields field,
Object value)
Set a field's value by field variable. |
Query |
setQuery(String query)
A Lucene syntax based query. |
void |
setQueryIsSet(boolean value)
|
Query |
setRecordFilter(String recordFilter)
The Record filter (normal Lucene syntax), is a filter performed before the join to filter out Records from the results. |
void |
setRecordFilterIsSet(boolean value)
|
Query |
setRowFilter(String rowFilter)
The Row filter (normal Lucene syntax), is a filter performed after the join to filter out entire Rows from the results. |
void |
setRowFilterIsSet(boolean value)
|
Query |
setRowQuery(boolean rowQuery)
If the Row query is on, meaning the query will be perform against all the Records (joining records in some cases) and the result will be Rows (groupings of Record). |
void |
setRowQueryIsSet(boolean value)
|
Query |
setScoreType(ScoreType scoreType)
The scoring type, see the document on ScoreType for explanation of each score type. |
void |
setScoreTypeIsSet(boolean value)
|
String |
toString()
|
void |
unsetQuery()
|
void |
unsetRecordFilter()
|
void |
unsetRowFilter()
|
void |
unsetRowQuery()
|
void |
unsetScoreType()
|
void |
validate()
|
void |
write(TProtocol oprot)
Writes the objects out to the protocol |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public String query
public boolean rowQuery
public ScoreType scoreType
ScoreType
public String rowFilter
public String recordFilter
public static final Map<Query._Fields,FieldMetaData> metaDataMap
Constructor Detail |
---|
public Query()
public Query(String query, boolean rowQuery, ScoreType scoreType, String rowFilter, String recordFilter)
public Query(Query other)
Method Detail |
---|
public Query deepCopy()
deepCopy
in interface TBase<Query,Query._Fields>
public void clear()
TBase
clear
in interface TBase<Query,Query._Fields>
public String getQuery()
public Query setQuery(String query)
public void unsetQuery()
public boolean isSetQuery()
public void setQueryIsSet(boolean value)
public boolean isRowQuery()
public Query setRowQuery(boolean rowQuery)
public void unsetRowQuery()
public boolean isSetRowQuery()
public void setRowQueryIsSet(boolean value)
public ScoreType getScoreType()
ScoreType
public Query setScoreType(ScoreType scoreType)
ScoreType
public void unsetScoreType()
public boolean isSetScoreType()
public void setScoreTypeIsSet(boolean value)
public String getRowFilter()
public Query setRowFilter(String rowFilter)
public void unsetRowFilter()
public boolean isSetRowFilter()
public void setRowFilterIsSet(boolean value)
public String getRecordFilter()
public Query setRecordFilter(String recordFilter)
public void unsetRecordFilter()
public boolean isSetRecordFilter()
public void setRecordFilterIsSet(boolean value)
public void setFieldValue(Query._Fields field, Object value)
TBase
setFieldValue
in interface TBase<Query,Query._Fields>
public Object getFieldValue(Query._Fields field)
TBase
getFieldValue
in interface TBase<Query,Query._Fields>
public boolean isSet(Query._Fields field)
isSet
in interface TBase<Query,Query._Fields>
public boolean equals(Object that)
equals
in class Object
public boolean equals(Query that)
public int hashCode()
hashCode
in class Object
public int compareTo(Query other)
compareTo
in interface Comparable<Query>
public Query._Fields fieldForId(int fieldId)
TBase
fieldForId
in interface TBase<Query,Query._Fields>
public void read(TProtocol iprot) throws TException
TBase
read
in interface TBase<Query,Query._Fields>
iprot
- Input protocol
TException
public void write(TProtocol oprot) throws TException
TBase
write
in interface TBase<Query,Query._Fields>
oprot
- Output protocol
TException
public String toString()
toString
in class Object
public void validate() throws TException
TException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |