use of org.apache.drill.exec.store.druid.druid.ScanQuery in project drill by apache.
the class DruidRecordReader method getQuery.
private String getQuery() throws JsonProcessingException {
int queryThreshold = this.maxRecordsToRead >= 0 ? Math.min(BaseValueVector.INITIAL_VALUE_ALLOCATION, this.maxRecordsToRead) : BaseValueVector.INITIAL_VALUE_ALLOCATION;
ScanQueryBuilder scanQueryBuilder = plugin.getScanQueryBuilder();
ScanQuery scanQuery = scanQueryBuilder.build(scanSpec.dataSourceName, this.columns, this.filter, this.nextOffset, queryThreshold, scanSpec.getMinTime(), scanSpec.getMaxTime());
return objectMapper.writeValueAsString(scanQuery);
}
Aggregations