public class org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache extends java.lang.Object
{
public void <init>()
{
org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache v;
v := @this: org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public void testExecutionCacheCreationFromGuavaCache()
{
java.util.concurrent.TimeUnit v;
org.finos.legend.engine.plan.execution.cache.ExecutionCache v;
com.google.common.cache.CacheBuilder v, v;
com.google.common.cache.Cache v;
org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache v;
v := @this: org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache;
v = staticinvoke <com.google.common.cache.CacheBuilder: com.google.common.cache.CacheBuilder newBuilder()>();
v = <java.util.concurrent.TimeUnit: java.util.concurrent.TimeUnit MINUTES>;
v = virtualinvoke v.<com.google.common.cache.CacheBuilder: com.google.common.cache.CacheBuilder expireAfterWrite(long,java.util.concurrent.TimeUnit)>(1L, v);
v = virtualinvoke v.<com.google.common.cache.CacheBuilder: com.google.common.cache.Cache build()>();
v = staticinvoke <org.finos.legend.engine.plan.execution.cache.ExecutionCacheBuilder: org.finos.legend.engine.plan.execution.cache.ExecutionCache fromGuavaCache(com.google.common.cache.Cache)>(v);
staticinvoke <org.junit.Assert: void assertNotNull(java.lang.Object)>(v);
return;
}
public void testExecutionCacheFromGuavaCacheGet()
{
java.lang.Integer v, v, v, v, v, v, v, v;
byte v, v;
java.util.Map v, v;
org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache v;
boolean v, v;
java.util.List v, v;
com.google.common.cache.CacheBuilder v, v, v;
java.lang.Integer[] v;
java.util.concurrent.Callable v, v, v;
long v, v, v, v, v, v, v, v;
org.finos.legend.engine.plan.execution.cache.ExecutionCache v;
org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats v, v, v, v, v, v, v, v;
int v, v;
double v;
java.util.concurrent.TimeUnit v;
java.lang.Object v, v;
com.google.common.cache.Cache v;
v := @this: org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache;
v = staticinvoke <com.google.common.cache.CacheBuilder: com.google.common.cache.CacheBuilder newBuilder()>();
v = virtualinvoke v.<com.google.common.cache.CacheBuilder: com.google.common.cache.CacheBuilder recordStats()>();
v = <java.util.concurrent.TimeUnit: java.util.concurrent.TimeUnit MINUTES>;
v = virtualinvoke v.<com.google.common.cache.CacheBuilder: com.google.common.cache.CacheBuilder expireAfterWrite(long,java.util.concurrent.TimeUnit)>(1L, v);
v = virtualinvoke v.<com.google.common.cache.CacheBuilder: com.google.common.cache.Cache build()>();
v = staticinvoke <org.finos.legend.engine.plan.execution.cache.ExecutionCacheBuilder: org.finos.legend.engine.plan.execution.cache.ExecutionCache fromGuavaCache(com.google.common.cache.Cache)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
v = staticinvoke <org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache$lambda_testExecutionCacheFromGuavaCacheGet_0__28: java.util.concurrent.Callable bootstrap$()>();
interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object get(java.lang.Object,java.util.concurrent.Callable)>(v, v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object getIfPresent(java.lang.Object)>(v);
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("Value 1", v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
v = staticinvoke <java.util.Collections: java.util.List singletonList(java.lang.Object)>(v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.util.Map getAllPresent(java.lang.Iterable)>(v);
v = interfaceinvoke v.<java.util.Map: int size()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(1L, v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v = staticinvoke <org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache$lambda_testExecutionCacheFromGuavaCacheGet_1__29: java.util.concurrent.Callable bootstrap$()>();
interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object get(java.lang.Object,java.util.concurrent.Callable)>(v, v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object getIfPresent(java.lang.Object)>(v);
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("Value 2", v);
v = newarray (java.lang.Integer)[2];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
v[0] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v[1] = v;
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.util.Map getAllPresent(java.lang.Iterable)>(v);
v = interfaceinvoke v.<java.util.Map: int size()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(2L, v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(3);
v = staticinvoke <org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache$lambda_testExecutionCacheFromGuavaCacheGet_2__30: java.util.concurrent.Callable bootstrap$()>();
interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object get(java.lang.Object,java.util.concurrent.Callable)>(v, v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: long estimatedSize()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(3L, v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats stats()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long requestCount()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(8L, v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats stats()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long hitCount()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(5L, v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats stats()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long missCount()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(3L, v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats stats()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long loadCount()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(3L, v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats stats()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long loadSuccessCount()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(3L, v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats stats()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long loadFailureCount()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(0L, v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats stats()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long totalLoadTime()>();
v = 3000L cmp v;
if v > 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
staticinvoke <org.junit.Assert: void assertTrue(boolean)>(v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats stats()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: double averageLoadPenalty()>();
v = 1000.0 cmpg v;
if v > 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
staticinvoke <org.junit.Assert: void assertTrue(boolean)>(v);
return;
}
public void testExecutionCacheFromGuavaCachePut()
{
java.lang.Integer v, v, v, v, v, v, v, v;
java.util.Map v, v;
org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache v;
java.util.List v, v;
com.google.common.cache.CacheBuilder v, v, v;
java.lang.Integer[] v;
long v, v, v, v, v, v, v, v;
org.eclipse.collections.api.factory.map.MutableMapFactory v;
org.finos.legend.engine.plan.execution.cache.ExecutionCache v;
org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats v, v, v, v, v, v, v, v;
org.eclipse.collections.api.map.MutableMap v;
int v, v;
double v;
java.util.concurrent.TimeUnit v;
java.lang.Object v, v;
com.google.common.cache.Cache v;
v := @this: org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache;
v = staticinvoke <com.google.common.cache.CacheBuilder: com.google.common.cache.CacheBuilder newBuilder()>();
v = virtualinvoke v.<com.google.common.cache.CacheBuilder: com.google.common.cache.CacheBuilder recordStats()>();
v = <java.util.concurrent.TimeUnit: java.util.concurrent.TimeUnit MINUTES>;
v = virtualinvoke v.<com.google.common.cache.CacheBuilder: com.google.common.cache.CacheBuilder expireAfterWrite(long,java.util.concurrent.TimeUnit)>(1L, v);
v = virtualinvoke v.<com.google.common.cache.CacheBuilder: com.google.common.cache.Cache build()>();
v = staticinvoke <org.finos.legend.engine.plan.execution.cache.ExecutionCacheBuilder: org.finos.legend.engine.plan.execution.cache.ExecutionCache fromGuavaCache(com.google.common.cache.Cache)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: void put(java.lang.Object,java.lang.Object)>(v, "Value 1");
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object getIfPresent(java.lang.Object)>(v);
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("Value 1", v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
v = staticinvoke <java.util.Collections: java.util.List singletonList(java.lang.Object)>(v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.util.Map getAllPresent(java.lang.Iterable)>(v);
v = interfaceinvoke v.<java.util.Map: int size()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(1L, v);
v = <org.eclipse.collections.api.factory.Maps: org.eclipse.collections.api.factory.map.MutableMapFactory mutable>;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(3);
v = interfaceinvoke v.<org.eclipse.collections.api.factory.map.MutableMapFactory: org.eclipse.collections.api.map.MutableMap 'with'(java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object)>(v, "Value 2", v, "Value 3");
interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: void putAll(java.util.Map)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object getIfPresent(java.lang.Object)>(v);
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("Value 2", v);
v = newarray (java.lang.Integer)[2];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
v[0] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v[1] = v;
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.util.Map getAllPresent(java.lang.Iterable)>(v);
v = interfaceinvoke v.<java.util.Map: int size()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(2L, v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: long estimatedSize()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(3L, v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats stats()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long requestCount()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(5L, v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats stats()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long hitCount()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(5L, v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats stats()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long missCount()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(0L, v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats stats()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long loadCount()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(0L, v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats stats()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long loadSuccessCount()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(0L, v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats stats()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long loadFailureCount()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(0L, v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats stats()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long totalLoadTime()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(0L, v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats stats()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: double averageLoadPenalty()>();
staticinvoke <org.junit.Assert: void assertEquals(double,double,double)>(0.0, v, 0.0);
return;
}
public void testExecutionCacheFromGuavaCacheInvalidate()
{
java.lang.Integer v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v;
java.util.Map v, v, v;
org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache v;
java.util.List v, v, v, v;
com.google.common.cache.CacheBuilder v, v, v;
java.lang.Integer[] v, v, v, v;
long v, v, v, v;
org.eclipse.collections.api.factory.map.MutableMapFactory v;
org.finos.legend.engine.plan.execution.cache.ExecutionCache v;
org.eclipse.collections.api.map.MutableMap v;
int v, v, v;
java.util.concurrent.TimeUnit v;
com.google.common.cache.Cache v;
v := @this: org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache;
v = staticinvoke <com.google.common.cache.CacheBuilder: com.google.common.cache.CacheBuilder newBuilder()>();
v = virtualinvoke v.<com.google.common.cache.CacheBuilder: com.google.common.cache.CacheBuilder recordStats()>();
v = <java.util.concurrent.TimeUnit: java.util.concurrent.TimeUnit MINUTES>;
v = virtualinvoke v.<com.google.common.cache.CacheBuilder: com.google.common.cache.CacheBuilder expireAfterWrite(long,java.util.concurrent.TimeUnit)>(1L, v);
v = virtualinvoke v.<com.google.common.cache.CacheBuilder: com.google.common.cache.Cache build()>();
v = staticinvoke <org.finos.legend.engine.plan.execution.cache.ExecutionCacheBuilder: org.finos.legend.engine.plan.execution.cache.ExecutionCache fromGuavaCache(com.google.common.cache.Cache)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: void put(java.lang.Object,java.lang.Object)>(v, "Value 1");
v = <org.eclipse.collections.api.factory.Maps: org.eclipse.collections.api.factory.map.MutableMapFactory mutable>;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(3);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(4);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(5);
v = interfaceinvoke v.<org.eclipse.collections.api.factory.map.MutableMapFactory: org.eclipse.collections.api.map.MutableMap 'with'(java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object)>(v, "Value 2", v, "Value 3", v, "Value 4", v, "Value 5");
interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: void putAll(java.util.Map)>(v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: long estimatedSize()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(5L, v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: void invalidate(java.lang.Object)>(v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: long estimatedSize()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(4L, v);
v = newarray (java.lang.Integer)[4];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v[0] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(3);
v[1] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(4);
v[2] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(5);
v[3] = v;
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.util.Map getAllPresent(java.lang.Iterable)>(v);
v = interfaceinvoke v.<java.util.Map: int size()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(4L, v);
v = newarray (java.lang.Integer)[2];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v[0] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(3);
v[1] = v;
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: void invalidateAll(java.lang.Iterable)>(v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: long estimatedSize()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(2L, v);
v = newarray (java.lang.Integer)[2];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(4);
v[0] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(5);
v[1] = v;
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.util.Map getAllPresent(java.lang.Iterable)>(v);
v = interfaceinvoke v.<java.util.Map: int size()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(2L, v);
interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: void invalidateAll()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: long estimatedSize()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(0L, v);
v = newarray (java.lang.Integer)[5];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
v[0] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v[1] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(3);
v[2] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(4);
v[3] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(5);
v[4] = v;
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.util.Map getAllPresent(java.lang.Iterable)>(v);
v = interfaceinvoke v.<java.util.Map: int size()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(0L, v);
return;
}
public void testExecutionCacheFromGuavaCacheStatsString()
{
java.lang.Integer v, v, v, v, v, v, v, v;
java.util.Map v, v;
org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache v;
java.util.List v, v;
com.google.common.cache.CacheBuilder v, v, v;
java.lang.Integer[] v;
java.util.concurrent.Callable v, v, v;
long v, v, v, v, v, v, v, v;
org.finos.legend.engine.plan.execution.cache.ExecutionCache v;
org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats v;
int v, v;
java.lang.String v, v;
double v, v, v, v;
java.util.concurrent.TimeUnit v;
java.lang.Object v, v;
com.google.common.cache.Cache v;
v := @this: org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache;
v = staticinvoke <com.google.common.cache.CacheBuilder: com.google.common.cache.CacheBuilder newBuilder()>();
v = virtualinvoke v.<com.google.common.cache.CacheBuilder: com.google.common.cache.CacheBuilder recordStats()>();
v = <java.util.concurrent.TimeUnit: java.util.concurrent.TimeUnit MINUTES>;
v = virtualinvoke v.<com.google.common.cache.CacheBuilder: com.google.common.cache.CacheBuilder expireAfterWrite(long,java.util.concurrent.TimeUnit)>(1L, v);
v = virtualinvoke v.<com.google.common.cache.CacheBuilder: com.google.common.cache.Cache build()>();
v = staticinvoke <org.finos.legend.engine.plan.execution.cache.ExecutionCacheBuilder: org.finos.legend.engine.plan.execution.cache.ExecutionCache fromGuavaCache(com.google.common.cache.Cache)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
v = staticinvoke <org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache$lambda_testExecutionCacheFromGuavaCacheStatsString_3__31: java.util.concurrent.Callable bootstrap$()>();
interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object get(java.lang.Object,java.util.concurrent.Callable)>(v, v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object getIfPresent(java.lang.Object)>(v);
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("Value 1", v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
v = staticinvoke <java.util.Collections: java.util.List singletonList(java.lang.Object)>(v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.util.Map getAllPresent(java.lang.Iterable)>(v);
v = interfaceinvoke v.<java.util.Map: int size()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(1L, v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v = staticinvoke <org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache$lambda_testExecutionCacheFromGuavaCacheStatsString_4__32: java.util.concurrent.Callable bootstrap$()>();
interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object get(java.lang.Object,java.util.concurrent.Callable)>(v, v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object getIfPresent(java.lang.Object)>(v);
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("Value 2", v);
v = newarray (java.lang.Integer)[2];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
v[0] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v[1] = v;
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.util.Map getAllPresent(java.lang.Iterable)>(v);
v = interfaceinvoke v.<java.util.Map: int size()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(2L, v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(3);
v = staticinvoke <org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache$lambda_testExecutionCacheFromGuavaCacheStatsString_5__33: java.util.concurrent.Callable bootstrap$()>();
interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object get(java.lang.Object,java.util.concurrent.Callable)>(v, v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats stats()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long requestCount()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long hitCount()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long missCount()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long loadCount()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long loadSuccessCount()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long loadFailureCount()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long evictionCount()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: double hitRate()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: double missRate()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: double loadFailureRate()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: double averageLoadPenalty()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long totalLoadTime()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (long,long,long,long,long,long,long,double,double,double,double,long)>(v, v, v, v, v, v, v, v, v, v, v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("ExecutionCacheStats(\n   requestCount = \u,\n   hitCount = \u,\n   missCount = \u,\n   loadCount = \u,\n   loadSuccessCount = \u,\n   loadFailureCount = \u,\n   evictionCount = \u0001\n   hitRate = \u,\n   missRate = \u,\n   loadFailureRate = \u,\n   averageLoadPenalty = \u,\n   totalLoadTime = \u,\n)");
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: java.lang.String toString()>();
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>(v, v);
return;
}
public void testExecutionCacheFromGuavaCacheTTL() throws java.lang.InterruptedException
{
java.lang.Integer v, v, v, v, v, v, v, v, v, v, v, v, v, v;
org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache v;
com.google.common.cache.CacheBuilder v, v, v;
java.util.concurrent.Callable v, v, v;
long v, v, v;
org.finos.legend.engine.plan.execution.cache.ExecutionCache v;
org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats v;
java.util.concurrent.TimeUnit v;
java.lang.Object v, v, v, v, v, v, v, v, v, v, v;
com.google.common.cache.Cache v;
v := @this: org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache;
v = staticinvoke <com.google.common.cache.CacheBuilder: com.google.common.cache.CacheBuilder newBuilder()>();
v = virtualinvoke v.<com.google.common.cache.CacheBuilder: com.google.common.cache.CacheBuilder recordStats()>();
v = <java.util.concurrent.TimeUnit: java.util.concurrent.TimeUnit SECONDS>;
v = virtualinvoke v.<com.google.common.cache.CacheBuilder: com.google.common.cache.CacheBuilder expireAfterWrite(long,java.util.concurrent.TimeUnit)>(10L, v);
v = virtualinvoke v.<com.google.common.cache.CacheBuilder: com.google.common.cache.Cache build()>();
v = staticinvoke <org.finos.legend.engine.plan.execution.cache.ExecutionCacheBuilder: org.finos.legend.engine.plan.execution.cache.ExecutionCache fromGuavaCache(com.google.common.cache.Cache)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
v = staticinvoke <org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache$lambda_testExecutionCacheFromGuavaCacheTTL_6__34: java.util.concurrent.Callable bootstrap$()>();
interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object get(java.lang.Object,java.util.concurrent.Callable)>(v, v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: long estimatedSize()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(1L, v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object getIfPresent(java.lang.Object)>(v);
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("Value 1", v);
staticinvoke <java.lang.Thread: void sleep(long)>(5000L);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v = staticinvoke <org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache$lambda_testExecutionCacheFromGuavaCacheTTL_7__35: java.util.concurrent.Callable bootstrap$()>();
interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object get(java.lang.Object,java.util.concurrent.Callable)>(v, v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: long estimatedSize()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(2L, v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object getIfPresent(java.lang.Object)>(v);
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("Value 2", v);
staticinvoke <java.lang.Thread: void sleep(long)>(6000L);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object getIfPresent(java.lang.Object)>(v);
staticinvoke <org.junit.Assert: void assertNull(java.lang.Object)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object getIfPresent(java.lang.Object)>(v);
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("Value 2", v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(3);
v = staticinvoke <org.finos.legend.engine.plan.execution.cache.test.TestExecutionCache$lambda_testExecutionCacheFromGuavaCacheTTL_8__36: java.util.concurrent.Callable bootstrap$()>();
interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object get(java.lang.Object,java.util.concurrent.Callable)>(v, v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(3);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object getIfPresent(java.lang.Object)>(v);
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("Value 3", v);
staticinvoke <java.lang.Thread: void sleep(long)>(5000L);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object getIfPresent(java.lang.Object)>(v);
staticinvoke <org.junit.Assert: void assertNull(java.lang.Object)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object getIfPresent(java.lang.Object)>(v);
staticinvoke <org.junit.Assert: void assertNull(java.lang.Object)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(3);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object getIfPresent(java.lang.Object)>(v);
staticinvoke <org.junit.Assert: void assertEquals(java.lang.Object,java.lang.Object)>("Value 3", v);
staticinvoke <java.lang.Thread: void sleep(long)>(6000L);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(1);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object getIfPresent(java.lang.Object)>(v);
staticinvoke <org.junit.Assert: void assertNull(java.lang.Object)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(2);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object getIfPresent(java.lang.Object)>(v);
staticinvoke <org.junit.Assert: void assertNull(java.lang.Object)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(3);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: java.lang.Object getIfPresent(java.lang.Object)>(v);
staticinvoke <org.junit.Assert: void assertNull(java.lang.Object)>(v);
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCache: org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats stats()>();
v = interfaceinvoke v.<org.finos.legend.engine.plan.execution.cache.ExecutionCacheStats: long evictionCount()>();
staticinvoke <org.junit.Assert: void assertEquals(long,long)>(3L, v);
return;
}
}