public interface CompositeDataIndexer<K,V,SubIndexerType,SubIndexerVersion> extends DataIndexer<K,V,FileContent>
DataIndexer which behaviour can be extended by some kind of extension points.IdIndex, StubUpdatingIndex as an examples| Modifier and Type | Method and Description |
|---|---|
SubIndexerType |
calculateSubIndexer(IndexedFile file)
Calculates sub-indexer type which will be used by indexing algorithm.
|
SubIndexerVersion |
getSubIndexerVersion(SubIndexerType subIndexerType)
SubIndexerVersion reflects StubIndexerType persistent version.
|
KeyDescriptor<SubIndexerVersion> |
getSubIndexerVersionDescriptor()
SubIndexerVersion descriptor must depend only on corresponding index version, should be available to read even corresponding SubIndexerType is not exist anymore.
|
default java.util.Map<K,V> |
map(FileContent inputData) |
java.util.Map<K,V> |
map(FileContent inputData,
SubIndexerType indexerType) |
default boolean |
requiresContentForSubIndexerEvaluation(IndexedFile file)
Determine should we load content to provide sub-indexer.
|
SubIndexerType calculateSubIndexer(IndexedFile file)
map(FileContent, Object)default boolean requiresContentForSubIndexerEvaluation(IndexedFile file)
SubIndexerVersion getSubIndexerVersion(SubIndexerType subIndexerType)
KeyDescriptor<SubIndexerVersion> getSubIndexerVersionDescriptor()
default java.util.Map<K,V> map(FileContent inputData)
map in interface DataIndexer<K,V,FileContent>java.util.Map<K,V> map(FileContent inputData, SubIndexerType indexerType)