From 9daaf26169246f7b3ecf7d3d8d7b430ce10457ba Mon Sep 17 00:00:00 2001 From: ascrutae Date: Fri, 4 Nov 2016 18:17:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E4=B8=8D=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E7=9A=84=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../storage/data/IndexMetaInfoCategory.java | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 skywalking-storage-center/skywalking-storage/src/main/java/com/a/eye/skywalking/storage/data/IndexMetaInfoCategory.java diff --git a/skywalking-storage-center/skywalking-storage/src/main/java/com/a/eye/skywalking/storage/data/IndexMetaInfoCategory.java b/skywalking-storage-center/skywalking-storage/src/main/java/com/a/eye/skywalking/storage/data/IndexMetaInfoCategory.java deleted file mode 100644 index 0a4742a2d..000000000 --- a/skywalking-storage-center/skywalking-storage/src/main/java/com/a/eye/skywalking/storage/data/IndexMetaInfoCategory.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.a.eye.skywalking.storage.data; - -import com.a.eye.skywalking.storage.block.index.BlockFinder; -import com.a.eye.skywalking.storage.data.index.IndexMetaInfo; - -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class IndexMetaInfoCategory { - - public static Map> categorizeByDataIndexTime(List indexMetaInfo, - BlockFinder finder) { - Map> categorizeMetaInfo = new HashMap>(); - - for (IndexMetaInfo info : indexMetaInfo) { - long timestamp = finder.find(info.getStartTime()); - - List metaInfos = categorizeMetaInfo.get(timestamp); - if (metaInfos == null) { - metaInfos.add(info); - categorizeMetaInfo.put(timestamp, metaInfos); - } - } - - return categorizeMetaInfo; - } -}