Skip to content

Commit

Permalink
Addressed review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
revans2 committed Aug 2, 2021
1 parent 023cfdd commit bfe2338
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 31 deletions.
44 changes: 22 additions & 22 deletions java/src/main/java/ai/rapids/cudf/Aggregation.java
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public boolean equals(Object other) {
}
}

private static class QuantileAggregation extends Aggregation {
private static final class QuantileAggregation extends Aggregation {
private final QuantileMethod method;
private final double[] quantiles;

Expand Down Expand Up @@ -423,7 +423,7 @@ static void close(long[] ptrs) {

static native void close(long ptr);

static class SumAggregation extends NoParamAggregation {
static final class SumAggregation extends NoParamAggregation {
private SumAggregation() {
super(Kind.SUM);
}
Expand All @@ -436,7 +436,7 @@ static SumAggregation sum() {
return new SumAggregation();
}

static class ProductAggregation extends NoParamAggregation {
static final class ProductAggregation extends NoParamAggregation {
private ProductAggregation() {
super(Kind.PRODUCT);
}
Expand All @@ -449,7 +449,7 @@ static ProductAggregation product() {
return new ProductAggregation();
}

static class MinAggregation extends NoParamAggregation {
static final class MinAggregation extends NoParamAggregation {
private MinAggregation() {
super(Kind.MIN);
}
Expand All @@ -462,7 +462,7 @@ static MinAggregation min() {
return new MinAggregation();
}

static class MaxAggregation extends NoParamAggregation {
static final class MaxAggregation extends NoParamAggregation {
private MaxAggregation() {
super(Kind.MAX);
}
Expand All @@ -475,7 +475,7 @@ static MaxAggregation max() {
return new MaxAggregation();
}

static class CountAggregation extends CountLikeAggregation {
static final class CountAggregation extends CountLikeAggregation {
private CountAggregation(NullPolicy nullPolicy) {
super(Kind.COUNT, nullPolicy);
}
Expand All @@ -497,7 +497,7 @@ static CountAggregation count(NullPolicy nullPolicy) {
return new CountAggregation(nullPolicy);
}

static class AnyAggregation extends NoParamAggregation {
static final class AnyAggregation extends NoParamAggregation {
private AnyAggregation() {
super(Kind.ANY);
}
Expand All @@ -512,7 +512,7 @@ static AnyAggregation any() {
return new AnyAggregation();
}

static class AllAggregation extends NoParamAggregation {
static final class AllAggregation extends NoParamAggregation {
private AllAggregation() {
super(Kind.ALL);
}
Expand All @@ -527,7 +527,7 @@ static AllAggregation all() {
return new AllAggregation();
}

static class SumOfSquaresAggregation extends NoParamAggregation {
static final class SumOfSquaresAggregation extends NoParamAggregation {
private SumOfSquaresAggregation() {
super(Kind.SUM_OF_SQUARES);
}
Expand All @@ -540,7 +540,7 @@ static SumOfSquaresAggregation sumOfSquares() {
return new SumOfSquaresAggregation();
}

static class MeanAggregation extends NoParamAggregation {
static final class MeanAggregation extends NoParamAggregation {
private MeanAggregation() {
super(Kind.MEAN);
}
Expand All @@ -553,7 +553,7 @@ static MeanAggregation mean() {
return new MeanAggregation();
}

static class M2Aggregation extends NoParamAggregation {
static final class M2Aggregation extends NoParamAggregation {
private M2Aggregation() {
super(Kind.M2);
}
Expand All @@ -566,7 +566,7 @@ static M2Aggregation M2() {
return new M2Aggregation();
}

static class VarianceAggregation extends DdofAggregation {
static final class VarianceAggregation extends DdofAggregation {
private VarianceAggregation(int ddof) {
super(Kind.VARIANCE, ddof);
}
Expand All @@ -589,7 +589,7 @@ static VarianceAggregation variance(int ddof) {
}


static class StandardDeviationAggregation extends DdofAggregation {
static final class StandardDeviationAggregation extends DdofAggregation {
private StandardDeviationAggregation(int ddof) {
super(Kind.STD, ddof);
}
Expand All @@ -611,7 +611,7 @@ static StandardDeviationAggregation standardDeviation(int ddof) {
return new StandardDeviationAggregation(ddof);
}

static class MedianAggregation extends NoParamAggregation {
static final class MedianAggregation extends NoParamAggregation {
private MedianAggregation() {
super(Kind.MEDIAN);
}
Expand All @@ -638,7 +638,7 @@ static QuantileAggregation quantile(QuantileMethod method, double ... quantiles)
return new QuantileAggregation(method, quantiles);
}

static class ArgMaxAggregation extends NoParamAggregation {
static final class ArgMaxAggregation extends NoParamAggregation {
private ArgMaxAggregation() {
super(Kind.ARGMAX);
}
Expand All @@ -654,7 +654,7 @@ static ArgMaxAggregation argMax() {
return new ArgMaxAggregation();
}

static class ArgMinAggregation extends NoParamAggregation {
static final class ArgMinAggregation extends NoParamAggregation {
private ArgMinAggregation() {
super(Kind.ARGMIN);
}
Expand All @@ -670,7 +670,7 @@ static ArgMinAggregation argMin() {
return new ArgMinAggregation();
}

static class NuniqueAggregation extends CountLikeAggregation {
static final class NuniqueAggregation extends CountLikeAggregation {
private NuniqueAggregation(NullPolicy nullPolicy) {
super(Kind.NUNIQUE, nullPolicy);
}
Expand Down Expand Up @@ -713,7 +713,7 @@ static NthAggregation nth(int offset, NullPolicy nullPolicy) {
return new NthAggregation(offset, nullPolicy);
}

static class RowNumberAggregation extends NoParamAggregation {
static final class RowNumberAggregation extends NoParamAggregation {
private RowNumberAggregation() {
super(Kind.ROW_NUMBER);
}
Expand All @@ -726,7 +726,7 @@ static RowNumberAggregation rowNumber() {
return new RowNumberAggregation();
}

static class RankAggregation extends NoParamAggregation {
static final class RankAggregation extends NoParamAggregation {
private RankAggregation() {
super(Kind.RANK);
}
Expand All @@ -739,7 +739,7 @@ static RankAggregation rank() {
return new RankAggregation();
}

static class DenseRankAggregation extends NoParamAggregation {
static final class DenseRankAggregation extends NoParamAggregation {
private DenseRankAggregation() {
super(Kind.DENSE_RANK);
}
Expand Down Expand Up @@ -819,7 +819,7 @@ static MergeSetsAggregation mergeSets(NullEquality nullEquality, NaNEquality nan
return new MergeSetsAggregation(nullEquality, nanEquality);
}

static class LeadAggregation extends LeadLagAggregation {
static final class LeadAggregation extends LeadLagAggregation {
private LeadAggregation(int offset, ColumnVector defaultOutput) {
super(Kind.LEAD, offset, defaultOutput);
}
Expand All @@ -835,7 +835,7 @@ static LeadAggregation lead(int offset, ColumnVector defaultOutput) {
return new LeadAggregation(offset, defaultOutput);
}

static class LagAggregation extends LeadLagAggregation {
static final class LagAggregation extends LeadLagAggregation {
private LagAggregation(int offset, ColumnVector defaultOutput) {
super(Kind.LAG, offset, defaultOutput);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* An Aggregation instance that also holds a column number and window metadata so the aggregation
* can be done over a specific window.
*/
public class AggregationOverWindow {
public final class AggregationOverWindow {
private final RollingAggregationOnColumn wrapped;
protected final WindowOptions windowOptions;

Expand Down
2 changes: 1 addition & 1 deletion java/src/main/java/ai/rapids/cudf/GroupByAggregation.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* An aggregation that can be used for a reduce.
*/
public class GroupByAggregation {
public final class GroupByAggregation {
private final Aggregation wrapped;

private GroupByAggregation(Aggregation wrapped) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* A GroupByAggregation for a specific column in a table.
*/
public class GroupByAggregationOnColumn {
public final class GroupByAggregationOnColumn {
protected final GroupByAggregation wrapped;
protected final int columnIndex;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* An aggregation that can be used for a grouped scan.
*/
public class GroupByScanAggregation {
public final class GroupByScanAggregation {
private final Aggregation wrapped;

private GroupByScanAggregation(Aggregation wrapped) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* A GroupByScanAggregation for a specific column in a table.
*/
public class GroupByScanAggregationOnColumn {
public final class GroupByScanAggregationOnColumn {
protected final GroupByScanAggregation wrapped;
protected final int columnIndex;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* An aggregation that can be used for a reduce.
*/
public class ReductionAggregation {
public final class ReductionAggregation {
private final Aggregation wrapped;

private ReductionAggregation(Aggregation wrapped) {
Expand Down
2 changes: 1 addition & 1 deletion java/src/main/java/ai/rapids/cudf/RollingAggregation.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* An aggregation that can be used on rolling windows.
*/
public class RollingAggregation {
public final class RollingAggregation {
private final Aggregation wrapped;

private RollingAggregation(Aggregation wrapped) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* A RollingAggregation for a specific column in a table.
*/
public class RollingAggregationOnColumn {
public final class RollingAggregationOnColumn {
protected final RollingAggregation wrapped;
protected final int columnIndex;

Expand Down
2 changes: 1 addition & 1 deletion java/src/main/java/ai/rapids/cudf/ScanAggregation.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* An aggregation that can be used for a scan.
*/
public class ScanAggregation {
public final class ScanAggregation {
private final Aggregation wrapped;

private ScanAggregation(Aggregation wrapped) {
Expand Down

0 comments on commit bfe2338

Please sign in to comment.