Package com.gpudb.protocol
Class ShowGraphResponse
- java.lang.Object
-
- com.gpudb.protocol.ShowGraphResponse
-
- All Implemented Interfaces:
org.apache.avro.generic.GenericContainer,org.apache.avro.generic.IndexedRecord
public class ShowGraphResponse extends Object implements org.apache.avro.generic.IndexedRecord
A set of results returned byGPUdb.showGraph.
-
-
Constructor Summary
Constructors Constructor Description ShowGraphResponse()Constructs a ShowGraphResponse object with default parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Objectget(int index)This method supports the Avro framework and is not intended to be called directly by the user.static org.apache.avro.SchemagetClassSchema()This method supports the Avro framework and is not intended to be called directly by the user.List<Boolean>getDirected()Whether or not the edges of the graph have directions (bi-directional edges can still exist in directed graphs).List<String>getGraphNames()Name(s) of the graph(s).List<String>getGraphOwnerResourceGroups()Owner of the resource groups(s) of the graph(s).List<String>getGraphOwnerUserNames()Owner of the graph(s) and associated solution table(s).List<Integer>getGraphServerIds()Id(s) of the graph(s).List<Boolean>getHasInsertTableMonitor()Shows whether or not the graph has an insert table monitor attached to it.Map<String,String>getInfo()Additional information.List<Boolean>getIsPartitioned()Indicates if the graph data is distributed across all available servers.List<Boolean>getIsPersisted()Shows whether or not the graph is persisted (saved and loaded on launch).List<Boolean>getIsSyncDb()Shows whether or not the graph is linked to the original tables that created it, and will potentially be re-created instead loaded from persist on launch.List<Integer>getLoad()A percentage approximating the current computational load on the server.List<Long>getMemory()Available memory.List<Long>getNumBytes()Memory this graph uses in bytes.List<Long>getNumEdges()Total number of edges in the graph.List<Long>getNumNodes()Total number of nodes in the graph.List<String>getOriginalRequest()The original client request used to create the graph (before any expression evaluation or separator processing).List<Long>getResourceCapacity()Memory this graph uses in bytes.booleangetResult()Indicates a success.org.apache.avro.SchemagetSchema()This method supports the Avro framework and is not intended to be called directly by the user.inthashCode()voidput(int index, Object value)This method supports the Avro framework and is not intended to be called directly by the user.ShowGraphResponsesetDirected(List<Boolean> directed)Whether or not the edges of the graph have directions (bi-directional edges can still exist in directed graphs).ShowGraphResponsesetGraphNames(List<String> graphNames)Name(s) of the graph(s).ShowGraphResponsesetGraphOwnerResourceGroups(List<String> graphOwnerResourceGroups)Owner of the resource groups(s) of the graph(s).ShowGraphResponsesetGraphOwnerUserNames(List<String> graphOwnerUserNames)Owner of the graph(s) and associated solution table(s).ShowGraphResponsesetGraphServerIds(List<Integer> graphServerIds)Id(s) of the graph(s).ShowGraphResponsesetHasInsertTableMonitor(List<Boolean> hasInsertTableMonitor)Shows whether or not the graph has an insert table monitor attached to it.ShowGraphResponsesetInfo(Map<String,String> info)Additional information.ShowGraphResponsesetIsPartitioned(List<Boolean> isPartitioned)Indicates if the graph data is distributed across all available servers.ShowGraphResponsesetIsPersisted(List<Boolean> isPersisted)Shows whether or not the graph is persisted (saved and loaded on launch).ShowGraphResponsesetIsSyncDb(List<Boolean> isSyncDb)Shows whether or not the graph is linked to the original tables that created it, and will potentially be re-created instead loaded from persist on launch.ShowGraphResponsesetLoad(List<Integer> load)A percentage approximating the current computational load on the server.ShowGraphResponsesetMemory(List<Long> memory)Available memory.ShowGraphResponsesetNumBytes(List<Long> numBytes)Memory this graph uses in bytes.ShowGraphResponsesetNumEdges(List<Long> numEdges)Total number of edges in the graph.ShowGraphResponsesetNumNodes(List<Long> numNodes)Total number of nodes in the graph.ShowGraphResponsesetOriginalRequest(List<String> originalRequest)The original client request used to create the graph (before any expression evaluation or separator processing).ShowGraphResponsesetResourceCapacity(List<Long> resourceCapacity)Memory this graph uses in bytes.ShowGraphResponsesetResult(boolean result)Indicates a success.StringtoString()
-
-
-
Method Detail
-
getClassSchema
public static org.apache.avro.Schema getClassSchema()
This method supports the Avro framework and is not intended to be called directly by the user.- Returns:
- The schema for the class.
-
getResult
public boolean getResult()
Indicates a success. This call will fail if the graph specified in the request does not exist.- Returns:
- The current value of
result.
-
setResult
public ShowGraphResponse setResult(boolean result)
Indicates a success. This call will fail if the graph specified in the request does not exist.- Parameters:
result- The new value forresult.- Returns:
thisto mimic the builder pattern.
-
getLoad
public List<Integer> getLoad()
A percentage approximating the current computational load on the server.- Returns:
- The current value of
load.
-
setLoad
public ShowGraphResponse setLoad(List<Integer> load)
A percentage approximating the current computational load on the server.- Parameters:
load- The new value forload.- Returns:
thisto mimic the builder pattern.
-
setMemory
public ShowGraphResponse setMemory(List<Long> memory)
Available memory.- Parameters:
memory- The new value formemory.- Returns:
thisto mimic the builder pattern.
-
getGraphNames
public List<String> getGraphNames()
Name(s) of the graph(s).- Returns:
- The current value of
graphNames.
-
setGraphNames
public ShowGraphResponse setGraphNames(List<String> graphNames)
Name(s) of the graph(s).- Parameters:
graphNames- The new value forgraphNames.- Returns:
thisto mimic the builder pattern.
-
getGraphServerIds
public List<Integer> getGraphServerIds()
Id(s) of the graph(s).- Returns:
- The current value of
graphServerIds.
-
setGraphServerIds
public ShowGraphResponse setGraphServerIds(List<Integer> graphServerIds)
Id(s) of the graph(s).- Parameters:
graphServerIds- The new value forgraphServerIds.- Returns:
thisto mimic the builder pattern.
-
getGraphOwnerUserNames
public List<String> getGraphOwnerUserNames()
Owner of the graph(s) and associated solution table(s).- Returns:
- The current value of
graphOwnerUserNames.
-
setGraphOwnerUserNames
public ShowGraphResponse setGraphOwnerUserNames(List<String> graphOwnerUserNames)
Owner of the graph(s) and associated solution table(s).- Parameters:
graphOwnerUserNames- The new value forgraphOwnerUserNames.- Returns:
thisto mimic the builder pattern.
-
getGraphOwnerResourceGroups
public List<String> getGraphOwnerResourceGroups()
Owner of the resource groups(s) of the graph(s).- Returns:
- The current value of
graphOwnerResourceGroups.
-
setGraphOwnerResourceGroups
public ShowGraphResponse setGraphOwnerResourceGroups(List<String> graphOwnerResourceGroups)
Owner of the resource groups(s) of the graph(s).- Parameters:
graphOwnerResourceGroups- The new value forgraphOwnerResourceGroups.- Returns:
thisto mimic the builder pattern.
-
getDirected
public List<Boolean> getDirected()
Whether or not the edges of the graph have directions (bi-directional edges can still exist in directed graphs). Consult Directed Graphs for more details.- Returns:
- The current value of
directed.
-
setDirected
public ShowGraphResponse setDirected(List<Boolean> directed)
Whether or not the edges of the graph have directions (bi-directional edges can still exist in directed graphs). Consult Directed Graphs for more details.- Parameters:
directed- The new value fordirected.- Returns:
thisto mimic the builder pattern.
-
getNumNodes
public List<Long> getNumNodes()
Total number of nodes in the graph.- Returns:
- The current value of
numNodes.
-
setNumNodes
public ShowGraphResponse setNumNodes(List<Long> numNodes)
Total number of nodes in the graph.- Parameters:
numNodes- The new value fornumNodes.- Returns:
thisto mimic the builder pattern.
-
getNumEdges
public List<Long> getNumEdges()
Total number of edges in the graph.- Returns:
- The current value of
numEdges.
-
setNumEdges
public ShowGraphResponse setNumEdges(List<Long> numEdges)
Total number of edges in the graph.- Parameters:
numEdges- The new value fornumEdges.- Returns:
thisto mimic the builder pattern.
-
getNumBytes
public List<Long> getNumBytes()
Memory this graph uses in bytes.- Returns:
- The current value of
numBytes.
-
setNumBytes
public ShowGraphResponse setNumBytes(List<Long> numBytes)
Memory this graph uses in bytes.- Parameters:
numBytes- The new value fornumBytes.- Returns:
thisto mimic the builder pattern.
-
getResourceCapacity
public List<Long> getResourceCapacity()
Memory this graph uses in bytes.- Returns:
- The current value of
resourceCapacity.
-
setResourceCapacity
public ShowGraphResponse setResourceCapacity(List<Long> resourceCapacity)
Memory this graph uses in bytes.- Parameters:
resourceCapacity- The new value forresourceCapacity.- Returns:
thisto mimic the builder pattern.
-
getIsPersisted
public List<Boolean> getIsPersisted()
Shows whether or not the graph is persisted (saved and loaded on launch).- Returns:
- The current value of
isPersisted.
-
setIsPersisted
public ShowGraphResponse setIsPersisted(List<Boolean> isPersisted)
Shows whether or not the graph is persisted (saved and loaded on launch).- Parameters:
isPersisted- The new value forisPersisted.- Returns:
thisto mimic the builder pattern.
-
getIsPartitioned
public List<Boolean> getIsPartitioned()
Indicates if the graph data is distributed across all available servers.- Returns:
- The current value of
isPartitioned.
-
setIsPartitioned
public ShowGraphResponse setIsPartitioned(List<Boolean> isPartitioned)
Indicates if the graph data is distributed across all available servers.- Parameters:
isPartitioned- The new value forisPartitioned.- Returns:
thisto mimic the builder pattern.
-
getIsSyncDb
public List<Boolean> getIsSyncDb()
Shows whether or not the graph is linked to the original tables that created it, and will potentially be re-created instead loaded from persist on launch.- Returns:
- The current value of
isSyncDb.
-
setIsSyncDb
public ShowGraphResponse setIsSyncDb(List<Boolean> isSyncDb)
Shows whether or not the graph is linked to the original tables that created it, and will potentially be re-created instead loaded from persist on launch.- Parameters:
isSyncDb- The new value forisSyncDb.- Returns:
thisto mimic the builder pattern.
-
getHasInsertTableMonitor
public List<Boolean> getHasInsertTableMonitor()
Shows whether or not the graph has an insert table monitor attached to it.- Returns:
- The current value of
hasInsertTableMonitor.
-
setHasInsertTableMonitor
public ShowGraphResponse setHasInsertTableMonitor(List<Boolean> hasInsertTableMonitor)
Shows whether or not the graph has an insert table monitor attached to it.- Parameters:
hasInsertTableMonitor- The new value forhasInsertTableMonitor.- Returns:
thisto mimic the builder pattern.
-
getOriginalRequest
public List<String> getOriginalRequest()
The original client request used to create the graph (before any expression evaluation or separator processing).- Returns:
- The current value of
originalRequest.
-
setOriginalRequest
public ShowGraphResponse setOriginalRequest(List<String> originalRequest)
The original client request used to create the graph (before any expression evaluation or separator processing).- Parameters:
originalRequest- The new value fororiginalRequest.- Returns:
thisto mimic the builder pattern.
-
getInfo
public Map<String,String> getInfo()
Additional information.- Returns:
- The current value of
info.
-
setInfo
public ShowGraphResponse setInfo(Map<String,String> info)
Additional information.- Parameters:
info- The new value forinfo.- Returns:
thisto mimic the builder pattern.
-
getSchema
public org.apache.avro.Schema getSchema()
This method supports the Avro framework and is not intended to be called directly by the user.- Specified by:
getSchemain interfaceorg.apache.avro.generic.GenericContainer- Returns:
- The schema object describing this class.
-
get
public Object get(int index)
This method supports the Avro framework and is not intended to be called directly by the user.- Specified by:
getin interfaceorg.apache.avro.generic.IndexedRecord- Parameters:
index- the position of the field to get- Returns:
- value of the field with the given index.
- Throws:
IndexOutOfBoundsException
-
put
public void put(int index, Object value)This method supports the Avro framework and is not intended to be called directly by the user.- Specified by:
putin interfaceorg.apache.avro.generic.IndexedRecord- Parameters:
index- the position of the field to setvalue- the value to set- Throws:
IndexOutOfBoundsException
-
-