Class FederatedStoreCache
- java.lang.Object
-
- uk.gov.gchq.gaffer.federatedstore.FederatedStoreCache
-
@Deprecated public final class FederatedStoreCache extends Object
Deprecated.Federated store will use the default cache implementation going forward.Wrapper aroundFederatedStoreCacheTransient
to provide an interface for handlingGraph
s within aFederatedStore
.
-
-
Constructor Summary
Constructors Constructor Description FederatedStoreCache(String suffixFederatedStoreCacheName)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addGraphToCache(Graph graph, FederatedAccess access, boolean overwrite)
Deprecated.Add the specifiedGraph
to the cache.void
addGraphToCache(GraphSerialisable graphSerialisable, byte[] access, boolean overwrite)
Deprecated.void
addGraphToCache(GraphSerialisable graphSerialisable, FederatedAccess access, boolean overwrite)
Deprecated.Add the specifiedGraph
to the cache.void
clearCache()
Deprecated.boolean
contains(String graphId)
Deprecated.void
deleteFromCache(String key)
Deprecated.void
deleteGraphFromCache(String graphId)
Deprecated.FederatedAccess
getAccessFromCache(String graphId)
Deprecated.Iterable<String>
getAllGraphIds()
Deprecated.Get all the ID's related to theGraph
's stored in the cache.Iterable<String>
getAllKeys()
Deprecated.ICache
getCache()
Deprecated.String
getCacheName()
Deprecated.static String
getCacheNameFrom(String suffixCacheName)
Deprecated.Pair<GraphSerialisable,FederatedAccess>
getFromCache(String key)
Deprecated.GraphSerialisable
getGraphFromCache(String graphId)
Deprecated.Retrieve theGraphSerialisable
with the specified ID from the cache.GraphSerialisable
getGraphSerialisableFromCache(String graphId)
Deprecated.Retrieve theGraph
with the specified ID from the cache.
-
-
-
Constructor Detail
-
FederatedStoreCache
public FederatedStoreCache(String suffixFederatedStoreCacheName)
Deprecated.
-
-
Method Detail
-
getAllGraphIds
public Iterable<String> getAllGraphIds()
Deprecated.Get all the ID's related to theGraph
's stored in the cache.- Returns:
- all the Graph ID's within the cache.
-
addGraphToCache
public void addGraphToCache(Graph graph, FederatedAccess access, boolean overwrite) throws CacheOperationException
Deprecated.Add the specifiedGraph
to the cache.- Parameters:
graph
- theGraph
to be addedoverwrite
- if true, overwrite any graphs already in the cache with the same IDaccess
- Access for the graph being stored.- Throws:
CacheOperationException
- if issues adding to cache
-
addGraphToCache
public void addGraphToCache(GraphSerialisable graphSerialisable, FederatedAccess access, boolean overwrite) throws CacheOperationException
Deprecated.Add the specifiedGraph
to the cache.- Parameters:
graphSerialisable
- the serialisedGraph
to be addedaccess
- Access for the graph being stored.overwrite
- if true, overwrite any graphs already in the cache with the same ID- Throws:
CacheOperationException
- if issues adding to cache
-
deleteGraphFromCache
public void deleteGraphFromCache(String graphId)
Deprecated.
-
getGraphFromCache
public GraphSerialisable getGraphFromCache(String graphId) throws CacheOperationException
Deprecated.Retrieve theGraphSerialisable
with the specified ID from the cache.- Parameters:
graphId
- the ID of theGraph
to retrieve- Returns:
- the
GraphSerialisable
related to the specified ID - Throws:
CacheOperationException
- exception
-
getGraphSerialisableFromCache
public GraphSerialisable getGraphSerialisableFromCache(String graphId)
Deprecated.Retrieve theGraph
with the specified ID from the cache.
-
addGraphToCache
public void addGraphToCache(GraphSerialisable graphSerialisable, byte[] access, boolean overwrite) throws CacheOperationException
Deprecated.- Throws:
CacheOperationException
-
getAccessFromCache
public FederatedAccess getAccessFromCache(String graphId)
Deprecated.
-
getFromCache
public Pair<GraphSerialisable,FederatedAccess> getFromCache(String key)
Deprecated.
-
getCacheName
public String getCacheName()
Deprecated.
-
clearCache
public void clearCache() throws CacheOperationException
Deprecated.- Throws:
CacheOperationException
-
contains
public boolean contains(String graphId)
Deprecated.
-
deleteFromCache
public void deleteFromCache(String key)
Deprecated.
-
getCache
public ICache getCache()
Deprecated.
-
-