public class DeleteGraphRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.deleteGraph(DeleteGraphRequest).
Deletes an existing graph from the graph server and/or persist.
| Modifier and Type | Class and Description |
|---|---|
static class |
DeleteGraphRequest.Options
Optional parameters.
|
| 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() |
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.
|
DeleteGraphRequest |
setGraphName(String graphName) |
DeleteGraphRequest |
setOptions(Map<String,String> options) |
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.
Map.public static org.apache.avro.Schema getClassSchema()
public String getGraphName()
public DeleteGraphRequest setGraphName(String graphName)
graphName - Name of the graph to be deleted.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.
Map.public DeleteGraphRequest setOptions(Map<String,String> options)
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.
Map.this to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainerpublic Object get(int index)
get in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to getIndexOutOfBoundsExceptionpublic void put(int index,
Object value)
put in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to setvalue - the value to setIndexOutOfBoundsExceptionCopyright © 2020. All rights reserved.