OpenSearch/x-pack/plugin/src/test
Hendrik Muhs cfc003d485 [Rollup] Re-factor Rollup Indexer into a generic indexer for re-usability (#32743)
This extracts a super class out of the rollup indexer called the AsyncTwoPhaseIterator. 
The implementor of it can define the query, transformation of the response, 
indexing and the object to persist the position/state of the indexer.

The stats object used by the indexer to record progress is also now abstract, allowing
the implementation provide custom stats beyond what the indexer provides.  It also
allows the implementation to decide how the stats are presented (leaves toXContent()
up to the implementation).

This should allow new projects to reuse the search-then-index persistent task that Rollup
uses, but without the restrictions/baggage of how Rollup has to work internally to
satisfy time-based rollups.
2018-08-29 14:28:21 -04:00
..
java/org/elasticsearch/xpack/test/rest Switch x-pack/plugin to new style Requests (#32327) 2018-07-26 13:31:16 -04:00
resources [Rollup] Re-factor Rollup Indexer into a generic indexer for re-usability (#32743) 2018-08-29 14:28:21 -04:00