Skip to content

Commit ad6f8df

Browse files
committed
Fix Formatting
1 parent 2c6e440 commit ad6f8df

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/main/java/org/apache/sysds/runtime/ooc/cache/OOCCacheManager.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import java.io.IOException;
3232
import java.nio.file.Files;
3333
import java.nio.file.Path;
34+
import java.util.ArrayList;
3435
import java.util.List;
3536
import java.util.concurrent.CompletableFuture;
3637
import java.util.concurrent.atomic.AtomicBoolean;
@@ -187,7 +188,7 @@ public static CompletableFuture<OOCStream.QueueCallback<IndexedMatrixValue>> req
187188
public static CompletableFuture<List<OOCStream.QueueCallback<IndexedMatrixValue>>> requestManyBlocks(List<BlockKey> keys) {
188189
return getCache().request(keys).thenApply(
189190
l -> {
190-
List<OOCStream.QueueCallback<IndexedMatrixValue>> out = new java.util.ArrayList<>(l.size());
191+
List<OOCStream.QueueCallback<IndexedMatrixValue>> out = new ArrayList<>(l.size());
191192
for (int i = 0; i < l.size(); i++)
192193
out.add(toCallback(l.get(i), keys.get(i), null));
193194
return out;
@@ -198,7 +199,7 @@ public static List<OOCStream.QueueCallback<IndexedMatrixValue>> tryRequestManyBl
198199
List<BlockEntry> entries = getCache().tryRequest(keys);
199200
if(entries == null)
200201
return null;
201-
List<OOCStream.QueueCallback<IndexedMatrixValue>> out = new java.util.ArrayList<>(entries.size());
202+
List<OOCStream.QueueCallback<IndexedMatrixValue>> out = new ArrayList<>(entries.size());
202203
for (int i = 0; i < entries.size(); i++)
203204
out.add(toCallback(entries.get(i), keys.get(i), null));
204205
return out;
@@ -208,7 +209,7 @@ public static CompletableFuture<List<OOCStream.QueueCallback<IndexedMatrixValue>
208209
return getCache().requestAnyOf(keys, n, sel)
209210
.thenApply(
210211
l -> {
211-
List<OOCStream.QueueCallback<IndexedMatrixValue>> out = new java.util.ArrayList<>(l.size());
212+
List<OOCStream.QueueCallback<IndexedMatrixValue>> out = new ArrayList<>(l.size());
212213
for (int i = 0; i < l.size(); i++) {
213214
BlockKey key = sel.size() == l.size() ? sel.get(i) : keys.get(i);
214215
out.add(toCallback(l.get(i), key, null));
@@ -218,7 +219,7 @@ public static CompletableFuture<List<OOCStream.QueueCallback<IndexedMatrixValue>
218219
}
219220

220221
private static OOCStream.QueueCallback<IndexedMatrixValue> toCallback(BlockEntry entry, BlockKey key, DMLRuntimeException failure) {
221-
if (entry.getData() instanceof java.util.List<?>) {
222+
if (entry.getData() instanceof List<?>) {
222223
CachedGroupCallback<IndexedMatrixValue> group = new CachedGroupCallback<>(entry, failure);
223224
if (key instanceof GroupedBlockKey gk) {
224225
OOCStream.QueueCallback<IndexedMatrixValue> sub = group.getCallback(gk.getGroupIndex());

src/main/java/org/apache/sysds/runtime/ooc/stream/TaskContext.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ public static void defer(Runnable deferred) {
4949
if(ctx._deferred == null)
5050
ctx._deferred = new ArrayDeque<>();
5151
ctx._deferred.add(deferred);
52-
//if(ctx._deferred.size() == 4 || ctx._deferred.size() % 100 == 0)
53-
// System.out.println("[WARN] Defer size bigger than 3 (" + ctx._deferred.size() + ")");
5452
}
5553

5654
public static boolean runDeferred() {

0 commit comments

Comments
 (0)