public class Translate extends Object
Constructor and Description |
---|
Translate() |
Modifier and Type | Method and Description |
---|---|
static <OLD,NEW,EV> |
translateEdgeIds(DataSet<Edge<OLD,EV>> edges,
TranslateFunction<OLD,NEW> translator)
Translate
Edge IDs using the given TranslateFunction . |
static <OLD,NEW,EV> |
translateEdgeIds(DataSet<Edge<OLD,EV>> edges,
TranslateFunction<OLD,NEW> translator,
int parallelism)
Translate
Edge IDs using the given TranslateFunction . |
static <K,OLD,NEW> |
translateEdgeValues(DataSet<Edge<K,OLD>> edges,
TranslateFunction<OLD,NEW> translator)
Translate
Edge values using the given TranslateFunction . |
static <K,OLD,NEW> |
translateEdgeValues(DataSet<Edge<K,OLD>> edges,
TranslateFunction<OLD,NEW> translator,
int parallelism)
Translate
Edge values using the given TranslateFunction . |
static <OLD,NEW,VV> |
translateVertexIds(DataSet<Vertex<OLD,VV>> vertices,
TranslateFunction<OLD,NEW> translator)
Translate
Vertex IDs using the given TranslateFunction . |
static <OLD,NEW,VV> |
translateVertexIds(DataSet<Vertex<OLD,VV>> vertices,
TranslateFunction<OLD,NEW> translator,
int parallelism)
Translate
Vertex IDs using the given TranslateFunction . |
static <K,OLD,NEW> |
translateVertexValues(DataSet<Vertex<K,OLD>> vertices,
TranslateFunction<OLD,NEW> translator)
Translate
Vertex values using the given TranslateFunction . |
static <K,OLD,NEW> |
translateVertexValues(DataSet<Vertex<K,OLD>> vertices,
TranslateFunction<OLD,NEW> translator,
int parallelism)
Translate
Vertex values using the given TranslateFunction . |
public static <OLD,NEW,VV> DataSet<Vertex<NEW,VV>> translateVertexIds(DataSet<Vertex<OLD,VV>> vertices, TranslateFunction<OLD,NEW> translator)
Vertex
IDs using the given TranslateFunction
.OLD
- old vertex ID typeNEW
- new vertex ID typeVV
- vertex value typevertices
- input verticestranslator
- implements conversion from OLD
to NEW
public static <OLD,NEW,VV> DataSet<Vertex<NEW,VV>> translateVertexIds(DataSet<Vertex<OLD,VV>> vertices, TranslateFunction<OLD,NEW> translator, int parallelism)
Vertex
IDs using the given TranslateFunction
.OLD
- old vertex ID typeNEW
- new vertex ID typeVV
- vertex value typevertices
- input verticestranslator
- implements conversion from OLD
to NEW
parallelism
- operator parallelismpublic static <OLD,NEW,EV> DataSet<Edge<NEW,EV>> translateEdgeIds(DataSet<Edge<OLD,EV>> edges, TranslateFunction<OLD,NEW> translator)
Edge
IDs using the given TranslateFunction
.OLD
- old edge ID typeNEW
- new edge ID typeEV
- edge value typeedges
- input edgestranslator
- implements conversion from OLD
to NEW
public static <OLD,NEW,EV> DataSet<Edge<NEW,EV>> translateEdgeIds(DataSet<Edge<OLD,EV>> edges, TranslateFunction<OLD,NEW> translator, int parallelism)
Edge
IDs using the given TranslateFunction
.OLD
- old edge ID typeNEW
- new edge ID typeEV
- edge value typeedges
- input edgestranslator
- implements conversion from OLD
to NEW
parallelism
- operator parallelismpublic static <K,OLD,NEW> DataSet<Vertex<K,NEW>> translateVertexValues(DataSet<Vertex<K,OLD>> vertices, TranslateFunction<OLD,NEW> translator)
Vertex
values using the given TranslateFunction
.K
- vertex ID typeOLD
- old vertex value typeNEW
- new vertex value typevertices
- input verticestranslator
- implements conversion from OLD
to NEW
public static <K,OLD,NEW> DataSet<Vertex<K,NEW>> translateVertexValues(DataSet<Vertex<K,OLD>> vertices, TranslateFunction<OLD,NEW> translator, int parallelism)
Vertex
values using the given TranslateFunction
.K
- vertex ID typeOLD
- old vertex value typeNEW
- new vertex value typevertices
- input verticestranslator
- implements conversion from OLD
to NEW
parallelism
- operator parallelismpublic static <K,OLD,NEW> DataSet<Edge<K,NEW>> translateEdgeValues(DataSet<Edge<K,OLD>> edges, TranslateFunction<OLD,NEW> translator)
Edge
values using the given TranslateFunction
.K
- edge ID typeOLD
- old edge value typeNEW
- new edge value typeedges
- input edgestranslator
- implements conversion from OLD
to NEW
public static <K,OLD,NEW> DataSet<Edge<K,NEW>> translateEdgeValues(DataSet<Edge<K,OLD>> edges, TranslateFunction<OLD,NEW> translator, int parallelism)
Edge
values using the given TranslateFunction
.K
- vertex ID typeOLD
- old edge value typeNEW
- new edge value typeedges
- input edgestranslator
- implements conversion from OLD
to NEW
parallelism
- operator parallelismCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.