Quiero obtener datos usando get_table_rows() . El índice de los datos es de tipo i128 .
uint128_t by_corp_id_timestamp() const { return uint128_t(corp_id) << 64 | timestamp.elapsed.count(); }Así que probé en el siguiente orden.
Primero, la timestamp de tiempo se convirtió en time_point .
const time_point = dateToTimePoint(timestamp); Si la timestamp de tiempo es 2021-09-19T14:32:00.000 , el punto de 1632061920000000 time_point
Logré obtener un valor con time_point .
Luego traté de hacer la clave i128 combinando time_point con corp_id .
buffer_time_stamp.pushArray(numeric.decimalToBinary(16, '' + corp_id + time_point)); const bound_time = numeric.binaryToDecimal(buffer_time_stamp.getUint8Array(16)); Si corp_id es 1000 y time_stamp es 2021-09-19T14:32:00.000 , bound_time es 10001632061920000000 .
Según by_corp_id_timestamp() , creo que obtuve correctamente la clave. Sin embargo, el bound_time anterior no funciona.
Por favor, ayúdame.