Class VectorFloatCodec
java.lang.Object
io.r2dbc.postgresql.codec.VectorFloatCodec
- All Implemented Interfaces:
Codec<float[]>, CodecMetadata
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanDetermine whether thisCodecis capable of encoding thevalue.booleancanEncodeNull(Class<?> type) float[]decode(@Nullable io.netty.buffer.ByteBuf buffer, int dataType, io.r2dbc.postgresql.message.Format format, Class<? extends float[]> type) Decode thebufferand return it as the requestedtype.io.r2dbc.postgresql.client.EncodedParameterEncode thevalueto be used as RPC parameter.io.r2dbc.postgresql.client.EncodedParameterEncode thevalueto be used as RPC parameter.io.r2dbc.postgresql.client.EncodedParameterEncode anullvalue.Iterable<? extends PostgresTypeIdentifier> Returns the collection ofPostgresTypeIdentifierthis codec can handleClass<?> type()Returns the Javatypeof this codec.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CodecMetadata
getFormats
-
Method Details
-
encodeNull
public io.r2dbc.postgresql.client.EncodedParameter encodeNull()Description copied from interface:CodecEncode anullvalue.- Specified by:
encodeNullin interfaceCodec<float[]>- Returns:
- the encoded
nullvalue
-
type
Description copied from interface:CodecMetadataReturns the Javatypeof this codec.- Specified by:
typein interfaceCodecMetadata- Returns:
- the Java type
-
getDataTypes
Description copied from interface:CodecMetadataReturns the collection ofPostgresTypeIdentifierthis codec can handle- Specified by:
getDataTypesin interfaceCodecMetadata- Returns:
- the datatypes
-
canDecode
-
canEncode
-
canEncodeNull
Description copied from interface:Codec- Specified by:
canEncodeNullin interfaceCodec<float[]>- Parameters:
type- the desired value type- Returns:
trueif thisCodecis able to encodenullvalues for the givenClasstype.- See Also:
-
decode
-
encode
-
encode
Description copied from interface:CodecEncode thevalueto be used as RPC parameter.
-