Tabnine Logo
VertexMetrics.setParallelism
Code IndexAdd Tabnine to your IDE (free)

How to use
setParallelism
method
in
org.apache.flink.graph.library.metric.undirected.VertexMetrics

Best Java code snippets using org.apache.flink.graph.library.metric.undirected.VertexMetrics.setParallelism (Showing top 9 results out of 315)

origin: apache/flink

@Override
public DataSet plan(Graph<K, VV, EV> graph) throws Exception {
  switch (order.getValue()) {
    case DIRECTED:
      vertexMetrics = graph
        .run(new org.apache.flink.graph.library.metric.directed.VertexMetrics<K, VV, EV>()
          .setParallelism(parallelism.getValue().intValue()));
      edgeMetrics = graph
        .run(new org.apache.flink.graph.library.metric.directed.EdgeMetrics<K, VV, EV>()
          .setParallelism(parallelism.getValue().intValue()));
      break;
    case UNDIRECTED:
      vertexMetrics = graph
        .run(new org.apache.flink.graph.library.metric.undirected.VertexMetrics<K, VV, EV>()
          .setParallelism(parallelism.getValue().intValue()));
      edgeMetrics = graph
        .run(new org.apache.flink.graph.library.metric.undirected.EdgeMetrics<K, VV, EV>()
          .setParallelism(parallelism.getValue().intValue()));
      break;
  }
  return null;
}
origin: apache/flink

@Override
public GlobalClusteringCoefficient<K, VV, EV> run(Graph<K, VV, EV> input)
    throws Exception {
  super.run(input);
  triangleCount = new Count<>();
  DataSet<TriangleListing.Result<K>> triangles = input
    .run(new TriangleListing<K, VV, EV>()
      .setSortTriangleVertices(false)
      .setParallelism(parallelism));
  triangleCount.run(triangles);
  vertexMetrics = new VertexMetrics<K, VV, EV>()
    .setParallelism(parallelism);
  input.run(vertexMetrics);
  return this;
}
origin: apache/flink

@Override
public TriadicCensus<K, VV, EV> run(Graph<K, VV, EV> input)
    throws Exception {
  super.run(input);
  triangleCount = new Count<>();
  DataSet<TriangleListing.Result<K>> triangles = input
    .run(new TriangleListing<K, VV, EV>()
      .setSortTriangleVertices(false)
      .setParallelism(parallelism));
  triangleCount.run(triangles);
  vertexMetrics = new VertexMetrics<K, VV, EV>()
    .setParallelism(parallelism);
  input.run(vertexMetrics);
  return this;
}
origin: org.apache.flink/flink-gelly_2.10

@Override
public GlobalClusteringCoefficient<K, VV, EV> run(Graph<K, VV, EV> input)
    throws Exception {
  super.run(input);
  triangleCount = new Count<>();
  DataSet<TriangleListing.Result<K>> triangles = input
    .run(new TriangleListing<K, VV, EV>()
      .setSortTriangleVertices(false)
      .setLittleParallelism(littleParallelism));
  triangleCount.run(triangles);
  vertexMetrics = new VertexMetrics<K, VV, EV>()
    .setParallelism(littleParallelism);
  input.run(vertexMetrics);
  return this;
}
origin: org.apache.flink/flink-gelly_2.11

@Override
public GlobalClusteringCoefficient<K, VV, EV> run(Graph<K, VV, EV> input)
    throws Exception {
  super.run(input);
  triangleCount = new Count<>();
  DataSet<TriangleListing.Result<K>> triangles = input
    .run(new TriangleListing<K, VV, EV>()
      .setSortTriangleVertices(false)
      .setParallelism(parallelism));
  triangleCount.run(triangles);
  vertexMetrics = new VertexMetrics<K, VV, EV>()
    .setParallelism(parallelism);
  input.run(vertexMetrics);
  return this;
}
origin: com.alibaba.blink/flink-gelly

@Override
public GlobalClusteringCoefficient<K, VV, EV> run(Graph<K, VV, EV> input)
    throws Exception {
  super.run(input);
  triangleCount = new Count<>();
  DataSet<TriangleListing.Result<K>> triangles = input
    .run(new TriangleListing<K, VV, EV>()
      .setSortTriangleVertices(false)
      .setParallelism(parallelism));
  triangleCount.run(triangles);
  vertexMetrics = new VertexMetrics<K, VV, EV>()
    .setParallelism(parallelism);
  input.run(vertexMetrics);
  return this;
}
origin: org.apache.flink/flink-gelly_2.11

@Override
public TriadicCensus<K, VV, EV> run(Graph<K, VV, EV> input)
    throws Exception {
  super.run(input);
  triangleCount = new Count<>();
  DataSet<TriangleListing.Result<K>> triangles = input
    .run(new TriangleListing<K, VV, EV>()
      .setSortTriangleVertices(false)
      .setParallelism(parallelism));
  triangleCount.run(triangles);
  vertexMetrics = new VertexMetrics<K, VV, EV>()
    .setParallelism(parallelism);
  input.run(vertexMetrics);
  return this;
}
origin: org.apache.flink/flink-gelly_2.10

@Override
public TriadicCensus<K, VV, EV> run(Graph<K, VV, EV> input)
    throws Exception {
  super.run(input);
  triangleCount = new Count<>();
  DataSet<TriangleListing.Result<K>> triangles = input
    .run(new TriangleListing<K, VV, EV>()
      .setSortTriangleVertices(false)
      .setLittleParallelism(littleParallelism));
  triangleCount.run(triangles);
  vertexMetrics = new VertexMetrics<K, VV, EV>()
    .setParallelism(littleParallelism);
  input.run(vertexMetrics);
  return this;
}
origin: com.alibaba.blink/flink-gelly

@Override
public TriadicCensus<K, VV, EV> run(Graph<K, VV, EV> input)
    throws Exception {
  super.run(input);
  triangleCount = new Count<>();
  DataSet<TriangleListing.Result<K>> triangles = input
    .run(new TriangleListing<K, VV, EV>()
      .setSortTriangleVertices(false)
      .setParallelism(parallelism));
  triangleCount.run(triangles);
  vertexMetrics = new VertexMetrics<K, VV, EV>()
    .setParallelism(parallelism);
  input.run(vertexMetrics);
  return this;
}
org.apache.flink.graph.library.metric.undirectedVertexMetricssetParallelism

Javadoc

Override the operator parallelism.

Popular methods of VertexMetrics

  • <init>
  • getResult

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • JTable (javax.swing)
  • Top PhpStorm 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