see on GitHub

Commands: Transformers: Get

There are few methods that allow you to retrieve transformers from a database:
- GetTransformer
- GetTransformers

GetTransformer

GetTransformer is used to retrieve a single transformer

Syntax

public TransformerDefinition getTransformer(String name);

Parameters
name String transformer name
Return Value
TransformerDefinition Instance of TransformerDefinition representing transformer.

Example

TransformerDefinition transformer = store
  .getDatabaseCommands()
  .getTransformer("Order/Statistics"); // returns null if does not exist

GetTransformers

GetTransformers is used to retrieve a multiple transformers

Syntax

public List<TransformerDefinition> getTransformers(int start, int pageSize);

Parameters
start int number of documents that should be skipped
pageSize int maximum number of transformers that will be retrieved
Return Value
TransformerDefinition Instance of TransformerDefinition representing a transformer.

Example

List<TransformerDefinition> transformers = store.getDatabaseCommands().getTransformers(0, 128);