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
|
com.fasterxml.jackson.databind.JsonNode |
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 |
getEntitiesForMapping(java.lang.String entityName)
Gets the specified entity model and all its related entity models
|
com.fasterxml.jackson.databind.JsonNode |
getMappingFunctions()
Invokes the getMappingFunctions operation on the database server.
|
com.fasterxml.jackson.databind.JsonNode |
getMappingFunctions(java.lang.Boolean excludeMLMappingFunctions)
Invokes the getMappingFunctions operation on the database server
|
com.fasterxml.jackson.databind.JsonNode |
getReferences(java.lang.String stepName)
Gets the references associated with given mapping step name.
|
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 getReferences(java.lang.String stepName)
stepName
- provides inputcom.fasterxml.jackson.databind.JsonNode getEntitiesForMapping(java.lang.String entityName)
entityName
- provides inputcom.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 inputcom.fasterxml.jackson.databind.JsonNode 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 inputvoid generateMappingTransforms()
com.fasterxml.jackson.databind.JsonNode getMappingFunctions(java.lang.Boolean excludeMLMappingFunctions)
excludeMLMappingFunctions
- provides inputcom.fasterxml.jackson.databind.JsonNode getMappingFunctions()
excludeMLMappingFunctions
- provides input