Package io.atlasmap.builder
Class DefaultAtlasMappingBuilder
- java.lang.Object
-
- io.atlasmap.builder.DefaultAtlasMappingBuilder
-
- All Implemented Interfaces:
io.atlasmap.api.AtlasMappingBuilder
public abstract class DefaultAtlasMappingBuilder extends Object implements io.atlasmap.api.AtlasMappingBuilder
A baseAtlasMappingBuilderwith some common utility methods. In most cases user can extend this class and just implementprocessMapping().- See Also:
AtlasField
-
-
Constructor Summary
Constructors Constructor Description DefaultAtlasMappingBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddAudit(Exception e)io.atlasmap.api.AtlasSessiongetAtlasSession()GetDefaultAtlasSession.voidprocess()abstract voidprocessMapping()Define custom mapping logic.AtlasFieldread(String docId, String path)AtlasFieldreadConstant(String name)AtlasFieldreadProperty(String scope, String name)voidsetAtlasSession(io.atlasmap.api.AtlasSession session)voidwrite(String docId, String path, Object value)
-
-
-
Method Detail
-
read
public AtlasField read(String docId, String path) throws io.atlasmap.api.AtlasException
- Throws:
io.atlasmap.api.AtlasException
-
readConstant
public AtlasField readConstant(String name) throws io.atlasmap.api.AtlasException
- Throws:
io.atlasmap.api.AtlasException
-
readProperty
public AtlasField readProperty(String scope, String name) throws io.atlasmap.api.AtlasException
- Throws:
io.atlasmap.api.AtlasException
-
write
public void write(String docId, String path, Object value) throws io.atlasmap.api.AtlasException
- Throws:
io.atlasmap.api.AtlasException
-
process
public void process()
- Specified by:
processin interfaceio.atlasmap.api.AtlasMappingBuilder
-
processMapping
public abstract void processMapping() throws ExceptionDefine custom mapping logic. User can extend this class and implement custom mapping logic in this method. The thrown Exception will be catched inprocess()and added as an Audit.- Throws:
Exception- Indicate mapping error to be recorded as an Audit
-
setAtlasSession
public void setAtlasSession(io.atlasmap.api.AtlasSession session) throws io.atlasmap.api.AtlasException- Specified by:
setAtlasSessionin interfaceio.atlasmap.api.AtlasMappingBuilder- Throws:
io.atlasmap.api.AtlasException
-
getAtlasSession
public io.atlasmap.api.AtlasSession getAtlasSession()
GetDefaultAtlasSession.- Returns:
AtlasSession.
-
addAudit
public void addAudit(Exception e)
-
-