Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

MarkLogic Components

Scott Stafford edited this page Jan 26, 2018 · 2 revisions

ItemReaders

MarkLogicItemReader - IN PROGRESS

Given a query, the MarkLogicItemReader will return DocumentRecord objects.

ValuesItemReader

This will return the contents of a MarkLogic index as a CountedDistinctValue

ItemProcessor

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

:interface:MarkLogicItemProcessor

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>

:abstractClass:AbstractMarkLogicItemProcessor

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)

:interface: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;

DocumentUriGenerator

The DocumentUriGenerator generates a URI from a org.jdom2.Document

ItemWriters

MarkLogicItemWriter

XccItemWriter

DataHubItemWriter

InvokeModuleItemWriter

MarkLogicPatchItemWriter

Listeners

SimpleChunkListener - IN WORK