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());
}
Aggregations