pub struct BigQuerySchemaLocator { /* private fields */ }Expand description
A JSON file containing BigQuery table schema.
Trait Implementations§
Source§impl Clone for BigQuerySchemaLocator
impl Clone for BigQuerySchemaLocator
Source§impl Debug for BigQuerySchemaLocator
impl Debug for BigQuerySchemaLocator
Source§impl Display for BigQuerySchemaLocator
impl Display for BigQuerySchemaLocator
Source§impl FromStr for BigQuerySchemaLocator
impl FromStr for BigQuerySchemaLocator
Source§impl Locator for BigQuerySchemaLocator
impl Locator for BigQuerySchemaLocator
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Provide a mechanism for casting a
dyn Locator back to the underlying,
concrete locator type using Rust’s Any type. Read moreSource§fn schema(&self, _ctx: Context) -> BoxFuture<Option<Schema>>
fn schema(&self, _ctx: Context) -> BoxFuture<Option<Schema>>
Return a table schema, if available.
Source§fn write_schema(
&self,
_ctx: Context,
schema: Schema,
if_exists: IfExists,
) -> BoxFuture<()>
fn write_schema( &self, _ctx: Context, schema: Schema, if_exists: IfExists, ) -> BoxFuture<()>
Write a table schema to this locator, if that’s the sort of thing that
we can do.
Source§fn count(
&self,
_ctx: Context,
_shared_args: SharedArguments<Unverified>,
_source_args: SourceArguments<Unverified>,
) -> BoxFuture<usize>
fn count( &self, _ctx: Context, _shared_args: SharedArguments<Unverified>, _source_args: SourceArguments<Unverified>, ) -> BoxFuture<usize>
Count the records specified by this locator.
Source§fn local_data(
&self,
_ctx: Context,
_shared_args: SharedArguments<Unverified>,
_source_args: SourceArguments<Unverified>,
) -> BoxFuture<Option<BoxStream<CsvStream>>>
fn local_data( &self, _ctx: Context, _shared_args: SharedArguments<Unverified>, _source_args: SourceArguments<Unverified>, ) -> BoxFuture<Option<BoxStream<CsvStream>>>
If this locator can be used as a local data source, return a stream of
CSV streams. This function type is bit hairy: Read more
Source§fn display_output_locators(&self) -> DisplayOutputLocators
fn display_output_locators(&self) -> DisplayOutputLocators
Should we display the individual output locations?
Source§fn write_local_data(
&self,
_ctx: Context,
_data: BoxStream<CsvStream>,
_shared_args: SharedArguments<Unverified>,
_dest_args: DestinationArguments<Unverified>,
) -> BoxFuture<BoxStream<BoxFuture<BoxLocator>>>
fn write_local_data( &self, _ctx: Context, _data: BoxStream<CsvStream>, _shared_args: SharedArguments<Unverified>, _dest_args: DestinationArguments<Unverified>, ) -> BoxFuture<BoxStream<BoxFuture<BoxLocator>>>
If this locator can be used as a local data sink, write data to it. Read more
Source§fn supports_write_remote_data(&self, _source: &dyn Locator) -> bool
fn supports_write_remote_data(&self, _source: &dyn Locator) -> bool
Can we access the data at
source directly using write_remote_data?Source§fn write_remote_data(
&self,
_ctx: Context,
source: BoxLocator,
_shared_args: SharedArguments<Unverified>,
_source_args: SourceArguments<Unverified>,
_dest_args: DestinationArguments<Unverified>,
) -> BoxFuture<Vec<BoxLocator>>
fn write_remote_data( &self, _ctx: Context, source: BoxLocator, _shared_args: SharedArguments<Unverified>, _source_args: SourceArguments<Unverified>, _dest_args: DestinationArguments<Unverified>, ) -> BoxFuture<Vec<BoxLocator>>
Take the data at
source, and write to this locator directly, without
passing it through the local system. Read moreAuto Trait Implementations§
impl Freeze for BigQuerySchemaLocator
impl RefUnwindSafe for BigQuerySchemaLocator
impl Send for BigQuerySchemaLocator
impl Sync for BigQuerySchemaLocator
impl Unpin for BigQuerySchemaLocator
impl UnsafeUnpin for BigQuerySchemaLocator
impl UnwindSafe for BigQuerySchemaLocator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more