use of org.locationtech.geowave.datastore.hbase.config.HBaseRequiredOptions in project geowave by locationtech.
the class HBaseDataStoreFactory method createStore.
@Override
public DataStore createStore(final StoreFactoryOptions options) {
if (!(options instanceof HBaseRequiredOptions)) {
throw new AssertionError("Expected " + HBaseRequiredOptions.class.getSimpleName());
}
final HBaseRequiredOptions opts = (HBaseRequiredOptions) options;
if (opts.getStoreOptions() == null) {
opts.setStoreOptions(new HBaseOptions());
}
final DataStoreOperations hbaseOperations = helper.createOperations(opts);
return new HBaseDataStore((HBaseOperations) hbaseOperations, (HBaseOptions) opts.getStoreOptions());
}
use of org.locationtech.geowave.datastore.hbase.config.HBaseRequiredOptions in project geowave by locationtech.
the class HBaseStoreTestEnvironment method initOptions.
@Override
protected void initOptions(final StoreFactoryOptions options) {
final HBaseRequiredOptions hbaseRequiredOptions = (HBaseRequiredOptions) options;
hbaseRequiredOptions.setZookeeper(zookeeper);
}
Aggregations