Skip to main content

Class ShowDirectoriesResponse

java.lang.Object
com.gpudb.protocol.ShowDirectoriesResponse
All Implemented Interfaces:
org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecord

public class ShowDirectoriesResponse extends Object implements org.apache.avro.generic.IndexedRecord
A set of results returned by GPUdb.showDirectories.
  • Constructor Details

    • ShowDirectoriesResponse

      public ShowDirectoriesResponse()
      Constructs a ShowDirectoriesResponse 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.
    • getDirectories

      public List<String> getDirectories()
      KiFS directory names.
      Returns:
      The current value of directories.
    • setDirectories

      public ShowDirectoriesResponse setDirectories(List<String> directories)
      KiFS directory names.
      Parameters:
      directories - The new value for directories.
      Returns:
      this to mimic the builder pattern.
    • getUsers

      public List<String> getUsers()
      User that created each directory for the respective directories in directories.
      Returns:
      The current value of users.
    • setUsers

      public ShowDirectoriesResponse setUsers(List<String> users)
      User that created each directory for the respective directories in directories.
      Parameters:
      users - The new value for users.
      Returns:
      this to mimic the builder pattern.
    • getCreationTimes

      public List<Long> getCreationTimes()
      The creation time for each directory in milliseconds since epoch, for the respective directories in directories.
      Returns:
      The current value of creationTimes.
    • setCreationTimes

      public ShowDirectoriesResponse setCreationTimes(List<Long> creationTimes)
      The creation time for each directory in milliseconds since epoch, for the respective directories in directories.
      Parameters:
      creationTimes - The new value for creationTimes.
      Returns:
      this to mimic the builder pattern.
    • getDataUsages

      public List<Long> getDataUsages()
      The data usage each directory in bytes, for the respective directories in directories.
      Returns:
      The current value of dataUsages.
    • setDataUsages

      public ShowDirectoriesResponse setDataUsages(List<Long> dataUsages)
      The data usage each directory in bytes, for the respective directories in directories.
      Parameters:
      dataUsages - The new value for dataUsages.
      Returns:
      this to mimic the builder pattern.
    • getDataLimits

      public List<Long> getDataLimits()
      The data limit for each directory in bytes, for the respective directories in directories.
      Returns:
      The current value of dataLimits.
    • setDataLimits

      public ShowDirectoriesResponse setDataLimits(List<Long> dataLimits)
      The data limit for each directory in bytes, for the respective directories in directories.
      Parameters:
      dataLimits - The new value for dataLimits.
      Returns:
      this to mimic the builder pattern.
    • getPermissions

      public List<String> getPermissions()
      Highest level of permission the calling user has for the respective directories in directories. Will be empty if no permissions. If a user has been granted both read and write permissions, ‘directory_write’ will be listed.
      Returns:
      The current value of permissions.
    • setPermissions

      public ShowDirectoriesResponse setPermissions(List<String> permissions)
      Highest level of permission the calling user has for the respective directories in directories. Will be empty if no permissions. If a user has been granted both read and write permissions, ‘directory_write’ will be listed.
      Parameters:
      permissions - The new value for permissions.
      Returns:
      this to mimic the builder pattern.
    • getInfo

      public Map<String,String> getInfo()
      Additional information.
      Returns:
      The current value of info.
    • setInfo

      public ShowDirectoriesResponse 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