@WritingConverter public static enum CassandraJsr310Converters.DateToInstantConverter extends Enum<CassandraJsr310Converters.DateToInstantConverter> implements Converter<Date,Instant>
Dates to their Cassandra Instant representation for the CQL Timestamp
type. Used for Cassandra 3.x to 4.x driver migration where| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Instant |
convert(Date source) |
static CassandraJsr310Converters.DateToInstantConverter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CassandraJsr310Converters.DateToInstantConverter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CassandraJsr310Converters.DateToInstantConverter INSTANCE
public static CassandraJsr310Converters.DateToInstantConverter[] values()
for (CassandraJsr310Converters.DateToInstantConverter c : CassandraJsr310Converters.DateToInstantConverter.values()) System.out.println(c);
public static CassandraJsr310Converters.DateToInstantConverter valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.