Type Definition Real
tidb_query_datatype::codec::data_type
type Real = NotNan<f64>;
impl AsMySQLBool for Real
fn as_mysql_bool(&self, _context: &mut EvalContext) -> Result<bool>
Evaluates into a MySQL logic value.
impl ConvertTo<Decimal> for Real
fn convert(&self, ctx: &mut EvalContext) -> Result<Decimal>
Converts the given value to T value
T
impl ConvertTo<Json> for Real
fn convert(&self, _: &mut EvalContext) -> Result<Json>
impl Evaluable for Real
const EVAL_TYPE: EvalType
fn borrow_scalar_value(v: &ScalarValue) -> Option<&Self>
Borrows this concrete type from a ScalarValue in the same type; panics if the varient mismatches. Read more
ScalarValue
fn borrow_scalar_value_ref<'a>(v: ScalarValueRef<'a>) -> Option<&'a Self>
Borrows this concrete type from a ScalarValueRef in the same type; panics if the varient mismatches. Read more
ScalarValueRef
fn borrow_vector_value(v: &VectorValue) -> &ChunkedVecSized<Real>
Borrows a slice of this concrete type from a VectorValue in the same type; panics if the varient mismatches. Read more
VectorValue
impl EvaluableRet for Real
type ChunkedType = ChunkedVecSized<Self>
fn cast_chunk_into_vector_value(vec: ChunkedVecSized<Self>) -> VectorValue
Converts a vector of this concrete type into a VectorValue in the same type; panics if the varient mismatches. Read more
impl ToInt for Real
fn to_int(&self, ctx: &mut EvalContext, tp: FieldTypeTp) -> Result<i64>
Converts the given value to an i64
i64
fn to_uint(&self, ctx: &mut EvalContext, tp: FieldTypeTp) -> Result<u64>
Converts the given value to an u64
u64