Enum InfoSchemaTableType

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

public enum InfoSchemaTableType extends Enum<InfoSchemaTableType> implements DrillTableSelection
The set of tables / views in INFORMATION_SCHEMA.
  • Enum Constant Details

  • Method Details

    • values

      public static InfoSchemaTableType[] 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 InfoSchemaTableType 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
    • getRecordReader

      public <S> PojoRecordReader<S> getRecordReader(org.apache.calcite.schema.SchemaPlus rootSchema, InfoSchemaFilter filter, OptionManager optionManager, MetastoreRegistry metastoreRegistry)
    • getRowType

      public org.apache.calcite.rel.type.RelDataType getRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
    • 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.