public class RepartitionGraphRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.repartitionGraph(RepartitionGraphRequest)
.
Rebalances an existing partitioned graph. IMPORTANT: It's highly recommended that you review the Network Graphs & Solvers concepts documentation, the Graph REST Tutorial, and/or some graph examples before using this endpoint.
Modifier and Type | Class and Description |
---|---|
static class |
RepartitionGraphRequest.Options
Optional parameters.
|
Constructor and Description |
---|
RepartitionGraphRequest()
Constructs a RepartitionGraphRequest object with default parameters.
|
RepartitionGraphRequest(String graphName,
Map<String,String> options)
Constructs a RepartitionGraphRequest object with the specified
parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
get(int index)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getGraphName() |
Map<String,String> |
getOptions() |
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
int |
hashCode() |
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
RepartitionGraphRequest |
setGraphName(String graphName) |
RepartitionGraphRequest |
setOptions(Map<String,String> options) |
String |
toString() |
public RepartitionGraphRequest()
public RepartitionGraphRequest(String graphName, Map<String,String> options)
graphName
- Name of the graph resource to rebalance.options
- Optional parameters.
NEW_GRAPH_NAME
: If a non-empty value is specified, the
original graph will be kept
(non-default behaviour) and a new balanced graph will be
created under this given name. When the
value is empty (default), the generated 'balanced' graph
will replace the original 'unbalanced'
graph under the same graph name. The default value is
''.
SOURCE_NODE
: The distributed shortest path solve is run
from this source node to
all the nodes in the graph to create balaced partitions
using the iso-distance levels of the
solution. The source node is selected by the rebalance
algorithm automatically (default case when
the value is an empty string). Otherwise, the user
specified node is used as the source. The default value
is ''.
SQL_REQUEST_AVRO_JSON
: The default value is ''.
Map
.public static org.apache.avro.Schema getClassSchema()
public String getGraphName()
public RepartitionGraphRequest setGraphName(String graphName)
graphName
- Name of the graph resource to rebalance.this
to mimic the builder pattern.public Map<String,String> getOptions()
NEW_GRAPH_NAME
: If a non-empty value is specified, the original
graph will be kept
(non-default behaviour) and a new balanced graph will be created
under this given name. When the
value is empty (default), the generated 'balanced' graph will
replace the original 'unbalanced'
graph under the same graph name. The default value is ''.
SOURCE_NODE
: The distributed shortest path solve is run from
this source node to
all the nodes in the graph to create balaced partitions using
the iso-distance levels of the
solution. The source node is selected by the rebalance
algorithm automatically (default case when
the value is an empty string). Otherwise, the user specified
node is used as the source. The default value is ''.
SQL_REQUEST_AVRO_JSON
: The default value is ''.
Map
.public RepartitionGraphRequest setOptions(Map<String,String> options)
options
- Optional parameters.
NEW_GRAPH_NAME
: If a non-empty value is specified, the
original graph will be kept
(non-default behaviour) and a new balanced graph will be
created under this given name. When the
value is empty (default), the generated 'balanced' graph
will replace the original 'unbalanced'
graph under the same graph name. The default value is
''.
SOURCE_NODE
: The distributed shortest path solve is run
from this source node to
all the nodes in the graph to create balaced partitions
using the iso-distance levels of the
solution. The source node is selected by the rebalance
algorithm automatically (default case when
the value is an empty string). Otherwise, the user
specified node is used as the source. The default value
is ''.
SQL_REQUEST_AVRO_JSON
: The default value is ''.
Map
.this
to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
Copyright © 2024. All rights reserved.