interface¶
Type of operation: Metadata
Description¶
Map fields of this dataset to a pre-defined interface.
Usage¶
interface interfaceName, fieldBinding ...
Argument |
Type |
Required |
Multiple |
---|---|---|---|
interfaceName |
string |
Required |
Only one |
fieldBinding |
expression |
Required |
Can be multiple |
Accelerable¶
interface is always accelerable if the input is accelerable. A dataset that only uses accelerable verbs, can be accelerated, making queries on the dataset respond faster.
Examples¶
interface "notification", kind:myKindStr, description:logText, importance:sevInt
Make this dataset implement the ‘notification’ interface, binding the existing column ‘myKindStr’ to the ‘kind’ interfaceName, the existing column ‘logText’ to the ‘description’ interfaceName, and the existing column ‘sevInt’ to the ‘importance’ interfaceName.
interface "metric", metric:metricNameColumn, value:metricValueColumn
Make this dataset implement the ‘metric’ interface. Bind the existing column containing metric names (‘metricNameColumn’) to the ‘metric’ interfaceName, and the existing column containing ‘float64’ metric values (‘metricValueColumn’) to the ‘value’ interfaceName.