public class RepartitionGraphRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.repartitionGraph
.
Rebalances an existing partitioned graph.
IMPORTANT: It's highly recommended that you review the 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
A set of string constants for the
RepartitionGraphRequest
parameter options . |
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()
Name of the graph resource to rebalance.
|
Map<String,String> |
getOptions()
Optional parameters.
|
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)
Name of the graph resource to rebalance.
|
RepartitionGraphRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
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()
graphName
.public RepartitionGraphRequest setGraphName(String graphName)
graphName
- The new value for graphName
.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
.options
.public RepartitionGraphRequest setOptions(Map<String,String> options)
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
.options
- The new value for options
.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 © 2025. All rights reserved.