/** * To query plan. * * @return the query plan * @throws UnsupportedEncodingException the unsupported encoding exception */ public QueryPlan toQueryPlan() throws UnsupportedEncodingException { return new QueryPlan(new ArrayList<>(tablesQueried), hasSubQuery, execMode != null ? execMode.name() : null, scanMode != null ? scanMode.name() : null, handle, URLEncoder.encode(getPlan(), "UTF-8"), new QueryCostTOBuilder(getCost()).build()); } }
/** * To query plan. * * @return the query plan * @throws UnsupportedEncodingException the unsupported encoding exception */ public QueryPlan toQueryPlan() throws UnsupportedEncodingException { return new QueryPlan(new ArrayList<>(tablesQueried), hasSubQuery, execMode != null ? execMode.name() : null, scanMode != null ? scanMode.name() : null, handle, URLEncoder.encode(getPlan(), "UTF-8"), new QueryCostTOBuilder(getCost()).build()); } }