Struct tidb_query_executors::index_scan_executor::IndexScanExecutorImpl [−][src]
Fields
context: EvalContext
See TableScanExecutorImpl
’s context
.
schema: Vec<FieldType>
See TableScanExecutorImpl
’s schema
.
columns_id_without_handle: Vec<i64>
ID of interested columns (exclude PK handle column).
columns_id_for_common_handle: Vec<i64>
decode_handle_strategy: DecodeHandleStrategy
The strategy to decode handles. Handle will be always placed in the last column.
pid_column_cnt: usize
Number of partition ID columns, now it can only be 0 or 1.
index_version: i64
Implementations
impl IndexScanExecutorImpl
[src]
fn decode_int_handle_from_value(&self, value: &[u8]) -> Result<i64>
[src]
fn decode_int_handle_from_key(&self, key: &[u8]) -> Result<i64>
[src]
fn extract_columns_from_row_format(
&mut self,
value: &[u8],
columns: &mut LazyBatchColumnVec
) -> Result<()>
[src]
&mut self,
value: &[u8],
columns: &mut LazyBatchColumnVec
) -> Result<()>
fn extract_columns_from_datum_format(
datum: &mut &[u8],
columns: &mut [LazyBatchColumn]
) -> Result<()>
[src]
datum: &mut &[u8],
columns: &mut [LazyBatchColumn]
) -> Result<()>
fn process_old_collation_kv(
&mut self,
key_payload: &[u8],
value: &[u8],
columns: &mut LazyBatchColumnVec
) -> Result<()>
[src]
&mut self,
key_payload: &[u8],
value: &[u8],
columns: &mut LazyBatchColumnVec
) -> Result<()>
fn restore_original_data<'a>(
&self,
restored_values: &[u8],
column_iter: impl Iterator<Item = (&'a FieldType, &'a i64, &'a mut LazyBatchColumn)>
) -> Result<()>
[src]
&self,
restored_values: &[u8],
column_iter: impl Iterator<Item = (&'a FieldType, &'a i64, &'a mut LazyBatchColumn)>
) -> Result<()>
fn get_index_version(value: &[u8]) -> Result<i64>
[src]
fn process_kv_general(
&mut self,
key_payload: &[u8],
value: &[u8],
columns: &mut LazyBatchColumnVec
) -> Result<()>
[src]
&mut self,
key_payload: &[u8],
value: &[u8],
columns: &mut LazyBatchColumnVec
) -> Result<()>
fn build_operations<'a, 'b>(
&'b self,
key_payload: &'a [u8],
index_value: &'a [u8]
) -> Result<(DecodeHandleOp<'a>, DecodePartitionIdOp<'a>, RestoreData<'a>)>
[src]
&'b self,
key_payload: &'a [u8],
index_value: &'a [u8]
) -> Result<(DecodeHandleOp<'a>, DecodePartitionIdOp<'a>, RestoreData<'a>)>
fn decode_index_columns(
&mut self,
key_payload: &[u8],
columns: &mut LazyBatchColumnVec,
restore_data: RestoreData<'_>
) -> Result<()>
[src]
&mut self,
key_payload: &[u8],
columns: &mut LazyBatchColumnVec,
restore_data: RestoreData<'_>
) -> Result<()>
fn decode_handle_columns(
&mut self,
decode_handle: DecodeHandleOp<'_>,
columns: &mut LazyBatchColumnVec,
restore_data: RestoreData<'_>
) -> Result<()>
[src]
&mut self,
decode_handle: DecodeHandleOp<'_>,
columns: &mut LazyBatchColumnVec,
restore_data: RestoreData<'_>
) -> Result<()>
fn decode_pid_columns(
&mut self,
columns: &mut LazyBatchColumnVec,
decode_pid: DecodePartitionIdOp<'_>
) -> Result<()>
[src]
&mut self,
columns: &mut LazyBatchColumnVec,
decode_pid: DecodePartitionIdOp<'_>
) -> Result<()>
fn split_common_handle(value: &[u8]) -> Result<(&[u8], &[u8])>
[src]
fn split_partition_id(value: &[u8]) -> Result<(&[u8], &[u8])>
[src]
fn split_restore_data(value: &[u8]) -> Result<(&[u8], &[u8])>
[src]
Trait Implementations
impl ScanExecutorImpl for IndexScanExecutorImpl
[src]
fn schema(&self) -> &[FieldType]
[src]
fn mut_context(&mut self) -> &mut EvalContext
[src]
fn build_column_vec(&self, scan_rows: usize) -> LazyBatchColumnVec
[src]
Constructs empty columns, with PK containing int handle in decoded format and the rest in raw format.
Note: the structure of the constructed column is the same as table scan executor but due to different reasons.
fn process_kv_pair(
&mut self,
key: &[u8],
value: &[u8],
columns: &mut LazyBatchColumnVec
) -> Result<()>
[src]
&mut self,
key: &[u8],
value: &[u8],
columns: &mut LazyBatchColumnVec
) -> Result<()>
Auto Trait Implementations
impl RefUnwindSafe for IndexScanExecutorImpl
impl Send for IndexScanExecutorImpl
impl Sync for IndexScanExecutorImpl
impl Unpin for IndexScanExecutorImpl
impl UnwindSafe for IndexScanExecutorImpl
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<V, W> ConvertFrom<W> for V where
W: ConvertTo<V>,
[src]
W: ConvertTo<V>,
pub fn convert_from(ctx: &mut EvalContext, from: W) -> Result<V, Error>
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,