This commit is contained in:
@@ -34,7 +34,7 @@ public class CacheTestBean {
|
|||||||
Attribute idattr = Attribute.create(CacheTestBean.class, "pkgid");
|
Attribute idattr = Attribute.create(CacheTestBean.class, "pkgid");
|
||||||
Attribute nameattr = Attribute.create(CacheTestBean.class, "name");
|
Attribute nameattr = Attribute.create(CacheTestBean.class, "name");
|
||||||
Attribute priceattr = Attribute.create(CacheTestBean.class, "price");
|
Attribute priceattr = Attribute.create(CacheTestBean.class, "price");
|
||||||
EntityCache<CacheTestBean> cache = new EntityCache(EntityInfo.load(CacheTestBean.class, 0, true, null));
|
EntityCache<CacheTestBean> cache = new EntityCache(EntityInfo.load(CacheTestBean.class, 0, true,new Properties(), null));
|
||||||
cache.fullLoad(list);
|
cache.fullLoad(list);
|
||||||
|
|
||||||
System.out.println(cache.queryColumnMap("pkgid", FilterFunc.COUNT, "name", null));
|
System.out.println(cache.queryColumnMap("pkgid", FilterFunc.COUNT, "name", null));
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.redkale.test.source;
|
package org.redkale.test.source;
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
import org.redkale.source.VirtualEntity;
|
import org.redkale.source.VirtualEntity;
|
||||||
import org.redkale.source.FilterNodeBean;
|
import org.redkale.source.FilterNodeBean;
|
||||||
import org.redkale.source.FilterExpress;
|
import org.redkale.source.FilterExpress;
|
||||||
@@ -39,7 +40,7 @@ public class TestSourceCache {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
final EntityInfo<TestEntity> info = EntityInfo.load(TestEntity.class, 0, false, null);
|
final EntityInfo<TestEntity> info = EntityInfo.load(TestEntity.class, 0, false,new Properties(), null);
|
||||||
TestEntity[] entitys = new TestEntity[10_0000];
|
TestEntity[] entitys = new TestEntity[10_0000];
|
||||||
for (int i = 0; i < entitys.length; i++) {
|
for (int i = 0; i < entitys.length; i++) {
|
||||||
entitys[i] = new TestEntity(i + 1, "用户_" + (i + 1));
|
entitys[i] = new TestEntity(i + 1, "用户_" + (i + 1));
|
||||||
|
|||||||
Reference in New Issue
Block a user