public class DeleteGraphRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.deleteGraph
.
Deletes an existing graph from the graph server and/or persist.
Modifier and Type | Class and Description |
---|---|
static class |
DeleteGraphRequest.Options
A set of string constants for the
DeleteGraphRequest parameter
options . |
Constructor and Description |
---|
DeleteGraphRequest()
Constructs a DeleteGraphRequest object with default parameters.
|
DeleteGraphRequest(String graphName,
Map<String,String> options)
Constructs a DeleteGraphRequest 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 to be deleted.
|
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.
|
DeleteGraphRequest |
setGraphName(String graphName)
Name of the graph to be deleted.
|
DeleteGraphRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
String |
toString() |
public DeleteGraphRequest()
public DeleteGraphRequest(String graphName, Map<String,String> options)
graphName
- Name of the graph to be deleted.options
- Optional parameters.
DELETE_PERSIST
:
If set to TRUE
, the graph
is removed from the server and persist. If set
to FALSE
, the graph is
removed from the server but is left in persist.
The graph can be reloaded from persist if it is
recreated with the same 'graph_name'.
Supported values:
The default value is TRUE
.
SERVER_ID
: Indicates
which graph server(s) to send the request to.
Default is to send to get information about all
the servers.
Map
.public static org.apache.avro.Schema getClassSchema()
public String getGraphName()
graphName
.public DeleteGraphRequest setGraphName(String graphName)
graphName
- The new value for graphName
.this
to mimic the builder pattern.public Map<String,String> getOptions()
DELETE_PERSIST
: If set to TRUE
, the graph is removed from the server and
persist. If set to FALSE
, the graph is
removed from the server but is left in persist. The graph can be
reloaded from persist if it is recreated with the same
'graph_name'.
Supported values:
The default value is TRUE
.
SERVER_ID
: Indicates which graph
server(s) to send the request to. Default is to send to get
information about all the servers.
Map
.options
.public DeleteGraphRequest setOptions(Map<String,String> options)
DELETE_PERSIST
: If set to TRUE
, the graph is removed from the server and
persist. If set to FALSE
, the graph is
removed from the server but is left in persist. The graph can be
reloaded from persist if it is recreated with the same
'graph_name'.
Supported values:
The default value is TRUE
.
SERVER_ID
: Indicates which graph
server(s) to send the request to. Default is to send to get
information about all the servers.
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.