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.IndexedRecordA set of results returned by
GPUdb.showGraph.Constructor Summary
ConstructorsConstructorDescriptionConstructs a ShowGraphResponse object with default parameters.Method Summary
Modifier and TypeMethodDescriptionbooleanget(int index) This method supports the Avro framework and is not intended to be called directly by the user.static org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.Whether or not the edges of the graph have directions (bi-directional edges can still exist in directed graphs).Name(s) of the graph(s).Owner of the resource groups(s) of the graph(s).Owner of the graph(s) and associated solution table(s).Id(s) of the graph(s).Shows whether or not the graph has an insert table monitor attached to it.getInfo()Additional information.Indicates if the graph data is distributed across all available servers.Shows whether or not the graph is persisted (saved and loaded on launch).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.getLoad()A percentage approximating the current computational load on the server.Available memory.Memory this graph uses in bytes.Total number of edges in the graph.Total number of nodes in the graph.The original client request used to create the graph (before any expression evaluation or separator processing).Memory this graph uses in bytes.booleanIndicates a success.org.apache.avro.SchemaThis method supports the Avro framework and is not intended to be called directly by the user.inthashCode()voidThis method supports the Avro framework and is not intended to be called directly by the user.setDirected(List<Boolean> directed) Whether or not the edges of the graph have directions (bi-directional edges can still exist in directed graphs).setGraphNames(List<String> graphNames) Name(s) of the graph(s).setGraphOwnerResourceGroups(List<String> graphOwnerResourceGroups) Owner of the resource groups(s) of the graph(s).setGraphOwnerUserNames(List<String> graphOwnerUserNames) Owner of the graph(s) and associated solution table(s).setGraphServerIds(List<Integer> graphServerIds) Id(s) of the graph(s).setHasInsertTableMonitor(List<Boolean> hasInsertTableMonitor) Shows whether or not the graph has an insert table monitor attached to it.Additional information.setIsPartitioned(List<Boolean> isPartitioned) Indicates if the graph data is distributed across all available servers.setIsPersisted(List<Boolean> isPersisted) Shows whether or not the graph is persisted (saved and loaded on launch).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.A percentage approximating the current computational load on the server.Available memory.setNumBytes(List<Long> numBytes) Memory this graph uses in bytes.setNumEdges(List<Long> numEdges) Total number of edges in the graph.setNumNodes(List<Long> numNodes) Total number of nodes in the graph.setOriginalRequest(List<String> originalRequest) The original client request used to create the graph (before any expression evaluation or separator processing).setResourceCapacity(List<Long> resourceCapacity) Memory this graph uses in bytes.setResult(boolean result) Indicates a success.toString()
Method Details
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 ofresult.setResult
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.setLoad
A percentage approximating the current computational load on the server.Parameters:load- The new value forload.Returns:thisto mimic the builder pattern.setMemory
Available memory.Parameters:memory- The new value formemory.Returns:thisto mimic the builder pattern.setGraphNames
Name(s) of the graph(s).Parameters:graphNames- The new value forgraphNames.Returns:thisto mimic the builder pattern.setGraphServerIds
Id(s) of the graph(s).Parameters:graphServerIds- The new value forgraphServerIds.Returns:thisto mimic the builder pattern.setGraphOwnerUserNames
Owner of the graph(s) and associated solution table(s).Parameters:graphOwnerUserNames- The new value forgraphOwnerUserNames.Returns:thisto mimic the builder pattern.setGraphOwnerResourceGroups
Owner of the resource groups(s) of the graph(s).Parameters:graphOwnerResourceGroups- The new value forgraphOwnerResourceGroups.Returns:thisto mimic the builder pattern.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 ofdirected.setDirected
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.setNumNodes
Total number of nodes in the graph.Parameters:numNodes- The new value fornumNodes.Returns:thisto mimic the builder pattern.setNumEdges
Total number of edges in the graph.Parameters:numEdges- The new value fornumEdges.Returns:thisto mimic the builder pattern.setNumBytes
Memory this graph uses in bytes.Parameters:numBytes- The new value fornumBytes.Returns:thisto mimic the builder pattern.setResourceCapacity
Memory this graph uses in bytes.Parameters:resourceCapacity- The new value forresourceCapacity.Returns:thisto mimic the builder pattern.setIsPersisted
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.setIsPartitioned
Indicates if the graph data is distributed across all available servers.Parameters:isPartitioned- The new value forisPartitioned.Returns:thisto mimic the builder pattern.setIsSyncDb
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.setHasInsertTableMonitor
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.setOriginalRequest
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.setInfo
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.GenericContainerReturns:The schema object describing this class.get
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:getin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to getReturns:value of the field with the given index.Throws:put
This method supports the Avro framework and is not intended to be called directly by the user.Specified by:putin interfaceorg.apache.avro.generic.IndexedRecordParameters:index- the position of the field to setvalue- the value to setThrows: