public CassandraDataStore(final CassandraOperations operations, final CassandraOptions options) { super( new IndexStoreImpl(operations, options), new AdapterStoreImpl(operations, options), new DataStatisticsStoreImpl(operations, options), new AdapterIndexMappingStoreImpl(operations, options), operations, options, new InternalAdapterStoreImpl(operations)); }
@Override public void incorporateStatistics(final InternalDataStatistics<?, ?, ?> statistics) { // because we're using the combiner, we should simply be able to add the // object addObject(statistics); deleteObjectFromCache(getPrimaryId(statistics), getSecondaryId(statistics)); }
protected boolean deleteObject( final ByteArray primaryId, final ByteArray secondaryId, final String... authorizations) { if (deleteObjects(primaryId, secondaryId, authorizations)) { deleteObjectFromCache(primaryId, secondaryId); return true; } return false; }
@Override protected InternalDataStatistics<?, ?, ?> entryToValue( final GeoWaveMetadata entry, final String... authorizations) { final InternalDataStatistics<?, ?, ?> stats = super.entryToValue(entry, authorizations); if (stats != null) { return setFields(entry, stats, byteArrayToShort(entry.getSecondaryId())); } return null; }
@Override public CloseableIterator<InternalDataStatistics<?, ?, ?>> getDataStatistics( final String extendedIdPrefix, final StatisticsType<?, ?> statisticsType, final String... authorizations) { return internalGetDataStatistics( null, getPrimaryId(statisticsType, extendedIdPrefix), authorizations); } }
@Override public CloseableIterator<InternalDataStatistics<?, ?, ?>> getDataStatistics( final short adapterId, final String... authorizations) { return getAllObjectsWithSecondaryId(shortToByteArrayId(adapterId), authorizations); }
public boolean deleteObjects( final ByteArray primaryId, final ByteArray secondaryId, final String... authorizations) { return deleteObjects(primaryId, secondaryId, operations, getType(), this, authorizations); }
@Override public boolean removeStatistics( final short adapterId, final StatisticsType<?, ?> statisticsType, final String... authorizations) { return deleteObject(statisticsType, shortToByteArrayId(adapterId), authorizations); }
@Override public CloseableIterator<InternalDataStatistics<?, ?, ?>> getDataStatistics( final short adapterId, final StatisticsType<?, ?> statisticsType, final String... authorizations) { return internalGetDataStatistics(adapterId, statisticsType, authorizations); }
protected T getObject( final ByteArray primaryId, final ByteArray secondaryId, final String... authorizations) { return internalGetObject(primaryId, secondaryId, true, authorizations); }
@Override public CloseableIterator<InternalDataStatistics<?, ?, ?>> getAllDataStatistics( final String... authorizations) { return getObjects(authorizations); }
@Override public GenericStoreFactory<InternalAdapterStore> getInternalAdapterStoreFactory() { return new InternalAdapterStoreFactory(typeName, description, helper); } }
public AbstractGeoWavePersistence( final DataStoreOperations operations, final DataStoreOptions options, final MetadataType type) { this.operations = operations; this.options = options; this.type = type; buildCache(); }
public RedisDataStore(final RedisOperations operations, final DataStoreOptions options) { super( new IndexStoreImpl(operations, options), new AdapterStoreImpl(operations, options), new DataStatisticsStoreImpl(operations, options), new AdapterIndexMappingStoreImpl(operations, options), operations, options, new InternalAdapterStoreImpl(operations)); } }
@Override public CloseableIterator<InternalDataStatistics<?, ?, ?>> getDataStatistics( final short adapterId, final String extendedId, final StatisticsType<?, ?> statisticsType, final String... authorizations) { return internalGetDataStatistics( adapterId, getPrimaryId(statisticsType, extendedId), authorizations); }
@Override public CloseableIterator<InternalDataStatistics<?, ?, ?>> getDataStatistics( final StatisticsType<?, ?> statisticsType, final String... authorizations) { return internalGetDataStatistics(null, statisticsType, authorizations); }
protected boolean objectExists( final ByteArray primaryId, final ByteArray secondaryId, final String... authorizations) { return internalGetObject(primaryId, secondaryId, false, authorizations) != null; }
public RocksDBDataStore(final RocksDBOperations operations, final DataStoreOptions options) { super( new IndexStoreImpl(operations, options), new AdapterStoreImpl(operations, options), new DataStatisticsStoreImpl(operations, options), new AdapterIndexMappingStoreImpl(operations, options), operations, options, new InternalAdapterStoreImpl(operations)); }
public HBaseDataStore(final HBaseOperations operations, final HBaseOptions options) { super( new IndexStoreImpl(operations, options), new AdapterStoreImpl(operations, options), new DataStatisticsStoreImpl(operations, options), new AdapterIndexMappingStoreImpl(operations, options), operations, options, new InternalAdapterStoreImpl(operations)); }
public DynamoDBDataStore(final DynamoDBOperations operations) { super( new IndexStoreImpl(operations, operations.getOptions().getBaseOptions()), new AdapterStoreImpl(operations, operations.getOptions().getBaseOptions()), new DataStatisticsStoreImpl(operations, operations.getOptions().getBaseOptions()), new AdapterIndexMappingStoreImpl(operations, operations.getOptions().getBaseOptions()), operations, operations.getOptions().getBaseOptions(), new InternalAdapterStoreImpl(operations)); } }