Uses of Class
com.streambase.liveview.client.QueryConfig
Package
Description
Provides classes and interfaces fundamental to the LiveView Java API.
Provides classes and interfaces to set Alerts.
Provides classes to configure table options.
-
Uses of QueryConfig in com.streambase.liveview.client
Modifier and TypeMethodDescriptionQuery.getConfig()
Returns a QueryConfig object that contains fully parsed pieces like table, predicate, groupByExprs, etc. as well as the query string.QueryListenerWrapper.getConfig()
QueryConfig.setApproximateSnapshotOrder
(OrderDefinition order) Return the snapshot part of the query in this approximate order, subject to parallel scan interleaving.QueryConfig.setDescription
(String description) Configure the description for this queryQueryConfig.setGroupByExprs
(String... exprs) Configure group-byQueryConfig.setGroupByExprs
(List<String> groupByExprs) Configure group-bySet the having filter, 'HAVING' clauseQueryConfig.setIncludeInternal
(boolean includeInternal) set to make this query include internal fields, regardless of the state of includeInternal property if false, use the property (which is set by the URI when connecting)QueryConfig.setLimit
(int limit) Deprecated.QueryConfig.setMaxResultSetSize
(int limit) Configure the row limit.QueryConfig.setPivotAggExpr
(String pivotAggExpr) Set the pivot aggregate expressions, 'PIVOT' clauseQueryConfig.setPivotField
(String pivotField) Set the pivot 'FOR' clauseQueryConfig.setPivotQuery
(String tableName, String pivotAggExprs, String pivotField, String pivotValues, String... groupByExprs) Configure the pivot query.QueryConfig.setPivotValues
(String pivotValues) Set the pivot 'VALUES' clauseQueryConfig.setPredicate
(String predicate) Configure the predicateQueryConfig.setPredicate
(String predicate, int timePredicateInMillis) Configure the predicateConfigure the table to query and predicateQueryConfig.setQuery
(List<Schema.Field> fields, String table, String predicate) Configure the table to query, the predicate and the result fieldsQueryConfig.setQuery
(List<Schema.Field> fields, String table, String predicate, int limit) Configure the table to query, the predicate and the result fields using a specified row limitQueryConfig.setQuery
(List<Schema.Field> fields, String table, String predicate, int limit, long timePredicateInMillis) Configure the table to query, the predicate and the result fields using a specified row limit and row delayQueryConfig.setQueryString
(String query) Configure the query using a single string, SQL-like syntax.QueryConfig.setQueryType
(LiveViewQueryType queryType) Configure the query type.QueryConfig.setSelectExprs
(String... exprs) Configure the result fieldsQueryConfig.setSelectExprs
(List<String> exprs) Configure the result fieldsQueryConfig.setSelectFields
(Schema.Field... fields) Configure the result fieldsQueryConfig.setSelectFields
(List<Schema.Field> fields) Configure the result fieldsConfigure the table to queryQueryConfig.setTimePredicateInMillis
(long ms) Set the time predicate.QueryConfig.setTimeWindow
(String startTimeExpr, String endTimeExpr, String timestampField) Configures this query as a time-windowed query, using the given start and end time expressions, against the given timestamp field from the target table.QueryConfig.setTopN
(OrderDefinition order, int size) Return only the top N results according to the order definition.Modifier and TypeMethodDescriptionvoid
TableAdminManager.createAggregateTable
(String tablename, String descripton, QueryConfig aggregateQuery, List<List<String>> indices) Create a table that is based on an aggregate query against an existing table.void
LiveViewConnection.deleteRows
(QueryConfig config) Delete rows based on the suppliedQueryConfig
.LiveViewConnection.describeQuery
(QueryConfig config) Get information about a query, such as its result schema, without actually running itLiveViewConnection.executeSnapshotQuery
(QueryConfig config) This method makes it easy to run a snapshot-only query where the results come back in an object that can be iterated over to retrieve the snapshot tuples.static com.streambase.liveview.internal.protocol.jaxb.Query
QueryConfig.getJaxbQuery
(QueryConfig config, boolean convertSnapOnlyToContinuousOnly) LiveViewConnection.registerQuery
(QueryConfig config, QueryListener listener) Registers a new query on the server based on theQueryConfig
and sends query events to the specifiedQueryListener
.ModifierConstructorDescriptionQueryListenerWrapper
(com.streambase.liveview.client.internal.ws.LiveViewMultiConnectionImpl liveViewMultiConnectionImpl, QueryConfig config, QueryListener qListener) -
Uses of QueryConfig in com.streambase.liveview.client.alert
Modifier and TypeMethodDescriptionAlertRule.getAlertQueryConfig()
Gets the value of the alertQueryConfig property.Modifier and TypeMethodDescriptionvoid
AlertRule.setAlertQueryConfig
(QueryConfig queryConfig) Sets the value of the alertQueryConfig property. -
Uses of QueryConfig in com.streambase.liveview.client.dynamictables
Modifier and TypeMethodDescriptionTableConfig.getAggregateQuery()
This method returns the aggregate query for this table.Modifier and TypeMethodDescriptionTableConfig.setAggregateQuery
(QueryConfig aggregateQuery) This method sets the aggregate query for the table.
setMaxResultSetSize(int)
instead