Interface CodecMetadata
- All Known Implementing Classes:
EnumCodec, OffsetTimeCodec, StringCodec, VectorCodec, VectorFloatCodec
public interface CodecMetadata
Metadata for a codec.
Codecs implementing this interface expose their supported formats and data types. This metadata can be used for cache warming of the actual codec lookup.
- Since:
- 0.9
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the collection ofPostgresTypeIdentifierthis codec can handledefault Iterable<io.r2dbc.postgresql.message.Format> Returns the collection ofFormatsupported by this codecClass<?> type()Returns the Javatypeof this codec.
-
Method Details
-
type
-
getFormats
Returns the collection ofFormatsupported by this codec- Returns:
- the formats
-
getDataTypes
Iterable<PostgresTypeIdentifier> getDataTypes()Returns the collection ofPostgresTypeIdentifierthis codec can handle- Returns:
- the datatypes
-