use of org.apache.metron.indexing.dao.AccessConfig in project metron by apache.
the class HBaseDaoIntegrationTest method startHBase.
@BeforeClass
public static void startHBase() throws Exception {
AccessConfig accessConfig = new AccessConfig();
accessConfig.setMaxSearchResults(1000);
accessConfig.setMaxSearchGroups(1000);
accessConfig.setGlobalConfigSupplier(() -> new HashMap<String, Object>() {
{
put(HBASE_TABLE, TABLE_NAME);
put(HBASE_CF, COLUMN_FAMILY);
}
});
MockHBaseTableProvider.addToCache(TABLE_NAME, COLUMN_FAMILY);
accessConfig.setTableProvider(new MockHBaseTableProvider());
hbaseDao = new HBaseDao();
hbaseDao.init(accessConfig);
}
Aggregations