Skip to content

Commit

Permalink
[MINOR] Cleanup code quality (tab formatting, method annotations)
Browse files Browse the repository at this point in the history
  • Loading branch information
mboehm7 committed Nov 17, 2024
1 parent e500277 commit c929843
Show file tree
Hide file tree
Showing 9 changed files with 2,434 additions and 2,440 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public class CostEstimatorStaticRuntime extends CostEstimator
private static final double DEFAULT_MBS_HDFSWRITE_TEXT_SPARSE = 30;

@Override
@SuppressWarnings("unused")
protected double getCPInstTimeEstimate( Instruction inst, VarStats[] vs, String[] args )
{
CPInstruction cpinst = (CPInstruction)inst;
Expand Down
1,728 changes: 864 additions & 864 deletions src/main/java/org/apache/sysds/resource/cost/CPCostUtils.java

Large diffs are not rendered by default.

1,528 changes: 764 additions & 764 deletions src/main/java/org/apache/sysds/resource/cost/SparkCostUtils.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -29,37 +29,37 @@
* in ReorgOperator in order to identify sort operations.
*/
public class RollIndex extends IndexFunction {
private static final long serialVersionUID = -8446389232078905200L;
private static final long serialVersionUID = -8446389232078905200L;

private final int _shift;
private final int _shift;

public RollIndex(int shift) {
_shift = shift;
}
public RollIndex(int shift) {
_shift = shift;
}

public int getShift() {
return _shift;
}
public int getShift() {
return _shift;
}

@Override
public boolean computeDimension(int row, int col, CellIndex retDim) {
retDim.set(row, col);
return false;
}
@Override
public boolean computeDimension(int row, int col, CellIndex retDim) {
retDim.set(row, col);
return false;
}

@Override
public boolean computeDimension(DataCharacteristics in, DataCharacteristics out) {
out.set(in.getRows(), in.getCols(), in.getBlocksize(), in.getNonZeros());
return false;
}
@Override
public boolean computeDimension(DataCharacteristics in, DataCharacteristics out) {
out.set(in.getRows(), in.getCols(), in.getBlocksize(), in.getNonZeros());
return false;
}

@Override
public void execute(MatrixIndexes in, MatrixIndexes out) {
throw new NotImplementedException();
}
@Override
public void execute(MatrixIndexes in, MatrixIndexes out) {
throw new NotImplementedException();
}

@Override
public void execute(CellIndex in, CellIndex out) {
throw new NotImplementedException();
}
@Override
public void execute(CellIndex in, CellIndex out) {
throw new NotImplementedException();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ private void updateGen() {
}
}

@SuppressWarnings("unused")
private void detectSchema(int k) {
FrameBlock fb = gen.take();
long in = fb.getInMemorySize();
Expand All @@ -84,7 +83,6 @@ private void detectSchema(int k) {
ret.add(new InOut(in, out));
}

@SuppressWarnings("unused")
private void detectAndApply(int k) {
FrameBlock fb = gen.take();
long in = fb.getInMemorySize();
Expand All @@ -94,7 +92,6 @@ private void detectAndApply(int k) {
ret.add(new InOut(in, outS));
}

@SuppressWarnings("unused")
private void transformEncode(int k) {
FrameBlock fb = gen.take();
long in = fb.getInMemorySize();
Expand Down
Loading

0 comments on commit c929843

Please sign in to comment.