Class TableParamDef
java.lang.Object
org.apache.drill.exec.store.table.function.TableParamDef
Definition of table parameters, contains parameter name, class type, type status (optional / required).
May also contain action this parameter can perform for the given value and table.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(DrillTable drillTable, Object value) boolean
getName()
Class<?>
getType()
int
hashCode()
boolean
static TableParamDef
optional
(String name, Class<?> type, BiConsumer<DrillTable, Object> action) static TableParamDef
required
(String name, Class<?> type, BiConsumer<DrillTable, Object> action) toString()
-
Method Details
-
required
public static TableParamDef required(String name, Class<?> type, BiConsumer<DrillTable, Object> action) -
optional
public static TableParamDef optional(String name, Class<?> type, BiConsumer<DrillTable, Object> action) -
getName
-
getType
-
isOptional
public boolean isOptional() -
apply
-
hashCode
public int hashCode() -
equals
-
toString
-