BruteForceSource that wraps another one and deals with transactional Elements.
| Modifier and Type | Class and Description |
|---|---|
| private static class | TransactionalBruteForceSource.TransactionalIterable
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 | TransactionalBruteForceSource(BruteForceSource
the delegate source delegate, CopyStrategyHandler the copyStrategyHandler)CopyStrategyHandler to useA wrapping |
| 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 | |
| TransactionalBruteForceSource | back to summary |
|---|---|
| pack-priv TransactionalBruteForceSource(BruteForceSource delegate, CopyStrategyHandler copyStrategyHandler) A wrapping
| |
| 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 | TransactionalBruteForceSource.TransactionalIterable.TransactionalIterator
Wrapping Iterator responsible of handling transactional elements and 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 | |
| TransactionalIterable | back to summary |
|---|---|
| public TransactionalIterable(Iterable<Element> elements, CopyStrategyHandler copyStrategyHandler) | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type | |
| Modifier and Type | Field and Description |
|---|---|
| private final Iterator | |
| private Element |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Element | |
| public boolean | |
| public Element | |
| public void | remove()
Overrides default java. |
| delegate | back to summary |
|---|---|
| private final Iterator<Element> delegate | |
| next | back to summary |
|---|---|
| private Element next | |
| TransactionalIterator | back to summary |
|---|---|
| public TransactionalIterator(Iterator<Element> delegate) | |
| getNextElement | back to summary |
|---|---|
| private Element getNextElement() | |
| 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
| |