public class DruidTopNQueryRecordReader extends DruidQueryRecordReader<io.druid.query.topn.TopNQuery,io.druid.query.Result<io.druid.query.topn.TopNResultValue>>
DruidQueryRecordReader.JsonParserIterator<R extends Comparable<R>>
query, queryResultsIterator, resultsType
Constructor and Description |
---|
DruidTopNQueryRecordReader() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.io.NullWritable |
getCurrentKey() |
DruidWritable |
getCurrentValue() |
float |
getProgress() |
protected com.fasterxml.jackson.databind.JavaType |
getResultTypeDef() |
boolean |
next(org.apache.hadoop.io.NullWritable key,
DruidWritable value) |
boolean |
nextKeyValue() |
close, createKey, createValue, getPos, initialize, initialize, initialize
protected com.fasterxml.jackson.databind.JavaType getResultTypeDef()
getResultTypeDef
in class DruidQueryRecordReader<io.druid.query.topn.TopNQuery,io.druid.query.Result<io.druid.query.topn.TopNResultValue>>
public boolean nextKeyValue()
nextKeyValue
in class DruidQueryRecordReader<io.druid.query.topn.TopNQuery,io.druid.query.Result<io.druid.query.topn.TopNResultValue>>
public org.apache.hadoop.io.NullWritable getCurrentKey() throws IOException, InterruptedException
getCurrentKey
in class DruidQueryRecordReader<io.druid.query.topn.TopNQuery,io.druid.query.Result<io.druid.query.topn.TopNResultValue>>
IOException
InterruptedException
public DruidWritable getCurrentValue() throws IOException, InterruptedException
getCurrentValue
in class DruidQueryRecordReader<io.druid.query.topn.TopNQuery,io.druid.query.Result<io.druid.query.topn.TopNResultValue>>
IOException
InterruptedException
public boolean next(org.apache.hadoop.io.NullWritable key, DruidWritable value)
next
in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,DruidWritable>
next
in class DruidQueryRecordReader<io.druid.query.topn.TopNQuery,io.druid.query.Result<io.druid.query.topn.TopNResultValue>>
public float getProgress()
getProgress
in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.NullWritable,DruidWritable>
getProgress
in class DruidQueryRecordReader<io.druid.query.topn.TopNQuery,io.druid.query.Result<io.druid.query.topn.TopNResultValue>>
Copyright © 2019 The Apache Software Foundation. All rights reserved.