public class DefaultAtlasSession extends Object implements io.atlasmap.spi.AtlasInternalSession
Constructor and Description |
---|
DefaultAtlasSession(io.atlasmap.v2.AtlasMapping mapping) |
Modifier and Type | Method and Description |
---|---|
Integer |
errorCount() |
io.atlasmap.api.AtlasContext |
getAtlasContext() |
io.atlasmap.v2.Audits |
getAudits() |
Object |
getDefaultSourceDocument() |
Object |
getDefaultTargetDocument() |
io.atlasmap.spi.AtlasFieldReader |
getFieldReader(String docId) |
<T extends io.atlasmap.spi.AtlasFieldReader> |
getFieldReader(String docId,
Class<T> clazz) |
io.atlasmap.spi.AtlasFieldWriter |
getFieldWriter(String docId) |
<T extends io.atlasmap.spi.AtlasFieldWriter> |
getFieldWriter(String docId,
Class<T> clazz) |
io.atlasmap.v2.AtlasMapping |
getMapping() |
Map<String,Object> |
getProperties() |
Object |
getSourceDocument(String docId) |
Map<String,Object> |
getSourceDocumentMap() |
Object |
getTargetDocument(String docId) |
Map<String,Object> |
getTargetDocumentMap() |
io.atlasmap.v2.Validations |
getValidations() |
boolean |
hasErrors() |
boolean |
hasSourceDocument(String docId) |
boolean |
hasTargetDocument(String docId) |
boolean |
hasWarns() |
io.atlasmap.spi.AtlasInternalSession.Head |
head() |
protected void |
initialize() |
io.atlasmap.spi.AtlasFieldReader |
removeFieldReader(String docId) |
io.atlasmap.spi.AtlasFieldWriter |
removeFieldWriter(String docId) |
void |
setAtlasContext(io.atlasmap.api.AtlasContext atlasContext) |
void |
setAudits(io.atlasmap.v2.Audits audits) |
void |
setDefaultSourceDocument(Object sourceDoc) |
void |
setDefaultTargetDocument(Object targetDoc) |
void |
setFieldReader(String docId,
io.atlasmap.spi.AtlasFieldReader reader) |
void |
setFieldWriter(String docId,
io.atlasmap.spi.AtlasFieldWriter writer) |
void |
setSourceDocument(String docId,
Object sourceDoc) |
void |
setTargetDocument(String docId,
Object targetDoc) |
void |
setValidations(io.atlasmap.v2.Validations validations) |
Integer |
warnCount() |
public DefaultAtlasSession(io.atlasmap.v2.AtlasMapping mapping)
protected void initialize()
public io.atlasmap.api.AtlasContext getAtlasContext()
getAtlasContext
in interface io.atlasmap.api.AtlasSession
public void setAtlasContext(io.atlasmap.api.AtlasContext atlasContext)
setAtlasContext
in interface io.atlasmap.api.AtlasSession
public io.atlasmap.v2.AtlasMapping getMapping()
getMapping
in interface io.atlasmap.api.AtlasSession
public io.atlasmap.v2.Validations getValidations()
getValidations
in interface io.atlasmap.api.AtlasSession
public void setValidations(io.atlasmap.v2.Validations validations)
setValidations
in interface io.atlasmap.api.AtlasSession
public io.atlasmap.v2.Audits getAudits()
getAudits
in interface io.atlasmap.api.AtlasSession
public void setAudits(io.atlasmap.v2.Audits audits)
setAudits
in interface io.atlasmap.api.AtlasSession
public Object getDefaultSourceDocument()
getDefaultSourceDocument
in interface io.atlasmap.api.AtlasSession
public Object getSourceDocument(String docId)
getSourceDocument
in interface io.atlasmap.api.AtlasSession
public boolean hasSourceDocument(String docId)
hasSourceDocument
in interface io.atlasmap.api.AtlasSession
public Map<String,Object> getSourceDocumentMap()
getSourceDocumentMap
in interface io.atlasmap.api.AtlasSession
public Object getDefaultTargetDocument()
getDefaultTargetDocument
in interface io.atlasmap.api.AtlasSession
public Object getTargetDocument(String docId)
getTargetDocument
in interface io.atlasmap.api.AtlasSession
public boolean hasTargetDocument(String docId)
hasTargetDocument
in interface io.atlasmap.api.AtlasSession
public Map<String,Object> getTargetDocumentMap()
getTargetDocumentMap
in interface io.atlasmap.api.AtlasSession
public void setDefaultSourceDocument(Object sourceDoc)
setDefaultSourceDocument
in interface io.atlasmap.api.AtlasSession
public void setSourceDocument(String docId, Object sourceDoc)
setSourceDocument
in interface io.atlasmap.api.AtlasSession
public void setDefaultTargetDocument(Object targetDoc)
setDefaultTargetDocument
in interface io.atlasmap.api.AtlasSession
public void setTargetDocument(String docId, Object targetDoc)
setTargetDocument
in interface io.atlasmap.api.AtlasSession
public io.atlasmap.spi.AtlasFieldReader getFieldReader(String docId)
getFieldReader
in interface io.atlasmap.spi.AtlasInternalSession
public <T extends io.atlasmap.spi.AtlasFieldReader> T getFieldReader(String docId, Class<T> clazz)
getFieldReader
in interface io.atlasmap.spi.AtlasInternalSession
public void setFieldReader(String docId, io.atlasmap.spi.AtlasFieldReader reader)
setFieldReader
in interface io.atlasmap.spi.AtlasInternalSession
public io.atlasmap.spi.AtlasFieldReader removeFieldReader(String docId)
removeFieldReader
in interface io.atlasmap.spi.AtlasInternalSession
public io.atlasmap.spi.AtlasFieldWriter getFieldWriter(String docId)
getFieldWriter
in interface io.atlasmap.spi.AtlasInternalSession
public <T extends io.atlasmap.spi.AtlasFieldWriter> T getFieldWriter(String docId, Class<T> clazz)
getFieldWriter
in interface io.atlasmap.spi.AtlasInternalSession
public void setFieldWriter(String docId, io.atlasmap.spi.AtlasFieldWriter writer)
setFieldWriter
in interface io.atlasmap.spi.AtlasInternalSession
public io.atlasmap.spi.AtlasFieldWriter removeFieldWriter(String docId)
removeFieldWriter
in interface io.atlasmap.spi.AtlasInternalSession
public io.atlasmap.spi.AtlasInternalSession.Head head()
head
in interface io.atlasmap.spi.AtlasInternalSession
public Map<String,Object> getProperties()
getProperties
in interface io.atlasmap.api.AtlasSession
public Integer errorCount()
errorCount
in interface io.atlasmap.api.AtlasSession
public boolean hasErrors()
hasErrors
in interface io.atlasmap.api.AtlasSession
public boolean hasWarns()
hasWarns
in interface io.atlasmap.api.AtlasSession
public Integer warnCount()
warnCount
in interface io.atlasmap.api.AtlasSession
Copyright © 2018 JBoss by Red Hat. All rights reserved.