Skip to content

Commit 528d6d2

Browse files
committed
修正了Bean反射的一个性能问题,待测试效率
1 parent fb6c732 commit 528d6d2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/com/skey/evehbase/util/HResultUtils.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ public static <T> List<T> parse(Collection<Result> results, Class<T> clazz) {
6464
byte[] qualifier = Bytes.toBytes(cfField.getName());
6565
cfField.set(cfObj, Bytes.toString(result.getValue(family, qualifier)));
6666
}
67+
// FIXME: 下面的代码待测试
68+
// for (Field cfField : value.keySet()) {
69+
// byte[] family = Bytes.toBytes(key.getName());
70+
// byte[] qualifier = Bytes.toBytes(cfField.getName());
71+
// cfField.set(cfObj, Bytes.toString(result.getValue(family, qualifier)));
72+
// }
6773
key.set(obj, cfObj);
6874
}
6975
}

0 commit comments

Comments
 (0)