com.amazon.carbonado.qe
Interface StorageAccess<S extends Storable>

All Superinterfaces:
FullScanQueryExecutor.Support<S>, IndexedQueryExecutor.Support<S>, KeyQueryExecutor.Support<S>, SortedQueryExecutor.Support<S>

public interface StorageAccess<S extends Storable>
extends FullScanQueryExecutor.Support<S>, KeyQueryExecutor.Support<S>, IndexedQueryExecutor.Support<S>, SortedQueryExecutor.Support<S>

Provides internal access to a Storage, necessary for query execution.

Author:
Brian S O'Neill

Method Summary
 Collection<StorableIndex<S>> getAllIndexes()
          Returns all the available indexes.
 QueryExecutorFactory<S> getQueryExecutorFactory()
          Returns a QueryExecutorFactory instance for storage.
 Class<S> getStorableType()
          Returns the specific type of Storable managed by this object.
 Storage<S> storageDelegate(StorableIndex<S> index)
          If the given index is not directly supported by storage, queries should be delegated.
 
Methods inherited from interface com.amazon.carbonado.qe.FullScanQueryExecutor.Support
countAll, fetchAll
 
Methods inherited from interface com.amazon.carbonado.qe.KeyQueryExecutor.Support
fetchOne
 
Methods inherited from interface com.amazon.carbonado.qe.IndexedQueryExecutor.Support
fetchFromIndexEntryQuery, fetchSubset, indexEntryQuery
 
Methods inherited from interface com.amazon.carbonado.qe.SortedQueryExecutor.Support
createSortBuffer
 

Method Detail

getStorableType

Class<S> getStorableType()
Returns the specific type of Storable managed by this object.

Specified by:
getStorableType in interface FullScanQueryExecutor.Support<S extends Storable>

getQueryExecutorFactory

QueryExecutorFactory<S> getQueryExecutorFactory()
Returns a QueryExecutorFactory instance for storage.


getAllIndexes

Collection<StorableIndex<S>> getAllIndexes()
Returns all the available indexes.


storageDelegate

Storage<S> storageDelegate(StorableIndex<S> index)
If the given index is not directly supported by storage, queries should be delegated. Return the storage to delegate to or null if index should not be delegated.

Throws:
IllegalArgumentException - if index is unknown


Copyright © 2006-2009 Amazon Technologies, Inc.. All Rights Reserved.