Skip to content

Commit c929843

Browse files
committed
[MINOR] Cleanup code quality (tab formatting, method annotations)
1 parent e500277 commit c929843

File tree

9 files changed

+2434
-2440
lines changed

9 files changed

+2434
-2440
lines changed

src/main/java/org/apache/sysds/hops/cost/CostEstimatorStaticRuntime.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ public class CostEstimatorStaticRuntime extends CostEstimator
6262
private static final double DEFAULT_MBS_HDFSWRITE_TEXT_SPARSE = 30;
6363

6464
@Override
65-
@SuppressWarnings("unused")
6665
protected double getCPInstTimeEstimate( Instruction inst, VarStats[] vs, String[] args )
6766
{
6867
CPInstruction cpinst = (CPInstruction)inst;

src/main/java/org/apache/sysds/resource/cost/CPCostUtils.java

Lines changed: 864 additions & 864 deletions
Large diffs are not rendered by default.

src/main/java/org/apache/sysds/resource/cost/SparkCostUtils.java

Lines changed: 764 additions & 764 deletions
Large diffs are not rendered by default.

src/main/java/org/apache/sysds/runtime/functionobjects/RollIndex.java

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -29,37 +29,37 @@
2929
* in ReorgOperator in order to identify sort operations.
3030
*/
3131
public class RollIndex extends IndexFunction {
32-
private static final long serialVersionUID = -8446389232078905200L;
32+
private static final long serialVersionUID = -8446389232078905200L;
3333

34-
private final int _shift;
34+
private final int _shift;
3535

36-
public RollIndex(int shift) {
37-
_shift = shift;
38-
}
36+
public RollIndex(int shift) {
37+
_shift = shift;
38+
}
3939

40-
public int getShift() {
41-
return _shift;
42-
}
40+
public int getShift() {
41+
return _shift;
42+
}
4343

44-
@Override
45-
public boolean computeDimension(int row, int col, CellIndex retDim) {
46-
retDim.set(row, col);
47-
return false;
48-
}
44+
@Override
45+
public boolean computeDimension(int row, int col, CellIndex retDim) {
46+
retDim.set(row, col);
47+
return false;
48+
}
4949

50-
@Override
51-
public boolean computeDimension(DataCharacteristics in, DataCharacteristics out) {
52-
out.set(in.getRows(), in.getCols(), in.getBlocksize(), in.getNonZeros());
53-
return false;
54-
}
50+
@Override
51+
public boolean computeDimension(DataCharacteristics in, DataCharacteristics out) {
52+
out.set(in.getRows(), in.getCols(), in.getBlocksize(), in.getNonZeros());
53+
return false;
54+
}
5555

56-
@Override
57-
public void execute(MatrixIndexes in, MatrixIndexes out) {
58-
throw new NotImplementedException();
59-
}
56+
@Override
57+
public void execute(MatrixIndexes in, MatrixIndexes out) {
58+
throw new NotImplementedException();
59+
}
6060

61-
@Override
62-
public void execute(CellIndex in, CellIndex out) {
63-
throw new NotImplementedException();
64-
}
61+
@Override
62+
public void execute(CellIndex in, CellIndex out) {
63+
throw new NotImplementedException();
64+
}
6565
}

src/test/java/org/apache/sysds/performance/compression/TransformPerf.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ private void updateGen() {
7575
}
7676
}
7777

78-
@SuppressWarnings("unused")
7978
private void detectSchema(int k) {
8079
FrameBlock fb = gen.take();
8180
long in = fb.getInMemorySize();
@@ -84,7 +83,6 @@ private void detectSchema(int k) {
8483
ret.add(new InOut(in, out));
8584
}
8685

87-
@SuppressWarnings("unused")
8886
private void detectAndApply(int k) {
8987
FrameBlock fb = gen.take();
9088
long in = fb.getInMemorySize();
@@ -94,7 +92,6 @@ private void detectAndApply(int k) {
9492
ret.add(new InOut(in, outS));
9593
}
9694

97-
@SuppressWarnings("unused")
9895
private void transformEncode(int k) {
9996
FrameBlock fb = gen.take();
10097
long in = fb.getInMemorySize();

0 commit comments

Comments
 (0)