Package hydra.pg
Class Merging
- java.lang.Object
-
- hydra.pg.Merging
-
public class Merging extends java.lang.Object
Utilities for combining multiple vertex or edge types into a single "merged" vertex or edge type, and correspondingly encoding and decoding vertices and edges of these types.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Merging.IdAdapters<T,V>
A helper object which defines merged vertex and edge id types, and a value coder for each vertex and edge label.
-
Field Summary
Fields Modifier and Type Field Description static EdgeLabel
DEFAULT_EDGE_LABEL
static VertexLabel
DEFAULT_VERTEX_LABEL
static Merging.IdAdapters<LiteralType,Literal>
STRING_ID_ADAPTERS
-
Constructor Summary
Constructors Constructor Description Merging()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T,V>
Flow<Unit,StatelessAdapter<java.util.List<EdgeType<T>>,EdgeType<T>,Edge<V>,Edge<V>>>createEdgeAdapter(java.util.List<EdgeType<T>> types, Merging.IdAdapters<T,V> idAdapters, boolean unifyIdenticalTypes)
Create an edge adapter based on a list of edge types and given id adapters.static <T,V>
Flow<Unit,StatelessAdapter<java.util.List<VertexType<T>>,VertexType<T>,Vertex<V>,Vertex<V>>>createVertexAdapter(java.util.List<VertexType<T>> types, Merging.IdAdapters<T,V> idAdapters, boolean unifyIdenticalTypes)
Create a vertex adapter based on a list of vertex types and given id adapters.
-
-
-
Field Detail
-
DEFAULT_VERTEX_LABEL
public static VertexLabel DEFAULT_VERTEX_LABEL
-
DEFAULT_EDGE_LABEL
public static EdgeLabel DEFAULT_EDGE_LABEL
-
STRING_ID_ADAPTERS
public static final Merging.IdAdapters<LiteralType,Literal> STRING_ID_ADAPTERS
-
-
Method Detail
-
createVertexAdapter
public static <T,V> Flow<Unit,StatelessAdapter<java.util.List<VertexType<T>>,VertexType<T>,Vertex<V>,Vertex<V>>> createVertexAdapter(java.util.List<VertexType<T>> types, Merging.IdAdapters<T,V> idAdapters, boolean unifyIdenticalTypes)
Create a vertex adapter based on a list of vertex types and given id adapters.
-
createEdgeAdapter
public static <T,V> Flow<Unit,StatelessAdapter<java.util.List<EdgeType<T>>,EdgeType<T>,Edge<V>,Edge<V>>> createEdgeAdapter(java.util.List<EdgeType<T>> types, Merging.IdAdapters<T,V> idAdapters, boolean unifyIdenticalTypes)
Create an edge adapter based on a list of edge types and given id adapters.
-
-