Class GoogleSheetsColumn

java.lang.Object
org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn

public class GoogleSheetsColumn extends Object
This class is the representation of a GoogleSheets column. Since column metadata appears to be unavailable at either by accessing the master document or the sheet itself, this class gathers it and represents that as a Java object. Additionally, GoogleSheets does not allow you to name columns or access them by position, instead using A1 notation (or other equally useless forms of accessing columns). In order to facilitate the projection pushdown we have to track the column's: name, data type and also be able to translate that position into a letter. Note that Google sheets has a limit of approx 18k columns.
  • Constructor Details

  • Method Details

    • setWriter

      public void setWriter(GoogleSheetsColumnWriter writer)
    • getDrillDataType

      public TypeProtos.MinorType getDrillDataType()
    • getColumnIndex

      public int getColumnIndex()
    • getDrillColumnIndex

      public int getDrillColumnIndex()
    • getColumnLetter

      public String getColumnLetter()
    • isMetadata

      public boolean isMetadata()
    • getColumnName

      public String getColumnName()
    • load

      public void load(Object value)
    • toString

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

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object