public class ShowGraphRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.showGraph(ShowGraphRequest)
.
Shows information and characteristics of graphs that exist on the graph server.
Modifier and Type | Class and Description |
---|---|
static class |
ShowGraphRequest.Options
Optional parameters.
|
Constructor and Description |
---|
ShowGraphRequest()
Constructs a ShowGraphRequest object with default parameters.
|
ShowGraphRequest(String graphName,
Map<String,String> options)
Constructs a ShowGraphRequest 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.
|
ShowGraphRequest |
setGraphName(String graphName) |
ShowGraphRequest |
setOptions(Map<String,String> options) |
String |
toString() |
public ShowGraphRequest()
public ShowGraphRequest(String graphName, Map<String,String> options)
graphName
- Name of the graph on which to retrieve information. If
left as the default value, information about all
graphs is returned. The default value is ''.options
- Optional parameters.
SHOW_ORIGINAL_REQUEST
: If set to true
, the
request that was originally used to create the graph is
also returned as JSON.
Supported values:
The default value is TRUE
.
Map
.public static org.apache.avro.Schema getClassSchema()
public String getGraphName()
public ShowGraphRequest setGraphName(String graphName)
graphName
- Name of the graph on which to retrieve information. If
left as the default value, information about all
graphs is returned. The default value is ''.this
to mimic the builder pattern.public Map<String,String> getOptions()
SHOW_ORIGINAL_REQUEST
: If set to true
, the request that
was originally used to create the graph is also returned as
JSON.
Supported values:
The default value is TRUE
.
Map
.public ShowGraphRequest setOptions(Map<String,String> options)
options
- Optional parameters.
SHOW_ORIGINAL_REQUEST
: If set to true
, the
request that was originally used to create the graph is
also returned as JSON.
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.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 © 2020. All rights reserved.