return datum.asInt8();
}
@Override
public Object getObject(int fieldId) throws SQLException {
Datum d = cur.get(fieldId - 1);
handleNull(d);
TajoDataTypes.Type dataType = schema.getColumn(fieldId - 1).getDataType().getType();
switch(dataType) {
case BOOLEAN: return d.asBool();
case INT1:
case INT2: return d.asInt2();
case INT4: return d.asInt4();
case INT8: return d.asInt8();
case TEXT:
case CHAR:
case DATE:
case VARCHAR: return d.asChars();
case FLOAT4: return d.asFloat4();
case FLOAT8: return d.asFloat8();
case NUMERIC: return d.asFloat8();
default: return d.asChars();
}
}