Skip to content

Commit 495be27

Browse files
committed
fixes
1 parent 4758bce commit 495be27

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

src/main/java/org/apache/sysds/runtime/compress/colgroup/ColGroupUncompressedArray.java

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,35 +24,32 @@
2424
import org.apache.sysds.runtime.matrix.data.MatrixBlock;
2525

2626
/**
27-
* Special sideways Compressed column group not supposed to be used outside of the compressed transform encode.
27+
* Special sideways compressed column group not supposed to be used outside of the compressed transform encode.
2828
*/
2929
public class ColGroupUncompressedArray extends ColGroupUncompressed {
30-
30+
3131
public final Array<?> array;
3232
public final int id; // columnID
3333

34-
public ColGroupUncompressedArray(Array<?> data, int id, IColIndex colIndexes){
34+
public ColGroupUncompressedArray(Array<?> data, int id, IColIndex colIndexes) {
3535
super(null, colIndexes);
3636
this.array = data;
3737
this.id = id;
3838
}
3939

40-
41-
@Override
42-
public int getNumValues(){
40+
@Override
41+
public int getNumValues() {
4342
return array.size();
4443
}
4544

46-
4745
@Override
48-
public long estimateInMemorySize(){
46+
public long estimateInMemorySize() {
4947
// not accurate estimate, but guaranteed larger.
50-
return MatrixBlock.estimateSizeInMemory(array.size(),1,array.size()) + 80;
48+
return MatrixBlock.estimateSizeInMemory(array.size(), 1, array.size()) + 80;
5149
}
5250

53-
54-
@Override
55-
public String toString(){
51+
@Override
52+
public String toString() {
5653
return "UncompressedArrayGroup: " + id + " " + _colIndexes;
5754
}
5855

0 commit comments

Comments
 (0)