public interface MappingService
Modifier and Type | Method and Description |
---|---|
void |
generateMappingTransforms()
Generates a transform in the modules database for each legacy mapping or mapping step
|
java.lang.String |
getDocument(java.lang.String stepName,
java.lang.String uri)
Gets the document based on the given URI from the source database associated with the given step name
|
com.fasterxml.jackson.databind.JsonNode |
getDocumentForTesting(java.lang.String stepName,
java.lang.String uri)
Get an XML or JSON source document (and additional information all formatted as a string of JSON) to facilitate testing a map.
|
com.fasterxml.jackson.databind.JsonNode |
getMappingFunctions()
Invokes the getMappingFunctions operation on the database server
|
com.fasterxml.jackson.databind.JsonNode |
getUris(java.lang.String stepName,
java.lang.Integer limit)
Gets the list of URIs that match the 'sourceQuery' from source db associated with given step name.
|
static MappingService |
on(com.marklogic.client.DatabaseClient db)
Creates a MappingService object for executing operations on the database server.
|
static MappingService |
on(com.marklogic.client.DatabaseClient db,
com.marklogic.client.io.marker.JSONWriteHandle serviceDeclaration)
Creates a MappingService object for executing operations on the database server.
|
com.fasterxml.jackson.databind.JsonNode |
testMapping(java.lang.String uri,
java.lang.String database,
com.fasterxml.jackson.databind.JsonNode jsonMapping)
Invokes the testMapping operation on the database server
|
static MappingService on(com.marklogic.client.DatabaseClient db)
db
- provides a client for communicating with the database serverstatic MappingService on(com.marklogic.client.DatabaseClient db, com.marklogic.client.io.marker.JSONWriteHandle serviceDeclaration)
db
- provides a client for communicating with the database serverserviceDeclaration
- substitutes a custom implementation of the servicecom.fasterxml.jackson.databind.JsonNode testMapping(java.lang.String uri, java.lang.String database, com.fasterxml.jackson.databind.JsonNode jsonMapping)
uri
- provides inputdatabase
- provides inputjsonMapping
- provides inputjava.lang.String getDocument(java.lang.String stepName, java.lang.String uri)
stepName
- provides inputuri
- provides inputcom.fasterxml.jackson.databind.JsonNode getUris(java.lang.String stepName, java.lang.Integer limit)
stepName
- provides inputlimit
- provides inputcom.fasterxml.jackson.databind.JsonNode getDocumentForTesting(java.lang.String stepName, java.lang.String uri)
stepName
- provides inputuri
- provides inputvoid generateMappingTransforms()
com.fasterxml.jackson.databind.JsonNode getMappingFunctions()