-
Notifications
You must be signed in to change notification settings - Fork 26
MarkLogic Components
Given a query, the MarkLogicItemReader will return DocumentRecord objects.
This will return the contents of a MarkLogic index as a CountedDistinctValue
The ItemProcessor is typically the part for any Job that needs customization. You can start from scratch or use the following helper classes to to help ingest data into MarkLogic
The MarkLogicItemProcessor interface is intended to be used for jobs that write data to MarkLogic and plan to use the MarkLogicItemWriter.
public interface MarkLogicItemProcessor<T> extends ItemProcessor<T, DocumentWriteOperation>
The AbstractMarkLogicItemProcessor is an abstract class that implements the MarkLogicItemProcessor interface. The constructor expects a UriGenerator to help with a generating a URI. If the empty constructor is called, a random URI is generated.
public AbstractMarkLogicItemProcessor(UriGenerator uriGenerator)
The UriGenerator provides a strategy for generating a URI based on the object coming from the ItemReader read() method.
public String generateUri(T t) throws Exception;
The DocumentUriGenerator generates a URI from a org.jdom2.Document