Class RichYPath

  • All Implemented Interfaces:
    YPath

    @NonNullFields
    public class RichYPath
    extends java.lang.Object
    implements YPath
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • justPath

        public YPath justPath()
        Get path without RichPath additional attributes.
        Specified by:
        justPath in interface YPath
        Returns:
        path without RichPath additional attributes
      • name

        public java.lang.String name()
        Get last component of the path (e.g. `//foo/bar` --- `bar`).
        Specified by:
        name in interface YPath
      • isRoot

        public boolean isRoot()
        Specified by:
        isRoot in interface YPath
      • isAttribute

        public boolean isAttribute()
        Specified by:
        isAttribute in interface YPath
      • child

        public YPath child​(java.lang.String key)
        Specified by:
        child in interface YPath
      • after

        public YPath after​(int index)
        Specified by:
        after in interface YPath
      • before

        public YPath before​(int index)
        Specified by:
        before in interface YPath
      • end

        public YPath end()
        Specified by:
        end in interface YPath
      • child

        public YPath child​(int index)
        Specified by:
        child in interface YPath
      • attribute

        public YPath attribute​(java.lang.String key)
        Specified by:
        attribute in interface YPath
      • all

        public YPath all()
        Specified by:
        all in interface YPath
      • getAppend

        public java.util.Optional<java.lang.Boolean> getAppend()
        Specified by:
        getAppend in interface YPath
      • append

        public YPath append​(boolean append)
        Specified by:
        append in interface YPath
      • getPrimary

        public java.util.Optional<java.lang.Boolean> getPrimary()
        Specified by:
        getPrimary in interface YPath
      • primary

        public YPath primary​(boolean primary)
        Specified by:
        primary in interface YPath
      • getForeign

        public java.util.Optional<java.lang.Boolean> getForeign()
        Specified by:
        getForeign in interface YPath
      • foreign

        public YPath foreign​(boolean foreign)
        Specified by:
        foreign in interface YPath
      • getSchema

        public java.util.Optional<tech.ytsaurus.ysontree.YTreeNode> getSchema()
        Specified by:
        getSchema in interface YPath
      • withSchema

        public YPath withSchema​(tech.ytsaurus.ysontree.YTreeNode schema)
        Specified by:
        withSchema in interface YPath
      • getColumns

        public java.util.List<java.lang.String> getColumns()
        Specified by:
        getColumns in interface YPath
      • withColumns

        public YPath withColumns​(java.util.Collection<java.lang.String> columns)
        Specified by:
        withColumns in interface YPath
      • getRenameColumns

        public java.util.Map<java.lang.String,​java.lang.String> getRenameColumns()
        Specified by:
        getRenameColumns in interface YPath
      • withRenameColumns

        public YPath withRenameColumns​(java.util.Map<java.lang.String,​java.lang.String> renameColumns)
        Specified by:
        withRenameColumns in interface YPath
      • plusRenameColumns

        public YPath plusRenameColumns​(java.util.Map<java.lang.String,​java.lang.String> renameColumns)
        Specified by:
        plusRenameColumns in interface YPath
      • getSortedBy

        public java.util.List<java.lang.String> getSortedBy()
        Specified by:
        getSortedBy in interface YPath
      • sortedBy

        public YPath sortedBy​(java.util.List<java.lang.String> sortedBy)
        Specified by:
        sortedBy in interface YPath
      • getTimestamp

        public java.util.Optional<java.lang.Long> getTimestamp()
        Specified by:
        getTimestamp in interface YPath
      • getFormat

        public java.util.Optional<java.lang.String> getFormat()
        Specified by:
        getFormat in interface YPath
      • withFormat

        public YPath withFormat​(java.lang.String format)
        Description copied from interface: YPath
        Пример использования: - YPath.simple("//some/table").withFormat("yson") Комментарий к примеру: удобно, например, для того, чтобы при запуске джобы указанная таблица-словарь автоматически была доставлена в локальную рабочую директорию джобы как yson-файл.
        Specified by:
        withFormat in interface YPath
      • getExecutable

        public java.util.Optional<java.lang.Boolean> getExecutable()
        Specified by:
        getExecutable in interface YPath
      • withExecutable

        public YPath withExecutable​(boolean executable)
        Specified by:
        withExecutable in interface YPath
      • getAdditionalAttribute

        public java.util.Optional<tech.ytsaurus.ysontree.YTreeNode> getAdditionalAttribute​(java.lang.String attributeName)
        Specified by:
        getAdditionalAttribute in interface YPath
      • getAdditionalAttributes

        public java.util.Map<java.lang.String,​tech.ytsaurus.ysontree.YTreeNode> getAdditionalAttributes()
        Specified by:
        getAdditionalAttributes in interface YPath
      • withAdditionalAttributes

        public YPath withAdditionalAttributes​(java.util.Map<java.lang.String,​tech.ytsaurus.ysontree.YTreeNode> additionalAttributes)
        Specified by:
        withAdditionalAttributes in interface YPath
      • plusAdditionalAttribute

        public YPath plusAdditionalAttribute​(java.lang.String key,
                                             tech.ytsaurus.ysontree.YTreeNode value)
        Specified by:
        plusAdditionalAttribute in interface YPath
      • getBypassArtifactCache

        public java.util.Optional<java.lang.Boolean> getBypassArtifactCache()
        Specified by:
        getBypassArtifactCache in interface YPath
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toStableString

        public java.lang.String toStableString()
        Specified by:
        toStableString in interface YPath
      • toTree

        public tech.ytsaurus.ysontree.YTreeNode toTree()
        Specified by:
        toTree in interface YPath
      • toTree

        public tech.ytsaurus.ysontree.YTreeBuilder toTree​(tech.ytsaurus.ysontree.YTreeBuilder builder)
        Specified by:
        toTree in interface YPath
      • cypressRoot

        public static YPath cypressRoot()
      • objectRoot

        public static YPath objectRoot​(GUID id)
      • simple

        public static YPath simple​(java.lang.String path)
      • fromTree

        public static YPath fromTree​(tech.ytsaurus.ysontree.YTreeNode node)
      • fromString

        public static YPath fromString​(java.lang.String data)