Function tidb_query_datatype::codec::table::cut_row [−][src]
pub fn cut_row(
data: Vec<u8>,
col_ids: &HashSet<i64>,
cols: Arc<[ColumnInfo]>
) -> Result<RowColsDict>
cut_row
cuts the encoded row into (col_id,offset,length)
and returns interested columns’ meta in RowColsDict
Encoded row can be either in row format v1 or v2.
col_ids
must be consistent with cols
. Otherwise the result is undefined.