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 Details

    • type

      Class<?> type()
      Returns the Java type of this codec.
      Returns:
      the Java type
    • getFormats

      default Iterable<io.r2dbc.postgresql.message.Format> getFormats()
      Returns the collection of Format supported by this codec
      Returns:
      the formats
    • getDataTypes

      Returns the collection of PostgresTypeIdentifier this codec can handle
      Returns:
      the datatypes