public class Simplify extends Object implements Parameter<Simplify.Ordering>
This Parameter indicates whether to simplify the graph and if the graph should be
directed or undirected.
| Modifier and Type | Class and Description |
|---|---|
static class |
Simplify.Ordering
Whether and how to simplify the graph.
|
| Constructor and Description |
|---|
Simplify(ParameterizedBase owner)
Add this parameter to the list of parameters stored by owner.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.flink.api.java.utils.ParameterTool parameterTool)
Read and parse the parameter value from command-line arguments.
|
String |
getShortString() |
String |
getUsage()
An informal usage string.
|
Simplify.Ordering |
getValue()
Get the parameter value.
|
boolean |
isHidden()
A hidden parameter is parsed from the command-line configuration but is not printed in the
usage string.
|
<T extends Comparable<T>> |
simplify(org.apache.flink.graph.Graph<T,org.apache.flink.types.NullValue,org.apache.flink.types.NullValue> graph,
int parallelism)
Simplify the given graph based on the configured value.
|
public Simplify(ParameterizedBase owner)
owner - the Parameterized using this Parameterpublic String getUsage()
ParameterOptional parameters are enclosed by "[" and "]".
Generic values are represented by all-caps with specific values enclosed by "<" and ">".
getUsage in interface Parameter<Simplify.Ordering>public boolean isHidden()
ParameterisHidden in interface Parameter<Simplify.Ordering>public void configure(org.apache.flink.api.java.utils.ParameterTool parameterTool)
Parameterconfigure in interface Parameter<Simplify.Ordering>parameterTool - parameter parserpublic Simplify.Ordering getValue()
ParametergetValue in interface Parameter<Simplify.Ordering>public <T extends Comparable<T>> org.apache.flink.graph.Graph<T,org.apache.flink.types.NullValue,org.apache.flink.types.NullValue> simplify(org.apache.flink.graph.Graph<T,org.apache.flink.types.NullValue,org.apache.flink.types.NullValue> graph, int parallelism) throws Exception
T - graph key typegraph - input graphException - on errorpublic String getShortString()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.