public void setRemoteQuery(boolean isRemoteQuery) {
    this.isRemoteQuery = isRemoteQuery;
  }
For queries which are executed from a Function "with a Filter".

@return returns if this query is coming from a {@link Function}.
geode-core/src/main/java/org/apache/geode/cache/query/internal/DefaultQuery.java