public class CountingEntryUpdateVisitorCollector extends AbstractCountingEntryUpdateVisitor
EntryUpdateVisitor
interface that collects
all visited
URIs except for
ChangeType.REMOVE
.Modifier and Type | Field and Description |
---|---|
private Set<String> |
entryUriSet |
Constructor and Description |
---|
CountingEntryUpdateVisitorCollector()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getEntryUriSet()
This method gets the
Set with the collected URIs. |
void |
visitIndexedEntryUri(String uri,
ChangeType changeType)
This method is called for each
resource during indexing
of a SearchSource . |
getChangeCount
private final Set<String> entryUriSet
getEntryUriSet()
public CountingEntryUpdateVisitorCollector()
public void visitIndexedEntryUri(String uri, ChangeType changeType)
resource
during indexing
of a SearchSource
. It allows to
collect information for delta-indexing.visitIndexedEntryUri
in interface EntryUpdateVisitor
visitIndexedEntryUri
in class AbstractCountingEntryUpdateVisitor
uri
- is the URI
of
of the SearchEntry
that is updated or
remains untouched during indexing.changeType
- indicates the change for the
SearchEntry
. Can also be
null
for no change.ResourceSearchIndexer.index(SearchIndexer,
net.sf.mmm.util.resource.api.DataResource, ChangeType,
net.sf.mmm.search.indexer.api.config.SearchIndexerDataLocation,
EntryUpdateVisitor)
Copyright © 2001–2016 mmm-Team. All rights reserved.