Package | Description |
---|---|
org.egothor.cache |
Provides classes that help implementing a cache for the egothor project.
|
org.egothor.dir |
This package defines objects of distributed IR layer.
|
Modifier and Type | Method and Description |
---|---|
Cache<CachedQuery,CachedResult> |
CachedGroup.getCache()
Gets the actual cache used for storing query results.
|
Modifier and Type | Method and Description |
---|---|
boolean |
CachedGroup.containsKey(CachedQuery key)
Checks whether the specified query is cached.
|
CachedResult |
CachedGroup.get(CachedQuery key)
Gets the result associated with the specified query from the cache if the query is cached, or the result returned by the resolver.
|
CachedResult |
CachedGroup.put(CachedQuery key,
CachedResult value)
Adds a new result for the specified query to the cache.
|
CachedResult |
CachedGroup.remove(CachedQuery key)
Removes the specified query and its result from the cache.
|
CachedResult |
CachedGroup.update(CachedQuery key,
CachedResult value)
Updates the result associated with the specified query in the cache if a result exists for the query.
|
Constructor and Description |
---|
CachedGroup(Cache<CachedQuery,CachedResult> cache)
Constructor for the CachedGroup object.
|
CachedGroup(Cache<CachedQuery,CachedResult> cache,
boolean cacheMetadata)
Constructor for the CachedGroup object.
|
CachedGroup(Cache<CachedQuery,CachedResult> cache,
int pageSize)
Constructor for the CachedGroup object.
|
CachedGroup(Cache<CachedQuery,CachedResult> cache,
int pageSize,
boolean cacheMetadata)
Constructor for the CachedGroup object.
|
Modifier and Type | Method and Description |
---|---|
CachedResult |
Group.resolve(CachedQuery cachedQuery) |
Modifier and Type | Method and Description |
---|---|
void |
Group.initializeCache(Cache<CachedQuery,CachedResult> cache)
Initializes a query result cache with the specified options.
|
void |
Group.initializeCache(Cache<CachedQuery,CachedResult> cache,
boolean cacheMetadata)
Initializes a query result cache with the specified options.
|
void |
Group.initializeCache(Cache<CachedQuery,CachedResult> cache,
int pageSize)
Initializes a query result cache with the specified options.
|
void |
Group.initializeCache(Cache<CachedQuery,CachedResult> cache,
int pageSize,
boolean cacheMetadata)
Initializes a query result cache with the specified options.
|
Copyright © 2016 Egothor. All Rights Reserved.