Class StandardDataQueryBuilderImpl
java.lang.Object
com.flowable.indexing.query.builder.standard.StandardDataQueryBuilderImpl
- All Implemented Interfaces:
StandardDataQueryBuilder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classNested classes/interfaces inherited from interface StandardDataQueryBuilder
StandardDataQueryBuilder.AggregationList, StandardDataQueryBuilder.Filter, StandardDataQueryBuilder.FilterList -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<StandardDataQueryBuilder.FilterList> protected List<StandardDataQueryBuilder.FilterList> protected static intprotected booleanprotected Collection<String> protected Stringprotected tools.jackson.databind.ObjectMapperprotected List<StandardDataQueryBuilder.FilterList> protected booleanprotected booleanprotected intprotected List<StandardDataQuerySortValue> protected intprotected Stringprotected Collection<String> protected static final int -
Constructor Summary
ConstructorsConstructorDescriptionStandardDataQueryBuilderImpl(String index, tools.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionAdds a root-level AND filter list ANDed on top of the declared query (purely narrowing); unlikeStandardDataQueryBuilder.and()/StandardDataQueryBuilder.or()it can be combined with either of them.Define one or more aggregations for the results of this query.and()Configures the root logical operator of the query to be AND.protected voidapplyTermsOrdering(tools.jackson.databind.node.ObjectNode termsNode, String order, String subAggName, String percentKey, int size) Applies an optionalorderblock (and a bumpedshard_size) to a terms aggregation node.tools.jackson.databind.node.ObjectNodebuild()Builds the query that is ready to be passed into Elasticsearch.protected voidbuildAvgNestedFieldFilteredAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildAvgVariableValueAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildBusinessStatusTermsAggregations(tools.jackson.databind.node.ObjectNode aggsNode, Map<String, Integer> aggregations, String field) protected voidbuildCountActiveAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildCountByIdAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildCountCompletedAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildCountDistinctFieldValueAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildCountStartedAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildDirectFieldAggregation(tools.jackson.databind.node.ObjectNode aggsNode, Map<String, String> fieldAggregations, String esAggType) protected voidbuildDirectFieldAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildDistributionBusinessStatusAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildDistributionParentScopeBusinessStatusAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildDistributionRootScopeBusinessStatusAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildDistributionVariableValueAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildGroupByDateCompletedAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildGroupByDateStartedAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildGroupByDateStartedAndFieldAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildGroupByDateStartedWithAvgNestedFieldFilteredAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildGroupByDateStartedWithPercentileFieldAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildGroupByDateStartedWithSubField(tools.jackson.databind.node.ObjectNode aggsNode, Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.DateFieldAggSettings> aggregations, String esAggType) protected voidbuildGroupByDateStartedWithSubFieldAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildGroupByDefinitionKeyAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildGroupByDefinitionKeyAndStateAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildGroupByFieldAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildGroupByFieldWithAvgFieldAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildGroupByFieldWithSumFieldAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildGroupByNestedFieldFilteredAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildGroupByNestedFieldFilteredWithAvgFieldAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildGroupByNestedFieldFilteredWithPercentileFieldAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildGroupByNestedFieldFilteredWithSubAggField(tools.jackson.databind.node.ObjectNode aggsNode, Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.NestedFieldFilteredGroupByWithSubAggSettings> aggregations, String esAggType, String subAggSuffix) protected voidbuildGroupByNestedFieldFilteredWithSumFieldAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildMaxVariableValueAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildMinVariableValueAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildPercentileFieldValueAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildSingleNumericVariableAggregation(tools.jackson.databind.node.ObjectNode aggsNode, String aggregationName, String aggregationOperator, String variableName) protected voidbuildStddevVariableValueAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected voidbuildSumVariableValueAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) protected tools.jackson.databind.node.ObjectNodecreateFilteredVariableAggregation(tools.jackson.databind.node.ObjectNode aggsNode, String aggregationName, String variableName) When results are returned, this will make sure only the fields in the passed list are returned.By default, when setting a size, the source won't be returned.protected Stringprotected StringgetIndex()The Elasticsearch index this query targets (e.g. one of theDefaultIndexesconstants).protected StringgroupIdentityLinks(Collection<String> groupIds) If set, will limit the returned data to only return data that the users with given groups have access to.protected static booleanhasFilters(StandardDataQueryBuilder.FilterList filterList) protected static booleanhasFilters(StandardDataQueryBuilderImpl queryBuilder) protected booleanprotected booleanprotected booleanprotected booleanprotected booleanprotected booleanor()Configures the root logical operator of the query to be OR.pageSize(int size) Queries built by this builder by default don't return any 'hits'.The query won't do any aggregations, even if they are configured.The query won't return any results, which is useful if only the aggregation is relevant.searchAfter(List<Object> searchAfter) Use for alternative paging by providing from where the querying should start.sort(List<StandardDataQuerySortValue> sortValues) Sorts the results given the field names and asc/desc in the provided parameter.start(int start) When using paging, this sets the start number of the page.Sets the tenantId, which will limit what results are returned from the query.userIdentityLinks(Collection<String> userIds) If set, will limit the returned data to only return data that the users with given ids have access to.When the results are returned, also these variables will be fetched.
-
Field Details
-
index
-
objectMapper
protected tools.jackson.databind.ObjectMapper objectMapper -
returnResults
protected boolean returnResults -
returnAggregations
protected boolean returnAggregations -
DEFAULT_SIZE
protected static int DEFAULT_SIZE -
VALUE_ORDER_SHARD_SIZE
protected static final int VALUE_ORDER_SHARD_SIZE- See Also:
-
start
protected int start -
size
protected int size -
fields
-
variableNameAndTypes
-
tenantId
-
userIdentityLinks
-
groupIdentityLinks
-
forceSource
protected boolean forceSource -
andFilters
-
orFilters
-
additionalFilters
-
sortValues
-
searchAfter
-
aggregationList
-
-
Constructor Details
-
StandardDataQueryBuilderImpl
-
-
Method Details
-
returnResults
Description copied from interface:StandardDataQueryBuilderThe query won't return any results, which is useful if only the aggregation is relevant.- Specified by:
returnResultsin interfaceStandardDataQueryBuilder
-
returnNoAggregations
Description copied from interface:StandardDataQueryBuilderThe query won't do any aggregations, even if they are configured. This is useful when reusing a query for e.g. CSV export, where the agregation are irrelevant.- Specified by:
returnNoAggregationsin interfaceStandardDataQueryBuilder
-
forceSourceToBeReturned
Description copied from interface:StandardDataQueryBuilderBy default, when setting a size, the source won't be returned. If this method is called, this forces that the source is returned in the hits. It means no 'fields' will be returned though.- Specified by:
forceSourceToBeReturnedin interfaceStandardDataQueryBuilder
-
start
Description copied from interface:StandardDataQueryBuilderWhen using paging, this sets the start number of the page.- Specified by:
startin interfaceStandardDataQueryBuilder
-
pageSize
Queries built by this builder by default don't return any 'hits'. Hits, in context of Elasticsearch, are the full json documents of indexed data. If this method is called, the passed number of hits will be returned (if there are that many).- Specified by:
pageSizein interfaceStandardDataQueryBuilder
-
fields
Description copied from interface:StandardDataQueryBuilderWhen results are returned, this will make sure only the fields in the passed list are returned. By default, all fields are returned.- Specified by:
fieldsin interfaceStandardDataQueryBuilder
-
variables
public StandardDataQueryBuilder variables(List<org.apache.commons.lang3.tuple.Pair<String, String>> variableNameAndTypes) Description copied from interface:StandardDataQueryBuilderWhen the results are returned, also these variables will be fetched.- Specified by:
variablesin interfaceStandardDataQueryBuilder
-
tenantId
Description copied from interface:StandardDataQueryBuilderSets the tenantId, which will limit what results are returned from the query. If set, will add the tenantId as requirement and add an AND with any filter set on the root level of this query.- Specified by:
tenantIdin interfaceStandardDataQueryBuilder
-
userIdentityLinks
Description copied from interface:StandardDataQueryBuilderIf set, will limit the returned data to only return data that the users with given ids have access to. Flowable adds automatically the user identitylink for every type of user: assignee, owner, participant, watcher and candidate user to the index.- Specified by:
userIdentityLinksin interfaceStandardDataQueryBuilder
-
groupIdentityLinks
Description copied from interface:StandardDataQueryBuilderIf set, will limit the returned data to only return data that the users with given groups have access to. Flowable adds automatically the group identitylink for every type of group: candidate group, watcher and participant group.- Specified by:
groupIdentityLinksin interfaceStandardDataQueryBuilder
-
and
Description copied from interface:StandardDataQueryBuilderConfigures the root logical operator of the query to be AND.- Specified by:
andin interfaceStandardDataQueryBuilder
-
or
Description copied from interface:StandardDataQueryBuilderConfigures the root logical operator of the query to be OR.- Specified by:
orin interfaceStandardDataQueryBuilder
-
additionalAnd
Description copied from interface:StandardDataQueryBuilderAdds a root-level AND filter list ANDed on top of the declared query (purely narrowing); unlikeStandardDataQueryBuilder.and()/StandardDataQueryBuilder.or()it can be combined with either of them.- Specified by:
additionalAndin interfaceStandardDataQueryBuilder
-
sort
Description copied from interface:StandardDataQueryBuilderSorts the results given the field names and asc/desc in the provided parameter.- Specified by:
sortin interfaceStandardDataQueryBuilder
-
searchAfter
Description copied from interface:StandardDataQueryBuilderUse for alternative paging by providing from where the querying should start.- Specified by:
searchAfterin interfaceStandardDataQueryBuilder
-
aggregations
Description copied from interface:StandardDataQueryBuilderDefine one or more aggregations for the results of this query.- Specified by:
aggregationsin interfaceStandardDataQueryBuilder
-
getDefinitionKeyField
-
getDefinitionNameKeywordField
-
build
public tools.jackson.databind.node.ObjectNode build()Builds the query that is ready to be passed into Elasticsearch.- Specified by:
buildin interfaceStandardDataQueryBuilder
-
buildCountByIdAggregations
protected void buildCountByIdAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildCountStartedAggregations
protected void buildCountStartedAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildCountCompletedAggregations
protected void buildCountCompletedAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildCountActiveAggregations
protected void buildCountActiveAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildGroupByDefinitionKeyAggregations
protected void buildGroupByDefinitionKeyAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildGroupByDefinitionKeyAndStateAggregations
protected void buildGroupByDefinitionKeyAndStateAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildGroupByDateStartedAggregations
protected void buildGroupByDateStartedAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildGroupByDateCompletedAggregations
protected void buildGroupByDateCompletedAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildMaxVariableValueAggregations
protected void buildMaxVariableValueAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildMinVariableValueAggregations
protected void buildMinVariableValueAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildAvgVariableValueAggregations
protected void buildAvgVariableValueAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildStddevVariableValueAggregations
protected void buildStddevVariableValueAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildSumVariableValueAggregations
protected void buildSumVariableValueAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildDistributionVariableValueAggregations
protected void buildDistributionVariableValueAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildDistributionBusinessStatusAggregations
protected void buildDistributionBusinessStatusAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildDistributionParentScopeBusinessStatusAggregations
protected void buildDistributionParentScopeBusinessStatusAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildDistributionRootScopeBusinessStatusAggregations
protected void buildDistributionRootScopeBusinessStatusAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildBusinessStatusTermsAggregations
-
buildSingleNumericVariableAggregation
-
createFilteredVariableAggregation
-
hasSafeQuerySettings
protected boolean hasSafeQuerySettings() -
getIndex
Description copied from interface:StandardDataQueryBuilderThe Elasticsearch index this query targets (e.g. one of theDefaultIndexesconstants).- Specified by:
getIndexin interfaceStandardDataQueryBuilder
-
getAndFilters
-
getOrFilters
-
getAdditionalFilters
-
getStartTimeField
-
buildDirectFieldAggregations
protected void buildDirectFieldAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildDirectFieldAggregation
-
buildGroupByFieldAggregations
protected void buildGroupByFieldAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildCountDistinctFieldValueAggregations
protected void buildCountDistinctFieldValueAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildGroupByDateStartedWithSubFieldAggregations
protected void buildGroupByDateStartedWithSubFieldAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildGroupByDateStartedWithSubField
protected void buildGroupByDateStartedWithSubField(tools.jackson.databind.node.ObjectNode aggsNode, Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.DateFieldAggSettings> aggregations, String esAggType) -
buildGroupByDateStartedAndFieldAggregations
protected void buildGroupByDateStartedAndFieldAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildGroupByFieldWithSumFieldAggregations
protected void buildGroupByFieldWithSumFieldAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildGroupByNestedFieldFilteredAggregations
protected void buildGroupByNestedFieldFilteredAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
applyTermsOrdering
protected void applyTermsOrdering(tools.jackson.databind.node.ObjectNode termsNode, String order, String subAggName, String percentKey, int size) Applies an optionalorderblock (and a bumpedshard_size) to a terms aggregation node.Accepted
ordervalues:null/countDesc— leave the JSON unchanged (ES default is_count desc).countAsc— order by_countascending.valueAsc/valueDesc— order by the sub-aggregation's value. RequiressubAggName. For percentile sub-aggregations, also passpercentKey(e.g."95.0").
When ordering by a sub-aggregation the
shard_sizeto 100 so the top-N across shards is more accurate. See ES terms-aggregation docs on shard-level accuracy. -
buildAvgNestedFieldFilteredAggregations
protected void buildAvgNestedFieldFilteredAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildGroupByDateStartedWithAvgNestedFieldFilteredAggregations
protected void buildGroupByDateStartedWithAvgNestedFieldFilteredAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildGroupByFieldWithAvgFieldAggregations
protected void buildGroupByFieldWithAvgFieldAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildPercentileFieldValueAggregations
protected void buildPercentileFieldValueAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildGroupByDateStartedWithPercentileFieldAggregations
protected void buildGroupByDateStartedWithPercentileFieldAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildGroupByNestedFieldFilteredWithSumFieldAggregations
protected void buildGroupByNestedFieldFilteredWithSumFieldAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildGroupByNestedFieldFilteredWithAvgFieldAggregations
protected void buildGroupByNestedFieldFilteredWithAvgFieldAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
buildGroupByNestedFieldFilteredWithSubAggField
protected void buildGroupByNestedFieldFilteredWithSubAggField(tools.jackson.databind.node.ObjectNode aggsNode, Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.NestedFieldFilteredGroupByWithSubAggSettings> aggregations, String esAggType, String subAggSuffix) -
buildGroupByNestedFieldFilteredWithPercentileFieldAggregations
protected void buildGroupByNestedFieldFilteredWithPercentileFieldAggregations(tools.jackson.databind.node.ObjectNode aggsNode, StandardDataQueryBuilderImpl.AggregationListImpl aggregationList) -
hasFilters
-
hasFilters
-
isTaskQuery
protected boolean isTaskQuery() -
isWorkQuery
protected boolean isWorkQuery() -
isProcessInstanceQuery
protected boolean isProcessInstanceQuery() -
isCaseInstanceQuery
protected boolean isCaseInstanceQuery() -
isAgentInstanceQuery
protected boolean isAgentInstanceQuery()
-