Skip to content

Commit 67ad0d8

Browse files
committed
map to char refine
1 parent 058187f commit 67ad0d8

File tree

1 file changed

+3
-5
lines changed
  • src/main/java/org/apache/sysds/runtime/compress/colgroup/mapping

1 file changed

+3
-5
lines changed

src/main/java/org/apache/sysds/runtime/compress/colgroup/mapping/MapToChar.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,12 @@ public void write(DataOutput out) throws IOException {
139139

140140
}
141141

142-
143142
protected static void writeChars(DataOutput out, char[] _data_c) throws IOException {
144143
final int BS = 100;
145144
if(_data_c.length > BS) {
146145
final byte[] buff = new byte[BS * 2];
147146
for(int i = 0; i < _data_c.length;) {
148-
i = writeCharsBlock(out,_data_c, BS, buff, i);
147+
i = writeCharsBlock(out, _data_c, BS, buff, i);
149148
}
150149
}
151150
else {
@@ -154,7 +153,8 @@ protected static void writeChars(DataOutput out, char[] _data_c) throws IOExcept
154153
}
155154
}
156155

157-
private static int writeCharsBlock(DataOutput out, char[] _data_c, final int BS, final byte[] buff, int i) throws IOException {
156+
private static int writeCharsBlock(DataOutput out, char[] _data_c, final int BS, final byte[] buff, int i)
157+
throws IOException {
158158
if(i + BS <= _data_c.length) {
159159
for(int o = 0; o < BS; o++) {
160160
IOUtilFunctions.shortToBa(_data_c[i++], buff, o * 2);
@@ -260,7 +260,6 @@ private void getCountsBy8P(int[] ret, int s, int e) {
260260
}
261261
}
262262

263-
264263
@Override
265264
public AMapToData resize(int unique) {
266265
final int size = _data.length;
@@ -336,7 +335,6 @@ public AMapToData appendN(IMapToDataGroup[] d) {
336335
return new MapToChar(getUnique(), ret);
337336
}
338337

339-
340338
@Override
341339
public boolean equals(AMapToData e) {
342340
return e instanceof MapToChar && //

0 commit comments

Comments
 (0)