Class DefaultAtlasSession

  • All Implemented Interfaces:
    io.atlasmap.api.AtlasSession, io.atlasmap.spi.AtlasInternalSession

    public class DefaultAtlasSession
    extends Object
    implements io.atlasmap.spi.AtlasInternalSession
    • Constructor Detail

      • DefaultAtlasSession

        public DefaultAtlasSession​(DefaultAtlasContext context)
                            throws io.atlasmap.api.AtlasException
        Throws:
        io.atlasmap.api.AtlasException
    • Method Detail

      • initialize

        protected void initialize()
      • getAtlasContext

        public DefaultAtlasContext getAtlasContext()
        Specified by:
        getAtlasContext in interface io.atlasmap.api.AtlasSession
      • setAtlasContext

        public void setAtlasContext​(io.atlasmap.api.AtlasContext atlasContext)
        Specified by:
        setAtlasContext in interface io.atlasmap.api.AtlasSession
      • getMapping

        public io.atlasmap.v2.AtlasMapping getMapping()
        Specified by:
        getMapping in interface io.atlasmap.api.AtlasSession
      • getValidations

        public io.atlasmap.v2.Validations getValidations()
        Specified by:
        getValidations in interface io.atlasmap.api.AtlasSession
      • setValidations

        public void setValidations​(io.atlasmap.v2.Validations validations)
        Specified by:
        setValidations in interface io.atlasmap.api.AtlasSession
      • getAudits

        public io.atlasmap.v2.Audits getAudits()
        Specified by:
        getAudits in interface io.atlasmap.api.AtlasSession
      • setAudits

        public void setAudits​(io.atlasmap.v2.Audits audits)
        Specified by:
        setAudits in interface io.atlasmap.api.AtlasSession
      • getDefaultSourceDocument

        public Object getDefaultSourceDocument()
        Specified by:
        getDefaultSourceDocument in interface io.atlasmap.api.AtlasSession
      • getSourceDocument

        public Object getSourceDocument​(String docId)
        Specified by:
        getSourceDocument in interface io.atlasmap.api.AtlasSession
      • hasSourceDocument

        public boolean hasSourceDocument​(String docId)
        Specified by:
        hasSourceDocument in interface io.atlasmap.api.AtlasSession
      • getSourceDocumentMap

        public Map<String,​Object> getSourceDocumentMap()
        Specified by:
        getSourceDocumentMap in interface io.atlasmap.api.AtlasSession
      • getDefaultTargetDocument

        public Object getDefaultTargetDocument()
        Specified by:
        getDefaultTargetDocument in interface io.atlasmap.api.AtlasSession
      • getTargetDocument

        public Object getTargetDocument​(String docId)
        Specified by:
        getTargetDocument in interface io.atlasmap.api.AtlasSession
      • hasTargetDocument

        public boolean hasTargetDocument​(String docId)
        Specified by:
        hasTargetDocument in interface io.atlasmap.api.AtlasSession
      • getTargetDocumentMap

        public Map<String,​Object> getTargetDocumentMap()
        Specified by:
        getTargetDocumentMap in interface io.atlasmap.api.AtlasSession
      • setDefaultSourceDocument

        public void setDefaultSourceDocument​(Object sourceDoc)
        Specified by:
        setDefaultSourceDocument in interface io.atlasmap.api.AtlasSession
      • setSourceDocument

        public void setSourceDocument​(String docId,
                                      Object sourceDoc)
        Specified by:
        setSourceDocument in interface io.atlasmap.api.AtlasSession
      • setDefaultTargetDocument

        public void setDefaultTargetDocument​(Object targetDoc)
        Specified by:
        setDefaultTargetDocument in interface io.atlasmap.api.AtlasSession
      • setTargetDocument

        public void setTargetDocument​(String docId,
                                      Object targetDoc)
        Specified by:
        setTargetDocument in interface io.atlasmap.api.AtlasSession
      • getFieldReader

        public io.atlasmap.spi.AtlasFieldReader getFieldReader​(String docId)
        Specified by:
        getFieldReader in interface io.atlasmap.spi.AtlasInternalSession
      • getFieldReader

        public <T extends io.atlasmap.spi.AtlasFieldReader> T getFieldReader​(String docId,
                                                                             Class<T> clazz)
        Specified by:
        getFieldReader in interface io.atlasmap.spi.AtlasInternalSession
      • setFieldReader

        public void setFieldReader​(String docId,
                                   io.atlasmap.spi.AtlasFieldReader reader)
        Specified by:
        setFieldReader in interface io.atlasmap.spi.AtlasInternalSession
      • removeFieldReader

        public io.atlasmap.spi.AtlasFieldReader removeFieldReader​(String docId)
        Specified by:
        removeFieldReader in interface io.atlasmap.spi.AtlasInternalSession
      • getFieldWriter

        public io.atlasmap.spi.AtlasFieldWriter getFieldWriter​(String docId)
        Specified by:
        getFieldWriter in interface io.atlasmap.spi.AtlasInternalSession
      • getFieldWriter

        public <T extends io.atlasmap.spi.AtlasFieldWriter> T getFieldWriter​(String docId,
                                                                             Class<T> clazz)
        Specified by:
        getFieldWriter in interface io.atlasmap.spi.AtlasInternalSession
      • setFieldWriter

        public void setFieldWriter​(String docId,
                                   io.atlasmap.spi.AtlasFieldWriter writer)
        Specified by:
        setFieldWriter in interface io.atlasmap.spi.AtlasInternalSession
      • removeFieldWriter

        public io.atlasmap.spi.AtlasFieldWriter removeFieldWriter​(String docId)
        Specified by:
        removeFieldWriter in interface io.atlasmap.spi.AtlasInternalSession
      • head

        public io.atlasmap.spi.AtlasInternalSession.Head head()
        Specified by:
        head in interface io.atlasmap.spi.AtlasInternalSession
      • getProperties

        @Deprecated
        public Map<String,​Object> getProperties()
        Deprecated.
        Specified by:
        getProperties in interface io.atlasmap.api.AtlasSession
      • getSourceProperties

        public Map<String,​Object> getSourceProperties()
        Specified by:
        getSourceProperties in interface io.atlasmap.api.AtlasSession
      • getTargetProperties

        public Map<String,​Object> getTargetProperties()
        Specified by:
        getTargetProperties in interface io.atlasmap.api.AtlasSession
      • getAtlasPropertyStrategy

        public io.atlasmap.spi.AtlasPropertyStrategy getAtlasPropertyStrategy()
        Specified by:
        getAtlasPropertyStrategy in interface io.atlasmap.api.AtlasSession
      • setAtlasPropertyStrategy

        public void setAtlasPropertyStrategy​(io.atlasmap.spi.AtlasPropertyStrategy strategy)
        Specified by:
        setAtlasPropertyStrategy in interface io.atlasmap.api.AtlasSession
      • errorCount

        public Integer errorCount()
        Specified by:
        errorCount in interface io.atlasmap.api.AtlasSession
      • hasErrors

        public boolean hasErrors()
        Specified by:
        hasErrors in interface io.atlasmap.api.AtlasSession
      • hasWarns

        public boolean hasWarns()
        Specified by:
        hasWarns in interface io.atlasmap.api.AtlasSession
      • warnCount

        public Integer warnCount()
        Specified by:
        warnCount in interface io.atlasmap.api.AtlasSession
      • resolveModule

        public io.atlasmap.spi.AtlasModule resolveModule​(String docId)
        Specified by:
        resolveModule in interface io.atlasmap.spi.AtlasInternalSession
      • getSourcePropertyModule

        public PropertyModule getSourcePropertyModule()
      • getTargetPropertyModule

        public PropertyModule getTargetPropertyModule()