/** * If this query is nestable, and has a nested query return it. * * @return the nested query or empty if there is no nested query */ @JsonIgnore default Optional<? extends DruidQuery> getInnerQuery() { return getDataSource().getQuery(); }
/** * JSON tree walk up to physical table to retrieve physical name for a dimension. * * @param value the dimension to retrieve api name. * @param gen the Json Generator to retrieve the tree to walk on. * * @return an Optional String of physical name */ public static Optional<String> findPhysicalName(Dimension value, JsonGenerator gen) { String apiName = value.getApiName(); // Search for physical name return mapNearestDruidQuery( gen, druidQuery -> druidQuery.getDataSource().getPhysicalTable().getPhysicalColumnName(apiName) ); }
metrics, dimensions, druidQuery.getDataSource().getNames(), readCache, request.getFormat().toString()