use of org.locationtech.geowave.datastore.hbase.config.HBaseOptions in project geowave by locationtech.
the class BigTableDataStoreFactory method createStore.
@Override
public DataStore createStore(final StoreFactoryOptions options) {
if (!(options instanceof BigTableOptions)) {
throw new AssertionError("Expected " + BigTableOptions.class.getSimpleName());
}
final BigTableOperations bigtableOperations = (BigTableOperations) helper.createOperations(options);
final HBaseOptions hbaseOptions = ((BigTableOptions) options).getHBaseOptions();
// BigTableDataStatisticsStore
return new HBaseDataStore(new IndexStoreImpl(bigtableOperations, hbaseOptions), new AdapterStoreImpl(bigtableOperations, hbaseOptions), new DataStatisticsStoreImpl(bigtableOperations, hbaseOptions), new AdapterIndexMappingStoreImpl(bigtableOperations, hbaseOptions), bigtableOperations, hbaseOptions, new InternalAdapterStoreImpl(bigtableOperations), new PropertyStoreImpl(bigtableOperations, hbaseOptions));
}
use of org.locationtech.geowave.datastore.hbase.config.HBaseOptions 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());
}
Aggregations