Search in sources :

Example 1 with HBaseOptions

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));
}
Also used : HBaseDataStore(org.locationtech.geowave.datastore.hbase.HBaseDataStore) HBaseOptions(org.locationtech.geowave.datastore.hbase.config.HBaseOptions) IndexStoreImpl(org.locationtech.geowave.core.store.metadata.IndexStoreImpl) BigTableOptions(org.locationtech.geowave.datastore.bigtable.config.BigTableOptions) AdapterIndexMappingStoreImpl(org.locationtech.geowave.core.store.metadata.AdapterIndexMappingStoreImpl) InternalAdapterStoreImpl(org.locationtech.geowave.core.store.metadata.InternalAdapterStoreImpl) PropertyStoreImpl(org.locationtech.geowave.core.store.metadata.PropertyStoreImpl) BigTableOperations(org.locationtech.geowave.datastore.bigtable.operations.BigTableOperations) AdapterStoreImpl(org.locationtech.geowave.core.store.metadata.AdapterStoreImpl) InternalAdapterStoreImpl(org.locationtech.geowave.core.store.metadata.InternalAdapterStoreImpl) DataStatisticsStoreImpl(org.locationtech.geowave.core.store.metadata.DataStatisticsStoreImpl)

Example 2 with 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());
}
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)

Aggregations

HBaseOptions (org.locationtech.geowave.datastore.hbase.config.HBaseOptions)2 AdapterIndexMappingStoreImpl (org.locationtech.geowave.core.store.metadata.AdapterIndexMappingStoreImpl)1 AdapterStoreImpl (org.locationtech.geowave.core.store.metadata.AdapterStoreImpl)1 DataStatisticsStoreImpl (org.locationtech.geowave.core.store.metadata.DataStatisticsStoreImpl)1 IndexStoreImpl (org.locationtech.geowave.core.store.metadata.IndexStoreImpl)1 InternalAdapterStoreImpl (org.locationtech.geowave.core.store.metadata.InternalAdapterStoreImpl)1 PropertyStoreImpl (org.locationtech.geowave.core.store.metadata.PropertyStoreImpl)1 DataStoreOperations (org.locationtech.geowave.core.store.operations.DataStoreOperations)1 BigTableOptions (org.locationtech.geowave.datastore.bigtable.config.BigTableOptions)1 BigTableOperations (org.locationtech.geowave.datastore.bigtable.operations.BigTableOperations)1 HBaseDataStore (org.locationtech.geowave.datastore.hbase.HBaseDataStore)1 HBaseRequiredOptions (org.locationtech.geowave.datastore.hbase.config.HBaseRequiredOptions)1