Enum SystemTable

java.lang.Object
java.lang.Enum<SystemTable>
org.apache.drill.exec.store.sys.SystemTable
All Implemented Interfaces:
Serializable, Comparable<SystemTable>, DrillTableSelection

public enum SystemTable extends Enum<SystemTable> implements DrillTableSelection
An enumeration of all tables in Drill's system ("sys") schema.

OPTION, DRILLBITS and VERSION are local tables available on every Drillbit. MEMORY and THREADS are distributed tables with one record on every Drillbit. PROFILES and PROFILES_JSON are stored in local / distributed storage.

  • Enum Constant Details

    • OPTIONS_OLD

      public static final SystemTable OPTIONS_OLD
    • OPTIONS

      public static final SystemTable OPTIONS
    • INTERNAL_OPTIONS_OLD

      public static final SystemTable INTERNAL_OPTIONS_OLD
    • INTERNAL_OPTIONS

      public static final SystemTable INTERNAL_OPTIONS
    • BOOT

      public static final SystemTable BOOT
    • DRILLBITS

      public static final SystemTable DRILLBITS
    • VERSION

      public static final SystemTable VERSION
    • MEMORY

      public static final SystemTable MEMORY
    • CONNECTIONS

      public static final SystemTable CONNECTIONS
    • PROFILES

      public static final SystemTable PROFILES
    • PROFILES_JSON

      public static final SystemTable PROFILES_JSON
    • THREADS

      public static final SystemTable THREADS
    • FUNCTIONS

      public static final SystemTable FUNCTIONS
    • STORAGE_ALIASES

      public static final SystemTable STORAGE_ALIASES
    • TABLE_ALIASES

      public static final SystemTable TABLE_ALIASES
  • Method Details

    • values

      public static SystemTable[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SystemTable valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getIterator

      public Iterator<Object> getIterator(ExecutorFragmentContext context, int maxRecords)
    • getTableName

      public String getTableName()
    • isDistributed

      public boolean isDistributed()
    • getPojoClass

      public Class<?> getPojoClass()
    • digest

      public String digest()
      Description copied from interface: DrillTableSelection
      The digest of the selection represented by the implementation. The selections that accompany Tables can modify the contained dataset, e.g. a file selection can restrict to a subset of the available data and a format selection can include options that affect the behaviour of the underlying reader. Two scans will end up being considered identical during logical planning if their digests are the same so selection implementations should override this method so that exactly those scans that really are identical (in terms of the data they produce) have matching digests.
      Specified by:
      digest in interface DrillTableSelection
      Returns:
      this selection's digest, normally a string built from its properties.