jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chetan Mehrotra (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OAK-4642) Provide a way to pass indexing related state to IndexEditorProvider
Date Thu, 04 Aug 2016 06:43:20 GMT
Chetan Mehrotra created OAK-4642:
------------------------------------

             Summary: Provide a way to pass indexing related state to IndexEditorProvider
                 Key: OAK-4642
                 URL: https://issues.apache.org/jira/browse/OAK-4642
             Project: Jackrabbit Oak
          Issue Type: Technical task
          Components: core
            Reporter: Chetan Mehrotra
            Assignee: Chetan Mehrotra
             Fix For: 1.6


An index editor needs access to some more data points like below in the indexing process

# reindexing - Currently the index implementation use some heuristic like check before root
state being empty to determine if they are running in reindexing mode
# indexing mode - sync or async
# index path of the index (see OAK-4152)
# CommitInfo (see OAK-4640)

For this we need to provide a way to pass these data points from indexing flow

* Approach 1 - Introduce a new interface which takes an {{IndexingContext}} instance which
provide access to such datapoints. This would require some broader change
** Whereever the IndexEditorProvider is invoked it would need to check if the instance implements
new interface. If yes then new method needs to be used
* Approach 2 - Here we can introduce such data points as part of callback interface. With
this we would need to implement such methods in places where code constructs the callback

For now #1 looks cleaner but may require broader change



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message