diff --git a/processing/src/main/java/io/druid/query/metadata/SegmentAnalyzer.java b/processing/src/main/java/io/druid/query/metadata/SegmentAnalyzer.java index d67cb5bc6d2..a81aa80dd0f 100644 --- a/processing/src/main/java/io/druid/query/metadata/SegmentAnalyzer.java +++ b/processing/src/main/java/io/druid/query/metadata/SegmentAnalyzer.java @@ -76,7 +76,7 @@ public class SegmentAnalyzer this.analysisTypes = analysisTypes; } - public int numRows(Segment segment) + public long numRows(Segment segment) { return Preconditions.checkNotNull(segment, "segment").asStorageAdapter().getNumRows(); } diff --git a/processing/src/main/java/io/druid/query/metadata/SegmentMetadataQueryRunnerFactory.java b/processing/src/main/java/io/druid/query/metadata/SegmentMetadataQueryRunnerFactory.java index 0e846b89e1d..1e067c556f3 100644 --- a/processing/src/main/java/io/druid/query/metadata/SegmentMetadataQueryRunnerFactory.java +++ b/processing/src/main/java/io/druid/query/metadata/SegmentMetadataQueryRunnerFactory.java @@ -87,7 +87,7 @@ public class SegmentMetadataQueryRunnerFactory implements QueryRunnerFactory analyzedColumns = analyzer.analyze(segment); - final int numRows = analyzer.numRows(segment); + final long numRows = analyzer.numRows(segment); long totalSize = 0; if (analyzer.analyzingSize()) { diff --git a/processing/src/main/java/io/druid/query/metadata/metadata/SegmentAnalysis.java b/processing/src/main/java/io/druid/query/metadata/metadata/SegmentAnalysis.java index 45d27ef7fd2..fac0c68d97a 100644 --- a/processing/src/main/java/io/druid/query/metadata/metadata/SegmentAnalysis.java +++ b/processing/src/main/java/io/druid/query/metadata/metadata/SegmentAnalysis.java @@ -34,7 +34,7 @@ public class SegmentAnalysis implements Comparable private final List interval; private final Map columns; private final long size; - private final int numRows; + private final long numRows; private final Map aggregators; @JsonCreator @@ -43,7 +43,7 @@ public class SegmentAnalysis implements Comparable @JsonProperty("intervals") List interval, @JsonProperty("columns") Map columns, @JsonProperty("size") long size, - @JsonProperty("numRows") int numRows, + @JsonProperty("numRows") long numRows, @JsonProperty("aggregators") Map aggregators ) { @@ -80,7 +80,7 @@ public class SegmentAnalysis implements Comparable } @JsonProperty - public int getNumRows() + public long getNumRows() { return numRows; }