Tabnine Logo
Triplet
Code IndexAdd Tabnine to your IDE (free)

How to use
Triplet
in
org.apache.flink.graph

Best Java code snippets using org.apache.flink.graph.Triplet (Showing top 5 results out of 315)

origin: apache/flink

  @Override
  public void join(Tuple4<K, K, VV, EV> tripletWithSrcValSet,
          Vertex<K, VV> vertex, Collector<Triplet<K, VV, EV>> collector) throws Exception {
    collector.collect(new Triplet<>(tripletWithSrcValSet.f0, tripletWithSrcValSet.f1,
        tripletWithSrcValSet.f2, vertex.getValue(), tripletWithSrcValSet.f3));
  }
}
origin: apache/flink

  @Override
  public Tuple3<Long, Long, Double> map(Triplet<Long, Point, Double> triplet)
      throws Exception {
    Vertex<Long, Point> srcVertex = triplet.getSrcVertex();
    Vertex<Long, Point> trgVertex = triplet.getTrgVertex();
    return new Tuple3<>(srcVertex.getId(), trgVertex.getId(),
      srcVertex.getValue().euclideanDistance(trgVertex.getValue()));
  }
});
origin: org.apache.flink/flink-gelly_2.10

  @Override
  public void join(Tuple4<K, K, VV, EV> tripletWithSrcValSet,
          Vertex<K, VV> vertex, Collector<Triplet<K, VV, EV>> collector) throws Exception {
    collector.collect(new Triplet<>(tripletWithSrcValSet.f0, tripletWithSrcValSet.f1,
        tripletWithSrcValSet.f2, vertex.getValue(), tripletWithSrcValSet.f3));
  }
}
origin: com.alibaba.blink/flink-gelly

  @Override
  public void join(Tuple4<K, K, VV, EV> tripletWithSrcValSet,
          Vertex<K, VV> vertex, Collector<Triplet<K, VV, EV>> collector) throws Exception {
    collector.collect(new Triplet<>(tripletWithSrcValSet.f0, tripletWithSrcValSet.f1,
        tripletWithSrcValSet.f2, vertex.getValue(), tripletWithSrcValSet.f3));
  }
}
origin: org.apache.flink/flink-gelly_2.11

  @Override
  public void join(Tuple4<K, K, VV, EV> tripletWithSrcValSet,
          Vertex<K, VV> vertex, Collector<Triplet<K, VV, EV>> collector) throws Exception {
    collector.collect(new Triplet<>(tripletWithSrcValSet.f0, tripletWithSrcValSet.f1,
        tripletWithSrcValSet.f2, vertex.getValue(), tripletWithSrcValSet.f3));
  }
}
org.apache.flink.graphTriplet

Javadoc

A Triplet stores and retrieves the edges along with their corresponding source and target vertices. Triplets can be obtained from the input graph via the org.apache.flink.graph.Graph#getTriplets() method.

Most used methods

  • <init>
    Constructs a Triplet from a given source vertex, target vertex, and edge.
  • getSrcVertex
  • getTrgVertex

Popular in Java

  • Finding current android device location
  • runOnUiThread (Activity)
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • JTextField (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Runner (org.openjdk.jmh.runner)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now