Top Description Fields Constructors Methods
net.sf.ehcache.store

pack-priv Class MemoryStoreBruteForceSource

extends Object
implements BruteForceSource
Class Inheritance
All Implemented Interfaces
net.sf.ehcache.store.BruteForceSource
Imports
net.sf.ehcache.Element, net.sf.ehcache.config.Searchable

Implementation of a BruteForceSource to integrate with a MemoryStore
Author
ljacomet

Field Summary

Modifier and TypeField and Description
private final MemoryStore
private final Searchable

Constructor Summary

AccessConstructor and Description
pack-priv
MemoryStoreBruteForceSource(MemoryStore
the underlying MemoryStore
memoryStore
,
Searchable
the associated Searchable configuration
searchable
)

Constructs a BruteForceSource using a MemoryStore and the associated Searchable configuration

Method Summary

Modifier and TypeMethod and Description
public Iterable<Element>
elements()

Implements net.sf.ehcache.store.BruteForceSource.elements.

An Iterable over the elements from the source.
public Searchable
getSearchable()

Implements net.sf.ehcache.store.BruteForceSource.getSearchable.

Returns the Searchable configuration of the source.
public Element
transformForIndexing(Element
the element to transform
element
)

Implements net.sf.ehcache.store.BruteForceSource.transformForIndexing.

Transform the element so that it can be used for indexing by the BruteForceSearchManager.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

memoryStoreback to summary
private final MemoryStore memoryStore
searchableback to summary
private final Searchable searchable

Constructor Detail

MemoryStoreBruteForceSourceback to summary
pack-priv MemoryStoreBruteForceSource(MemoryStore memoryStore, Searchable searchable)

Constructs a BruteForceSource using a MemoryStore and the associated Searchable configuration

Parameters
memoryStore:MemoryStore

the underlying MemoryStore

searchable:Searchable

the associated Searchable configuration

Method Detail

elementsback to summary
public Iterable<Element> elements()

Implements net.sf.ehcache.store.BruteForceSource.elements.

Doc from net.sf.ehcache.store.BruteForceSource.elements.

An Iterable over the elements from the source. The elements returned are in the form expected by the BruteForceSearchManager.

Returns:Iterable<Element>

an Iterable of Element

Annotations
@Override
getSearchableback to summary
public Searchable getSearchable()

Implements net.sf.ehcache.store.BruteForceSource.getSearchable.

Doc from net.sf.ehcache.store.BruteForceSource.getSearchable.

Returns the Searchable configuration of the source.

Returns:Searchable

the Searchable configuration

Annotations
@Override
transformForIndexingback to summary
public Element transformForIndexing(Element element)

Implements net.sf.ehcache.store.BruteForceSource.transformForIndexing.

Doc from net.sf.ehcache.store.BruteForceSource.transformForIndexing.

Transform the element so that it can be used for indexing by the BruteForceSearchManager.

Parameters
element:Element

the element to transform

Returns:Element

the transformed element

Annotations
@Override