Package | Description |
---|---|
com.datastax.oss.driver.api.core.data | |
com.datastax.oss.driver.api.core.type.codec | |
com.datastax.oss.driver.api.core.type.reflect |
Modifier and Type | Method and Description |
---|---|
static CqlDuration |
CqlDuration.from(String input)
Converts a
String into a duration. |
default CqlDuration |
GettableById.getCqlDuration(CqlIdentifier id)
Returns the value for the first occurrence of
id as a duration. |
default CqlDuration |
GettableByIndex.getCqlDuration(int i)
Returns the
i th value as a duration. |
default CqlDuration |
GettableByName.getCqlDuration(String name)
Returns the value for the first occurrence of
name as a duration. |
static CqlDuration |
CqlDuration.newInstance(int months,
int days,
long nanoseconds)
Creates a duration with the given number of months, days and nanoseconds.
|
Modifier and Type | Method and Description |
---|---|
default SelfT |
SettableById.setCqlDuration(CqlIdentifier id,
CqlDuration v)
Sets the value for all occurrences of
id to the provided duration. |
default SelfT |
SettableByIndex.setCqlDuration(int i,
CqlDuration v)
Sets the
i th value to the provided duration. |
default SelfT |
SettableByName.setCqlDuration(String name,
CqlDuration v)
Sets the value for all occurrences of
name to the provided duration. |
Modifier and Type | Field and Description |
---|---|
static TypeCodec<CqlDuration> |
TypeCodecs.DURATION
The default codec that maps CQL type
duration to the driver's CqlDuration . |
Modifier and Type | Field and Description |
---|---|
static GenericType<CqlDuration> |
GenericType.CQL_DURATION |
Copyright © 2017–2021. All rights reserved.