getFieldValue method
Get a field's value by fieldId
. Primitive types will be wrapped in the
appropriate "boxed" types.
Implementation
getFieldValue(int fieldID) {
switch (fieldID) {
case ROWS:
return this.rows;
case EXEC_DURATION_IN_US:
return this.exec_duration_in_us;
case TOTAL_DURATION_IN_US:
return this.total_duration_in_us;
case OTHER_STATS:
return this.other_stats;
default:
throw new ArgumentError("Field $fieldID doesn't exist!");
}
}