Package tech.ytsaurus.core.cypress
Class RichYPath
- java.lang.Object
-
- tech.ytsaurus.core.cypress.RichYPath
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description YPath
after(int index)
YPath
all()
YPath
allAttributes()
YPath
append(boolean append)
YPath
attribute(java.lang.String key)
YPath
before(int index)
YPath
begin()
YPath
child(int index)
YPath
child(java.lang.String key)
static YPath
cypressRoot()
YPath
end()
boolean
equals(java.lang.Object o)
YPath
foreign(boolean foreign)
static YPath
fromString(java.lang.String data)
static YPath
fromTree(tech.ytsaurus.ysontree.YTreeNode node)
java.util.Optional<tech.ytsaurus.ysontree.YTreeNode>
getAdditionalAttribute(java.lang.String attributeName)
java.util.Map<java.lang.String,tech.ytsaurus.ysontree.YTreeNode>
getAdditionalAttributes()
java.util.Optional<java.lang.Boolean>
getAppend()
java.util.Optional<java.lang.Boolean>
getBypassArtifactCache()
java.util.List<java.lang.String>
getColumns()
java.util.Optional<java.lang.Boolean>
getExecutable()
java.util.Optional<java.lang.Boolean>
getForeign()
java.util.Optional<java.lang.String>
getFormat()
java.util.Optional<java.lang.Boolean>
getPrimary()
java.util.List<RangeCriteria>
getRanges()
java.util.Map<java.lang.String,java.lang.String>
getRenameColumns()
java.util.Optional<tech.ytsaurus.ysontree.YTreeNode>
getSchema()
java.util.List<java.lang.String>
getSortedBy()
java.util.Optional<java.lang.Long>
getTimestamp()
int
hashCode()
boolean
hasObjectRootDesignator()
boolean
isAttribute()
boolean
isRoot()
YPath
justPath()
Get path without RichPath additional attributes.java.lang.String
name()
Get last component of the path (e.g.static YPath
objectRoot(GUID id)
YPath
parent()
YPath
plusAdditionalAttribute(java.lang.String key, tech.ytsaurus.ysontree.YTreeNode value)
YPath
plusRange(RangeCriteria range)
YPath
plusRenameColumns(java.util.Map<java.lang.String,java.lang.String> renameColumns)
YPath
primary(boolean primary)
YPath
ranges(java.util.List<RangeCriteria> ranges)
static YPath
simple(java.lang.String path)
YPath
sortedBy(java.util.List<java.lang.String> sortedBy)
java.lang.String
toStableString()
java.lang.String
toString()
tech.ytsaurus.ysontree.YTreeNode
toTree()
tech.ytsaurus.ysontree.YTreeBuilder
toTree(tech.ytsaurus.ysontree.YTreeBuilder builder)
YPath
withAdditionalAttributes(java.util.Map<java.lang.String,tech.ytsaurus.ysontree.YTreeNode> additionalAttributes)
YPath
withBypassArtifactCache(boolean bypassArtifactCache)
YPath
withColumns(java.util.Collection<java.lang.String> columns)
YPath
withExecutable(boolean executable)
YPath
withFormat(java.lang.String format)
Пример использования: - YPath.simple("//some/table").withFormat("yson") Комментарий к примеру: удобно, например, для того, чтобы при запуске джобы указанная таблица-словарь автоматически была доставлена в локальную рабочую директорию джобы как yson-файл.YPath
withObjectRoot(GUID id)
YPath
withRenameColumns(java.util.Map<java.lang.String,java.lang.String> renameColumns)
YPath
withSchema(tech.ytsaurus.ysontree.YTreeNode schema)
YPath
withTimestamp(long timestamp)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface tech.ytsaurus.core.cypress.YPath
getYtTimestamp, plusAdditionalAttribute, plusRenameColumns, ranges, sortedBy, withColumns, withExact, withRange, withRange, withYtTimestamp
-
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
justPath
public YPath justPath()
Get path without RichPath additional attributes.
-
name
public java.lang.String name()
Get last component of the path (e.g. `//foo/bar` --- `bar`).
-
isAttribute
public boolean isAttribute()
- Specified by:
isAttribute
in interfaceYPath
-
hasObjectRootDesignator
public boolean hasObjectRootDesignator()
- Specified by:
hasObjectRootDesignator
in interfaceYPath
-
withObjectRoot
public YPath withObjectRoot(GUID id)
- Specified by:
withObjectRoot
in interfaceYPath
-
allAttributes
public YPath allAttributes()
- Specified by:
allAttributes
in interfaceYPath
-
getAppend
public java.util.Optional<java.lang.Boolean> getAppend()
-
getPrimary
public java.util.Optional<java.lang.Boolean> getPrimary()
- Specified by:
getPrimary
in interfaceYPath
-
getForeign
public java.util.Optional<java.lang.Boolean> getForeign()
- Specified by:
getForeign
in interfaceYPath
-
getSchema
public java.util.Optional<tech.ytsaurus.ysontree.YTreeNode> getSchema()
-
withSchema
public YPath withSchema(tech.ytsaurus.ysontree.YTreeNode schema)
- Specified by:
withSchema
in interfaceYPath
-
getRanges
public java.util.List<RangeCriteria> getRanges()
-
ranges
public YPath ranges(java.util.List<RangeCriteria> ranges)
-
plusRange
public YPath plusRange(RangeCriteria range)
-
getColumns
public java.util.List<java.lang.String> getColumns()
- Specified by:
getColumns
in interfaceYPath
-
withColumns
public YPath withColumns(java.util.Collection<java.lang.String> columns)
- Specified by:
withColumns
in interfaceYPath
-
getRenameColumns
public java.util.Map<java.lang.String,java.lang.String> getRenameColumns()
- Specified by:
getRenameColumns
in interfaceYPath
-
withRenameColumns
public YPath withRenameColumns(java.util.Map<java.lang.String,java.lang.String> renameColumns)
- Specified by:
withRenameColumns
in interfaceYPath
-
plusRenameColumns
public YPath plusRenameColumns(java.util.Map<java.lang.String,java.lang.String> renameColumns)
- Specified by:
plusRenameColumns
in interfaceYPath
-
getSortedBy
public java.util.List<java.lang.String> getSortedBy()
- Specified by:
getSortedBy
in interfaceYPath
-
sortedBy
public YPath sortedBy(java.util.List<java.lang.String> sortedBy)
-
getTimestamp
public java.util.Optional<java.lang.Long> getTimestamp()
- Specified by:
getTimestamp
in interfaceYPath
-
withTimestamp
public YPath withTimestamp(long timestamp)
- Specified by:
withTimestamp
in interfaceYPath
-
getFormat
public java.util.Optional<java.lang.String> getFormat()
-
withFormat
public YPath withFormat(java.lang.String format)
Description copied from interface:YPath
Пример использования: - YPath.simple("//some/table").withFormat("yson") Комментарий к примеру: удобно, например, для того, чтобы при запуске джобы указанная таблица-словарь автоматически была доставлена в локальную рабочую директорию джобы как yson-файл.- Specified by:
withFormat
in interfaceYPath
-
getExecutable
public java.util.Optional<java.lang.Boolean> getExecutable()
- Specified by:
getExecutable
in interfaceYPath
-
withExecutable
public YPath withExecutable(boolean executable)
- Specified by:
withExecutable
in interfaceYPath
-
getAdditionalAttribute
public java.util.Optional<tech.ytsaurus.ysontree.YTreeNode> getAdditionalAttribute(java.lang.String attributeName)
- Specified by:
getAdditionalAttribute
in interfaceYPath
-
getAdditionalAttributes
public java.util.Map<java.lang.String,tech.ytsaurus.ysontree.YTreeNode> getAdditionalAttributes()
- Specified by:
getAdditionalAttributes
in interfaceYPath
-
withAdditionalAttributes
public YPath withAdditionalAttributes(java.util.Map<java.lang.String,tech.ytsaurus.ysontree.YTreeNode> additionalAttributes)
- Specified by:
withAdditionalAttributes
in interfaceYPath
-
plusAdditionalAttribute
public YPath plusAdditionalAttribute(java.lang.String key, tech.ytsaurus.ysontree.YTreeNode value)
- Specified by:
plusAdditionalAttribute
in interfaceYPath
-
getBypassArtifactCache
public java.util.Optional<java.lang.Boolean> getBypassArtifactCache()
- Specified by:
getBypassArtifactCache
in interfaceYPath
-
withBypassArtifactCache
public YPath withBypassArtifactCache(boolean bypassArtifactCache)
- Specified by:
withBypassArtifactCache
in interfaceYPath
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStableString
public java.lang.String toStableString()
- Specified by:
toStableString
in interfaceYPath
-
toTree
public tech.ytsaurus.ysontree.YTreeBuilder toTree(tech.ytsaurus.ysontree.YTreeBuilder builder)
-
cypressRoot
public static YPath cypressRoot()
-
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)
-
-