T
- public class IndexCache extends AbstractIndexCache<IScaleOutClientIndex>
IClientIndex
views.log
Constructor and Description |
---|
IndexCache(AbstractScaleOutFederation<?> fed,
int capacity,
long timeout) |
Modifier and Type | Method and Description |
---|---|
protected void |
dropIndexFromCache(String name)
Drop the
ITx.UNISOLATED and ITx.READ_COMMITTED
entries for the named index from the cache. |
protected ClientIndexView |
newView(String name,
long timestamp)
Method is invoked on a cache miss and returns a view of the described
index.
|
getIndex, shutdown
public IndexCache(AbstractScaleOutFederation<?> fed, int capacity, long timeout)
protected ClientIndexView newView(String name, long timestamp)
AbstractIndexCache
newView
in class AbstractIndexCache<IScaleOutClientIndex>
null
if the described index
does not exist.protected void dropIndexFromCache(String name)
AbstractIndexCache
ITx.UNISOLATED
and ITx.READ_COMMITTED
entries for the named index from the cache.
Historical and transactional reads are still allowed, but we remove the read-committed or unisolated views from the cache once the index has been dropped. If a client wants them, it needs to re-request. If they have been re-registered on the metadata service then they will become available again.
Note: Operations against unisolated or read-committed indices will throw exceptions if they execute after the index was dropped.
dropIndexFromCache
in class AbstractIndexCache<IScaleOutClientIndex>
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.