public abstract class AbstractCountingEntryUpdateVisitor extends Object implements CountingEntryUpdateVisitor
CountingEntryUpdateVisitor interface.| Modifier and Type | Class and Description |
|---|---|
private static class |
AbstractCountingEntryUpdateVisitor.Counter
A simple counter (mutable
Integer object). |
| Modifier and Type | Field and Description |
|---|---|
private Map<ChangeType,AbstractCountingEntryUpdateVisitor.Counter> |
changeCountMap |
| Constructor and Description |
|---|
AbstractCountingEntryUpdateVisitor()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getChangeCount(ChangeType changeType)
This method gets the number of invocations of
EntryUpdateVisitor.visitIndexedEntryUri(String, ChangeType) for the
given changeType. |
void |
visitIndexedEntryUri(String uri,
ChangeType changeType)
This method is called for each
resource during indexing
of a SearchSource. |
private final Map<ChangeType,AbstractCountingEntryUpdateVisitor.Counter> changeCountMap
getChangeCount(ChangeType)public AbstractCountingEntryUpdateVisitor()
public void visitIndexedEntryUri(String uri, ChangeType changeType)
resource during indexing
of a SearchSource. It allows to
collect information for delta-indexing.visitIndexedEntryUri in interface EntryUpdateVisitoruri - 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)public int getChangeCount(ChangeType changeType)
EntryUpdateVisitor.visitIndexedEntryUri(String, ChangeType) for the
given changeType.getChangeCount in interface CountingEntryUpdateVisitorchangeType - is the ChangeType or null for
unmodified.Copyright © 2001–2016 mmm-Team. All rights reserved.