catalog::system_schema

Trait SystemTable

source
pub(crate) trait SystemTable {
    // Required methods
    fn table_id(&self) -> TableId;
    fn table_name(&self) -> &'static str;
    fn schema(&self) -> SchemaRef;
    fn to_stream(
        &self,
        request: ScanRequest,
    ) -> Result<SendableRecordBatchStream>;

    // Provided method
    fn table_type(&self) -> TableType { ... }
}

Required Methods§

source

fn table_id(&self) -> TableId

source

fn table_name(&self) -> &'static str

source

fn schema(&self) -> SchemaRef

source

fn to_stream(&self, request: ScanRequest) -> Result<SendableRecordBatchStream>

Provided Methods§

Implementors§