marklogic-community / marklogic-spring-batch

Write batch processing applications in MarkLogic
Other
8 stars 26 forks source link

Read data from a MarkLogic database #262

Open sastafford opened 6 years ago

sastafford commented 6 years ago

As a developer I want to Read documents from a MarkLogic database So that I can pass those documents to an item processor or item writer

Notes

Currently the DocumentItemReader exists, but we want to leverage DMSDK features. Need to either combine or deprecate this class.

Project - core Package - com.marklogic.spring.batch.item.reader Class - DataMovementItemReader implements ItemStreamReader

  public class DataMovementItemReader implements ItemStreamReader<String>

Unit Tests

Given a structured query When the DocumentItemReader reads from MarkLogic Then the set of documents that satisfy the structured query are returned