public static class FixedReceiver.Builder extends Object
Constructor and Description |
---|
Builder(SchemaNegotiator negotiator) |
Modifier and Type | Method and Description |
---|---|
FixedReceiver |
build(TupleMetadata readerSchema)
Create a fixed receiver for the provided schema (if any) in the
scan plan, and the given reader schema.
|
StandardConversions.Builder |
conversionBuilder()
Provides access to the conversion builder to add custom properties.
|
static TupleMetadata |
mergeSchemas(TupleMetadata providedSchema,
TupleMetadata readerSchema)
Given a desired provided schema and an actual reader schema, create a merged
schema that contains the provided column where available, but the reader
column otherwise.
|
FixedReceiver.Builder |
schemaIsComplete()
Mark that the reader schema provided to
build(TupleMetadata)
contains all columns that this reader will deliver. |
public Builder(SchemaNegotiator negotiator)
public StandardConversions.Builder conversionBuilder()
public FixedReceiver.Builder schemaIsComplete()
build(TupleMetadata)
contains all columns that this reader will deliver. Allows some
optimizations. See SchemaNegotiator.schemaIsComplete(boolean)
.public FixedReceiver build(TupleMetadata readerSchema)
public static TupleMetadata mergeSchemas(TupleMetadata providedSchema, TupleMetadata readerSchema)
The result is the schema to use when creating column writers: it reflects the type of the target vector. The reader is responsible for converting from the (possibly different) reader column type to the provided column type.
Note: the provided schema should only contain types that the reader is prepared to offer: there is no requirement that the reader support every possible conversion, only those that make sense for that one reader.
providedSchema
- the provided schema from CREATE SCHEMA
readerSchema
- the set of column types that the reader can provide
"natively"ResultSetLoader
Copyright © 1970 The Apache Software Foundation. All rights reserved.