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.ObjectDefines a path inDFDataTree. The path contains a sequence ofDFDataTree.Edges, aDFDataTree.Vertexwhich 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.Pathcreate(DFDataTree dataTree, DFDataTree.Vertex vertex)Creates a new data tree path without edges.static DFDataTree.Pathcreate(DFDataTree dataTree, java.util.List<DFDataTree.Edge> edges)Creates a new data tree path containing a sequence ofDFEntitys which should be updated.booleanequals(java.lang.Object obj)com.google.common.collect.ImmutableList<DFDataTree.Edge>getEdges()Returns the edges in the data tree path.DFDataTree.VertexgetFirstVertex()DFDataTree.VertexgetLastVertex()DFDataTree.VertexgetVertex()Returns the last vertex on the path.inthashCode()
-
-
-
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 ofDFEntitys 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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-