Package | Description |
---|---|
org.egothor.cache |
Provides classes that help implementing a cache for the egothor project.
|
org.egothor.core.query |
This package contains objects that represent a structure of a
query in our inner and binary form, readers of a barrel and a result queue.
|
Modifier and Type | Method and Description |
---|---|
Cache<CachedTerm,CachedIListPage> |
CachedRider.getCache()
Gets the actual cache used for storing inverted list pages.
|
Modifier and Type | Method and Description |
---|---|
boolean |
CachedRider.containsKey(CachedTerm term)
Checks whether the specified term is cached.
|
CachedIListPage |
CachedRider.get(CachedTerm term)
Gets the inverted list page associated with the specified term from the cache if the term is cached, or the inverted list page returned by the resolver.
|
CachedIListPage |
CachedRider.put(CachedTerm term,
CachedIListPage page)
Adds a new inverted list page for the specified term to the cache.
|
CachedIListPage |
CachedRider.remove(CachedTerm term)
Removes the specified term and its page from the cache.
|
CachedIListPage |
CachedRider.resolve(CachedTerm term)
Return a new cached inverted list page of the specified term.
|
CachedIListPage |
CachedRider.update(CachedTerm term,
CachedIListPage page)
Updates the inverted list page associated with the specified term in the cache if a cached page exists for the term.
|
Constructor and Description |
---|
CachedRider(Cache<CachedTerm,CachedIListPage> cache)
Constructor for the CachedRider object.
|
CachedRider(Cache<CachedTerm,CachedIListPage> cache,
int pageSize)
Constructor for the CachedRider object.
|
Modifier and Type | Method and Description |
---|---|
static void |
Rider.initializeCache(Cache<CachedTerm,CachedIListPage> cache,
int pageSize)
Initializes the cache to be used for caching inverted lists.
|
Copyright © 2016 Egothor. All Rights Reserved.