mirror of https://github.com/apache/druid.git
review comments- use final variables
This commit is contained in:
parent
0d8c1ffe54
commit
1ca61237c1
|
@ -145,12 +145,12 @@ public class DetermineHashedPartitionsJob implements Jobby
|
||||||
if (fileSystem == null) {
|
if (fileSystem == null) {
|
||||||
fileSystem = partitionInfoPath.getFileSystem(groupByJob.getConfiguration());
|
fileSystem = partitionInfoPath.getFileSystem(groupByJob.getConfiguration());
|
||||||
}
|
}
|
||||||
Long cardinality = config.jsonMapper.readValue(
|
final Long cardinality = config.jsonMapper.readValue(
|
||||||
Utils.openInputStream(groupByJob, partitionInfoPath), new TypeReference<Long>()
|
Utils.openInputStream(groupByJob, partitionInfoPath), new TypeReference<Long>()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
int numberOfShards = (int) Math.ceil((double) cardinality / config.getTargetPartitionSize());
|
final int numberOfShards = (int) Math.ceil((double) cardinality / config.getTargetPartitionSize());
|
||||||
|
|
||||||
List<HadoopyShardSpec> actualSpecs = Lists.newArrayListWithExpectedSize(numberOfShards);
|
List<HadoopyShardSpec> actualSpecs = Lists.newArrayListWithExpectedSize(numberOfShards);
|
||||||
if (numberOfShards == 1) {
|
if (numberOfShards == 1) {
|
||||||
|
|
Loading…
Reference in New Issue