Package org.apache.pinot.common.request
Class PinotQuery
- java.lang.Object
-
- org.apache.pinot.common.request.PinotQuery
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<PinotQuery>,org.apache.thrift.TBase<PinotQuery,PinotQuery._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.15.0)", date="2022-05-02") public class PinotQuery extends Object implements org.apache.thrift.TBase<PinotQuery,PinotQuery._Fields>, Serializable, Cloneable, Comparable<PinotQuery>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPinotQuery._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description DataSourcedataSourceMap<String,String>debugOptionsbooleanexplainMap<Expression,Expression>expressionOverrideHintsExpressionfilterExpressionList<Expression>groupByListExpressionhavingExpressionintlimitstatic Map<PinotQuery._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapintoffsetList<Expression>orderByListMap<String,String>queryOptionsList<Expression>selectListintversion
-
Constructor Summary
Constructors Constructor Description PinotQuery()PinotQuery(PinotQuery other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToGroupByList(Expression elem)voidaddToOrderByList(Expression elem)voidaddToSelectList(Expression elem)voidclear()intcompareTo(PinotQuery other)PinotQuerydeepCopy()booleanequals(Object that)booleanequals(PinotQuery that)PinotQuery._FieldsfieldForId(int fieldId)DataSourcegetDataSource()Map<String,String>getDebugOptions()intgetDebugOptionsSize()Map<Expression,Expression>getExpressionOverrideHints()intgetExpressionOverrideHintsSize()ObjectgetFieldValue(PinotQuery._Fields field)ExpressiongetFilterExpression()List<Expression>getGroupByList()Iterator<Expression>getGroupByListIterator()intgetGroupByListSize()ExpressiongetHavingExpression()intgetLimit()intgetOffset()List<Expression>getOrderByList()Iterator<Expression>getOrderByListIterator()intgetOrderByListSize()Map<String,String>getQueryOptions()intgetQueryOptionsSize()List<Expression>getSelectList()Iterator<Expression>getSelectListIterator()intgetSelectListSize()intgetVersion()inthashCode()booleanisExplain()booleanisSet(PinotQuery._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetDataSource()Returns true if field dataSource is set (has been assigned a value) and false otherwisebooleanisSetDebugOptions()Returns true if field debugOptions is set (has been assigned a value) and false otherwisebooleanisSetExplain()Returns true if field explain is set (has been assigned a value) and false otherwisebooleanisSetExpressionOverrideHints()Returns true if field expressionOverrideHints is set (has been assigned a value) and false otherwisebooleanisSetFilterExpression()Returns true if field filterExpression is set (has been assigned a value) and false otherwisebooleanisSetGroupByList()Returns true if field groupByList is set (has been assigned a value) and false otherwisebooleanisSetHavingExpression()Returns true if field havingExpression is set (has been assigned a value) and false otherwisebooleanisSetLimit()Returns true if field limit is set (has been assigned a value) and false otherwisebooleanisSetOffset()Returns true if field offset is set (has been assigned a value) and false otherwisebooleanisSetOrderByList()Returns true if field orderByList is set (has been assigned a value) and false otherwisebooleanisSetQueryOptions()Returns true if field queryOptions is set (has been assigned a value) and false otherwisebooleanisSetSelectList()Returns true if field selectList is set (has been assigned a value) and false otherwisebooleanisSetVersion()Returns true if field version is set (has been assigned a value) and false otherwisevoidputToDebugOptions(String key, String val)voidputToExpressionOverrideHints(Expression key, Expression val)voidputToQueryOptions(String key, String val)voidread(org.apache.thrift.protocol.TProtocol iprot)PinotQuerysetDataSource(DataSource dataSource)voidsetDataSourceIsSet(boolean value)PinotQuerysetDebugOptions(Map<String,String> debugOptions)voidsetDebugOptionsIsSet(boolean value)PinotQuerysetExplain(boolean explain)voidsetExplainIsSet(boolean value)PinotQuerysetExpressionOverrideHints(Map<Expression,Expression> expressionOverrideHints)voidsetExpressionOverrideHintsIsSet(boolean value)voidsetFieldValue(PinotQuery._Fields field, Object value)PinotQuerysetFilterExpression(Expression filterExpression)voidsetFilterExpressionIsSet(boolean value)PinotQuerysetGroupByList(List<Expression> groupByList)voidsetGroupByListIsSet(boolean value)PinotQuerysetHavingExpression(Expression havingExpression)voidsetHavingExpressionIsSet(boolean value)PinotQuerysetLimit(int limit)voidsetLimitIsSet(boolean value)PinotQuerysetOffset(int offset)voidsetOffsetIsSet(boolean value)PinotQuerysetOrderByList(List<Expression> orderByList)voidsetOrderByListIsSet(boolean value)PinotQuerysetQueryOptions(Map<String,String> queryOptions)voidsetQueryOptionsIsSet(boolean value)PinotQuerysetSelectList(List<Expression> selectList)voidsetSelectListIsSet(boolean value)PinotQuerysetVersion(int version)voidsetVersionIsSet(boolean value)StringtoString()voidunsetDataSource()voidunsetDebugOptions()voidunsetExplain()voidunsetExpressionOverrideHints()voidunsetFilterExpression()voidunsetGroupByList()voidunsetHavingExpression()voidunsetLimit()voidunsetOffset()voidunsetOrderByList()voidunsetQueryOptions()voidunsetSelectList()voidunsetVersion()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
version
public int version
-
dataSource
public DataSource dataSource
-
selectList
public List<Expression> selectList
-
filterExpression
public Expression filterExpression
-
groupByList
public List<Expression> groupByList
-
orderByList
public List<Expression> orderByList
-
havingExpression
public Expression havingExpression
-
limit
public int limit
-
offset
public int offset
-
explain
public boolean explain
-
expressionOverrideHints
public Map<Expression,Expression> expressionOverrideHints
-
metaDataMap
public static final Map<PinotQuery._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
PinotQuery
public PinotQuery()
-
PinotQuery
public PinotQuery(PinotQuery other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public PinotQuery deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<PinotQuery,PinotQuery._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<PinotQuery,PinotQuery._Fields>
-
getVersion
public int getVersion()
-
setVersion
public PinotQuery setVersion(int version)
-
unsetVersion
public void unsetVersion()
-
isSetVersion
public boolean isSetVersion()
Returns true if field version is set (has been assigned a value) and false otherwise
-
setVersionIsSet
public void setVersionIsSet(boolean value)
-
getDataSource
public DataSource getDataSource()
-
setDataSource
public PinotQuery setDataSource(DataSource dataSource)
-
unsetDataSource
public void unsetDataSource()
-
isSetDataSource
public boolean isSetDataSource()
Returns true if field dataSource is set (has been assigned a value) and false otherwise
-
setDataSourceIsSet
public void setDataSourceIsSet(boolean value)
-
getSelectListSize
public int getSelectListSize()
-
getSelectListIterator
public Iterator<Expression> getSelectListIterator()
-
addToSelectList
public void addToSelectList(Expression elem)
-
getSelectList
public List<Expression> getSelectList()
-
setSelectList
public PinotQuery setSelectList(List<Expression> selectList)
-
unsetSelectList
public void unsetSelectList()
-
isSetSelectList
public boolean isSetSelectList()
Returns true if field selectList is set (has been assigned a value) and false otherwise
-
setSelectListIsSet
public void setSelectListIsSet(boolean value)
-
getFilterExpression
public Expression getFilterExpression()
-
setFilterExpression
public PinotQuery setFilterExpression(Expression filterExpression)
-
unsetFilterExpression
public void unsetFilterExpression()
-
isSetFilterExpression
public boolean isSetFilterExpression()
Returns true if field filterExpression is set (has been assigned a value) and false otherwise
-
setFilterExpressionIsSet
public void setFilterExpressionIsSet(boolean value)
-
getGroupByListSize
public int getGroupByListSize()
-
getGroupByListIterator
public Iterator<Expression> getGroupByListIterator()
-
addToGroupByList
public void addToGroupByList(Expression elem)
-
getGroupByList
public List<Expression> getGroupByList()
-
setGroupByList
public PinotQuery setGroupByList(List<Expression> groupByList)
-
unsetGroupByList
public void unsetGroupByList()
-
isSetGroupByList
public boolean isSetGroupByList()
Returns true if field groupByList is set (has been assigned a value) and false otherwise
-
setGroupByListIsSet
public void setGroupByListIsSet(boolean value)
-
getOrderByListSize
public int getOrderByListSize()
-
getOrderByListIterator
public Iterator<Expression> getOrderByListIterator()
-
addToOrderByList
public void addToOrderByList(Expression elem)
-
getOrderByList
public List<Expression> getOrderByList()
-
setOrderByList
public PinotQuery setOrderByList(List<Expression> orderByList)
-
unsetOrderByList
public void unsetOrderByList()
-
isSetOrderByList
public boolean isSetOrderByList()
Returns true if field orderByList is set (has been assigned a value) and false otherwise
-
setOrderByListIsSet
public void setOrderByListIsSet(boolean value)
-
getHavingExpression
public Expression getHavingExpression()
-
setHavingExpression
public PinotQuery setHavingExpression(Expression havingExpression)
-
unsetHavingExpression
public void unsetHavingExpression()
-
isSetHavingExpression
public boolean isSetHavingExpression()
Returns true if field havingExpression is set (has been assigned a value) and false otherwise
-
setHavingExpressionIsSet
public void setHavingExpressionIsSet(boolean value)
-
getLimit
public int getLimit()
-
setLimit
public PinotQuery setLimit(int limit)
-
unsetLimit
public void unsetLimit()
-
isSetLimit
public boolean isSetLimit()
Returns true if field limit is set (has been assigned a value) and false otherwise
-
setLimitIsSet
public void setLimitIsSet(boolean value)
-
getOffset
public int getOffset()
-
setOffset
public PinotQuery setOffset(int offset)
-
unsetOffset
public void unsetOffset()
-
isSetOffset
public boolean isSetOffset()
Returns true if field offset is set (has been assigned a value) and false otherwise
-
setOffsetIsSet
public void setOffsetIsSet(boolean value)
-
getDebugOptionsSize
public int getDebugOptionsSize()
-
setDebugOptions
public PinotQuery setDebugOptions(Map<String,String> debugOptions)
-
unsetDebugOptions
public void unsetDebugOptions()
-
isSetDebugOptions
public boolean isSetDebugOptions()
Returns true if field debugOptions is set (has been assigned a value) and false otherwise
-
setDebugOptionsIsSet
public void setDebugOptionsIsSet(boolean value)
-
getQueryOptionsSize
public int getQueryOptionsSize()
-
setQueryOptions
public PinotQuery setQueryOptions(Map<String,String> queryOptions)
-
unsetQueryOptions
public void unsetQueryOptions()
-
isSetQueryOptions
public boolean isSetQueryOptions()
Returns true if field queryOptions is set (has been assigned a value) and false otherwise
-
setQueryOptionsIsSet
public void setQueryOptionsIsSet(boolean value)
-
isExplain
public boolean isExplain()
-
setExplain
public PinotQuery setExplain(boolean explain)
-
unsetExplain
public void unsetExplain()
-
isSetExplain
public boolean isSetExplain()
Returns true if field explain is set (has been assigned a value) and false otherwise
-
setExplainIsSet
public void setExplainIsSet(boolean value)
-
getExpressionOverrideHintsSize
public int getExpressionOverrideHintsSize()
-
putToExpressionOverrideHints
public void putToExpressionOverrideHints(Expression key, Expression val)
-
getExpressionOverrideHints
public Map<Expression,Expression> getExpressionOverrideHints()
-
setExpressionOverrideHints
public PinotQuery setExpressionOverrideHints(Map<Expression,Expression> expressionOverrideHints)
-
unsetExpressionOverrideHints
public void unsetExpressionOverrideHints()
-
isSetExpressionOverrideHints
public boolean isSetExpressionOverrideHints()
Returns true if field expressionOverrideHints is set (has been assigned a value) and false otherwise
-
setExpressionOverrideHintsIsSet
public void setExpressionOverrideHintsIsSet(boolean value)
-
setFieldValue
public void setFieldValue(PinotQuery._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<PinotQuery,PinotQuery._Fields>
-
getFieldValue
public Object getFieldValue(PinotQuery._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<PinotQuery,PinotQuery._Fields>
-
isSet
public boolean isSet(PinotQuery._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<PinotQuery,PinotQuery._Fields>
-
equals
public boolean equals(PinotQuery that)
-
compareTo
public int compareTo(PinotQuery other)
- Specified by:
compareToin interfaceComparable<PinotQuery>
-
fieldForId
public PinotQuery._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<PinotQuery,PinotQuery._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException- Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-