Top Description Methods
net.sf.ehcache.store

pack-priv Interface BruteForceSource

Known Direct Implementers
net.sf.ehcache.store.CopyingBruteForceSource, net.sf.ehcache.store.MemoryStoreBruteForceSource, net.sf.ehcache.store.TransactionalBruteForceSource
Imports
net.sf.ehcache.Element, net.sf.ehcache.config.Searchable

This interface exposes what is required by the BruteForceSearchManager
Author
ljacomet

Method Summary

Modifier and TypeMethod and Description
public Iterable<Element>

Returns:

an Iterable of Element
elements
()

An Iterable over the elements from the source.

public Searchable

Returns:

the Searchable configuration
getSearchable
()

Returns the Searchable configuration of the source.

public Element

Returns:

the transformed element
transformForIndexing
(Element
the element to transform
element
)

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

Method Detail

elementsback to summary
public Iterable<Element> 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

getSearchableback to summary
public Searchable getSearchable()

Returns the Searchable configuration of the source.

Returns:Searchable

the Searchable configuration

transformForIndexingback to summary
public Element transformForIndexing(Element element)

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