Class GoogleSheetsColumn
java.lang.Object
org.apache.drill.exec.store.googlesheets.GoogleSheetsColumn
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 Summary
ConstructorDescriptionGoogleSheetsColumn
(String columnName, GoogleSheetsUtils.DATA_TYPES dataType, int drillColumnIndex, boolean isMetadata) GoogleSheetsColumn
(String columnName, GoogleSheetsUtils.DATA_TYPES dataType, int googleColumnIndex, int drillColumnIndex) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
int
hashCode()
boolean
void
void
setWriter
(GoogleSheetsColumnWriter writer) toString()
-
Constructor Details
-
GoogleSheetsColumn
public GoogleSheetsColumn(String columnName, GoogleSheetsUtils.DATA_TYPES dataType, int googleColumnIndex, int drillColumnIndex) -
GoogleSheetsColumn
public GoogleSheetsColumn(String columnName, GoogleSheetsUtils.DATA_TYPES dataType, int drillColumnIndex, boolean isMetadata)
-
-
Method Details
-
setWriter
-
getDrillDataType
-
getColumnIndex
public int getColumnIndex() -
getDrillColumnIndex
public int getDrillColumnIndex() -
getColumnLetter
-
isMetadata
public boolean isMetadata() -
getColumnName
-
load
-
toString
-
equals
-
hashCode
public int hashCode()
-