public class ReadingMetadataSpec extends SourceAbilitySpecBase
SourceAbilitySpec
that can not only serialize/deserialize the metadata
columns to/from JSON, but also can read the metadata columns from SupportsReadingMetadata
.Modifier and Type | Field and Description |
---|---|
static String |
FIELD_NAME_METADATA_KEYS |
FIELD_NAME_PRODUCED_TYPE
Constructor and Description |
---|
ReadingMetadataSpec(List<String> metadataKeys,
RowType producedType) |
Modifier and Type | Method and Description |
---|---|
void |
apply(DynamicTableSource tableSource,
SourceAbilityContext context)
Apply the ability to the given
DynamicTableSource . |
getProducedType
public static final String FIELD_NAME_METADATA_KEYS
public void apply(DynamicTableSource tableSource, SourceAbilityContext context)
SourceAbilitySpec
DynamicTableSource
.Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.