Skip to main content

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 by GPUdb.showGraph.
  • Constructor Details

    • ShowGraphResponse

      public ShowGraphResponse()
      Constructs a ShowGraphResponse object with default parameters.
  • 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 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 for result.
      Returns:
      this to 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 for load.
      Returns:
      this to mimic the builder pattern.
    • getMemory

      public List<Long> getMemory()
      Available memory.
      Returns:
      The current value of memory.
    • setMemory

      public ShowGraphResponse setMemory(List<Long> memory)
      Available memory.
      Parameters:
      memory - The new value for memory.
      Returns:
      this to 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 for graphNames.
      Returns:
      this to 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 for graphServerIds.
      Returns:
      this to 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 for graphOwnerUserNames.
      Returns:
      this to 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 for graphOwnerResourceGroups.
      Returns:
      this to 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 for directed.
      Returns:
      this to 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 for numNodes.
      Returns:
      this to 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 for numEdges.
      Returns:
      this to 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 for numBytes.
      Returns:
      this to 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 for resourceCapacity.
      Returns:
      this to 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 for isPersisted.
      Returns:
      this to 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 for isPartitioned.
      Returns:
      this to 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 for isSyncDb.
      Returns:
      this to 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 for hasInsertTableMonitor.
      Returns:
      this to 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 for originalRequest.
      Returns:
      this to 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 for info.
      Returns:
      this to 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:
      getSchema in interface org.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:
      get in interface org.apache.avro.generic.IndexedRecord
      Parameters:
      index - the position of the field to get
      Returns:
      value of the field with the given index.
      Throws:
    • 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:
      put in interface org.apache.avro.generic.IndexedRecord
      Parameters:
      index - the position of the field to set
      value - the value to set
      Throws:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object