Search in sources :

Example 1 with HBaseRequiredOptions

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());
}
Also used : HBaseOptions(org.locationtech.geowave.datastore.hbase.config.HBaseOptions) DataStoreOperations(org.locationtech.geowave.core.store.operations.DataStoreOperations) HBaseRequiredOptions(org.locationtech.geowave.datastore.hbase.config.HBaseRequiredOptions)

Example 2 with HBaseRequiredOptions

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);
}
Also used : HBaseRequiredOptions(org.locationtech.geowave.datastore.hbase.config.HBaseRequiredOptions)

Aggregations

HBaseRequiredOptions (org.locationtech.geowave.datastore.hbase.config.HBaseRequiredOptions)2 DataStoreOperations (org.locationtech.geowave.core.store.operations.DataStoreOperations)1 HBaseOptions (org.locationtech.geowave.datastore.hbase.config.HBaseOptions)1