BruteForceSource that wraps another one and deals with copy for read of Elements.
| Modifier and Type | Class and Description |
|---|---|
| private static class | CopyingBruteForceSource.CopyingIterable
Wrapping Iterable holding the delegate Iterable and the |
| Modifier and Type | Field and Description |
|---|---|
| private final CopyStrategyHandler | |
| private final BruteForceSource |
| Access | Constructor and Description |
|---|---|
| pack-priv | CopyingBruteForceSource(BruteForceSource
the delegate BruteForceSource delegate, CopyStrategyHandler the copy strategy handler copyStrategyHandler)Construct this CopyingBruteForceSource with the given delegate and the |
| Modifier and Type | Method and Description |
|---|---|
| public Iterable | elements()
Implements net. Iterable over the elements from the source.
|
| public Searchable | getSearchable()
Implements net. Searchable configuration of the source.
|
| public Element | transformForIndexing(Element
the element to transform element)Implements net. BruteForceSearchManager.
|
| copyStrategyHandler | back to summary |
|---|---|
| private final CopyStrategyHandler copyStrategyHandler | |
| delegate | back to summary |
|---|---|
| private final BruteForceSource delegate | |
| CopyingBruteForceSource | back to summary |
|---|---|
| pack-priv CopyingBruteForceSource(BruteForceSource delegate, CopyStrategyHandler copyStrategyHandler) Construct this CopyingBruteForceSource with the given delegate and the
| |
| elements | back to summary |
|---|---|
| public Iterable Implements net. Doc from net. An | |
| getSearchable | back to summary |
|---|---|
| public Searchable getSearchable() Implements net. Doc from net. Returns the
| |
| transformForIndexing | back to summary |
|---|---|
| public Element transformForIndexing(Element element) Implements net. Doc from net. Transform the element so that it can be used for indexing by the | |
CopyStrategyHandler
| Modifier and Type | Class and Description |
|---|---|
| private class | CopyingBruteForceSource.CopyingIterable.CopyingIterator
Wrapping Iterator responsible of doing the copy on read |
| Modifier and Type | Field and Description |
|---|---|
| private final CopyStrategyHandler | |
| private final Iterable |
| Access | Constructor and Description |
|---|---|
| public |
| copyStrategyHandler | back to summary |
|---|---|
| private final CopyStrategyHandler copyStrategyHandler | |
| elements | back to summary |
|---|---|
| private final Iterable<Element> elements | |
| CopyingIterable | back to summary |
|---|---|
| public CopyingIterable(Iterable<Element> elements, CopyStrategyHandler copyStrategyHandler) | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Element | |
| public void | remove()
Overrides default java. |
| delegate | back to summary |
|---|---|
| private final Iterator<Element> delegate | |
| CopyingIterator | back to summary |
|---|---|
| public CopyingIterator(Iterator<Element> delegate) | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Element next() Implements java. Doc from java. Returns the next element in the iteration. | |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |