@PublicEvolving public final class FormatDescriptor extends Object
format
and its options for use with TableDescriptor
.
Formats are responsible for encoding and decoding data in table connectors. Note that not
every connector has a format, while others may have multiple formats (e.g. the Kafka connector
has separate formats for keys and values). Common formats are "json", "csv", "avro", etc. See
Format
for more details.
Modifier and Type | Class and Description |
---|---|
static class |
FormatDescriptor.Builder
Builder for
FormatDescriptor . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static FormatDescriptor.Builder |
forFormat(String format)
Creates a new
FormatDescriptor.Builder describing a format with the given format identifier. |
String |
getFormat() |
Map<String,String> |
getOptions() |
int |
hashCode() |
String |
toString() |
public static FormatDescriptor.Builder forFormat(String format)
FormatDescriptor.Builder
describing a format with the given format identifier.format
- The factory identifier for the format.public String getFormat()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.