Package com.im.df.api.ddl
Class DFDataTree.Path
- java.lang.Object
-
- com.im.df.api.ddl.DFDataTree.Path
-
- Enclosing interface:
- DFDataTree
public static final class DFDataTree.Path extends java.lang.Object
Defines a path inDFDataTree
. The path contains a sequence ofDFDataTree.Edge
s, aDFDataTree.Vertex
which is the furthermost known Vertex from the root Vertex and the row ID in that Vertex.- Since:
- 15.7.27
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DFDataTree.Path
create(DFDataTree dataTree, DFDataTree.Vertex vertex)
Creates a new data tree path without edges.static DFDataTree.Path
create(DFDataTree dataTree, java.util.List<DFDataTree.Edge> edges)
Creates a new data tree path containing a sequence ofDFEntity
s which should be updated.boolean
equals(java.lang.Object obj)
com.google.common.collect.ImmutableList<DFDataTree.Edge>
getEdges()
Returns the edges in the data tree path.DFDataTree.Vertex
getFirstVertex()
DFDataTree.Vertex
getLastVertex()
DFDataTree.Vertex
getVertex()
Returns the last vertex on the path.int
hashCode()
-
-
-
Method Detail
-
create
public static DFDataTree.Path create(DFDataTree dataTree, DFDataTree.Vertex vertex)
Creates a new data tree path without edges. This will be translated to basic update in oneDFEntity
.- Parameters:
dataTree
- The data treevertex
- The vertex to update.- Returns:
- New data tree path.
-
create
public static DFDataTree.Path create(DFDataTree dataTree, java.util.List<DFDataTree.Edge> edges)
Creates a new data tree path containing a sequence ofDFEntity
s which should be updated. This will be translated to sequence of inserts and updates in the entities.- Parameters:
dataTree
- The data treeedges
- The edges on the path.- Returns:
- New data tree path.
-
getVertex
public DFDataTree.Vertex getVertex()
Returns the last vertex on the path.- Returns:
- Last vertex on the path.
-
getFirstVertex
public DFDataTree.Vertex getFirstVertex()
-
getLastVertex
public DFDataTree.Vertex getLastVertex()
-
getEdges
public com.google.common.collect.ImmutableList<DFDataTree.Edge> getEdges()
Returns the edges in the data tree path.- Returns:
- The edges.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-