public static interface SourceSchema.Builder extends CopyableBuilder<SourceSchema.Builder,SourceSchema>
Modifier and Type | Method and Description |
---|---|
SourceSchema.Builder |
recordColumns(Collection<RecordColumn> recordColumns)
A list of
RecordColumn objects. |
SourceSchema.Builder |
recordColumns(RecordColumn... recordColumns)
A list of
RecordColumn objects. |
SourceSchema.Builder |
recordEncoding(String recordEncoding)
Specifies the encoding of the records in the streaming source.
|
default SourceSchema.Builder |
recordFormat(Consumer<RecordFormat.Builder> recordFormat)
Specifies the format of the records on the streaming source.
|
SourceSchema.Builder |
recordFormat(RecordFormat recordFormat)
Specifies the format of the records on the streaming source.
|
copy
apply, build
SourceSchema.Builder recordFormat(RecordFormat recordFormat)
Specifies the format of the records on the streaming source.
recordFormat
- Specifies the format of the records on the streaming source.default SourceSchema.Builder recordFormat(Consumer<RecordFormat.Builder> recordFormat)
Specifies the format of the records on the streaming source.
This is a convenience that creates an instance of theRecordFormat.Builder
avoiding the need to
create one manually via RecordFormat.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to recordFormat(RecordFormat)
.recordFormat
- a consumer that will call methods on RecordFormat.Builder
recordFormat(RecordFormat)
SourceSchema.Builder recordEncoding(String recordEncoding)
Specifies the encoding of the records in the streaming source. For example, UTF-8.
recordEncoding
- Specifies the encoding of the records in the streaming source. For example, UTF-8.SourceSchema.Builder recordColumns(Collection<RecordColumn> recordColumns)
A list of RecordColumn
objects.
recordColumns
- A list of RecordColumn
objects.SourceSchema.Builder recordColumns(RecordColumn... recordColumns)
A list of RecordColumn
objects.
recordColumns
- A list of RecordColumn
objects.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.