Search in sources :

Example 1 with HiveCacheContext

use of alluxio.client.hive.HiveCacheContext in project alluxio by Alluxio.

the class CacheContextTest method setters.

@Test
public void setters() {
    CacheContext context = CacheContext.defaults().setCacheQuota(new CacheQuota()).setCacheScope(CacheScope.create("db.table")).setCacheIdentifier("1234").setHiveCacheContext(new HiveCacheContext("db", "tb", "partition"));
    assertEquals(new CacheQuota(), context.getCacheQuota());
    assertEquals(CacheScope.create("db.table"), context.getCacheScope());
    assertEquals("1234", context.getCacheIdentifier());
    assertEquals(new HiveCacheContext("db", "tb", "partition"), context.getHiveCacheContext());
}
Also used : HiveCacheContext(alluxio.client.hive.HiveCacheContext) HiveCacheContext(alluxio.client.hive.HiveCacheContext) CacheQuota(alluxio.client.quota.CacheQuota) Test(org.junit.Test)

Aggregations

HiveCacheContext (alluxio.client.hive.HiveCacheContext)1 CacheQuota (alluxio.client.quota.CacheQuota)1 Test (org.junit.Test)1