/** * Gets the number of index paths (terms) generated by the operation. * * @return the request charge. */ public double getRequestCharge() { String value = this.getResponseHeaders().get(HttpConstants.HttpHeaders.REQUEST_CHARGE); if (StringUtils.isEmpty(value)) { return 0; } return Double.valueOf(value); }
/** * Gets the progress of lazy indexing. * * @return the progress of lazy indexing. */ public long getLazyIndexingProgress() { String value = this.getResponseHeaders().get(HttpConstants.HttpHeaders.LAZY_INDEXING_PROGRESS); if (StringUtils.isEmpty(value)) { return -1; } return Long.parseLong(value); }
/** * Gets the progress of an index transformation, if one is underway. * * @return the progress of an index transformation. */ public long getIndexTransformationProgress() { String value = this.getResponseHeaders().get(HttpConstants.HttpHeaders.INDEX_TRANSFORMATION_PROGRESS); if (StringUtils.isEmpty(value)) { return -1; } return Long.parseLong(value); }
/** * Gets the flag associated with the response from the Azure Cosmos DB database service whether this request is served from Request Units(RUs)/minute capacity or not. * * @return True if this request is served from RUs/minute capacity. Otherwise, false. */ public boolean getRUPerMinuteUsed() { String value = this.getResponseHeaders().get(HttpConstants.HttpHeaders.IS_RU_PER_MINUTE_USED); if (StringUtils.isEmpty(value) || "0".equals(value) || "false".equals(value.toLowerCase())) { return false; } else { return true; } }