public class StringToInstantCodec extends StringToTemporalCodec<Instant>
internalCodec, javaType| Constructor and Description |
|---|
StringToInstantCodec(TemporalFormat temporalFormat,
ZoneId timeZone,
ZonedDateTime epoch,
List<String> nullStrings) |
| Modifier and Type | Method and Description |
|---|---|
Instant |
externalToInternal(String s)
Converts the external representation of a value (i.e., the value, as produced by a connector)
to its internal representation (i.e., the Java type that matches the target CQL type).
|
internalToExternalisNull, isNullOrEmpty, nullStringdecode, encode, format, getCqlType, getInternalCodec, getInternalJavaType, getJavaType, parsepublic StringToInstantCodec(TemporalFormat temporalFormat, ZoneId timeZone, ZonedDateTime epoch, List<String> nullStrings)
public Instant externalToInternal(String s)
ConvertingCodecexternalToInternal in class ConvertingCodec<String,Instant>s - the value's external form.Copyright © 2017–2021 DataStax. All rights reserved.