public interface SettableByIndexData<T extends SettableByIndexData<T>>
| Modifier and Type | Method and Description |
|---|---|
T |
setBool(int i,
boolean v)
Sets the
ith value to the provided boolean. |
T |
setBytes(int i,
ByteBuffer v)
Sets the
ith value to the provided byte buffer. |
T |
setBytesUnsafe(int i,
ByteBuffer v)
Sets the
ith value to the provided byte buffer. |
T |
setDate(int i,
Date v)
Set the
ith value to the provided date. |
T |
setDecimal(int i,
BigDecimal v)
Sets the
ith value to the provided big decimal. |
T |
setDouble(int i,
double v)
Sets the
ith value to the provided double. |
T |
setFloat(int i,
float v)
Sets the
ith value to the provided float. |
T |
setInet(int i,
InetAddress v)
Sets the
ith value to the provided inet address. |
T |
setInt(int i,
int v)
Set the
ith value to the provided integer. |
<E> T |
setList(int i,
List<E> v)
Sets the
ith value to the provided list. |
T |
setLong(int i,
long v)
Sets the
ith value to the provided long. |
<K,V> T |
setMap(int i,
Map<K,V> v)
Sets the
ith value to the provided map. |
<E> T |
setSet(int i,
Set<E> v)
Sets the
ith value to the provided set. |
T |
setString(int i,
String v)
Sets the
ith value to the provided string. |
T |
setToNull(int i)
Sets the
ith value to null. |
T |
setTupleValue(int i,
TupleValue v)
Sets the
ith value to the provided tuple value. |
T |
setUDTValue(int i,
UDTValue v)
Sets the
ith value to the provided UDT value. |
T |
setUUID(int i,
UUID v)
Sets the
ith value to the provided UUID. |
T |
setVarint(int i,
BigInteger v)
Sets the
ith value to the provided big integer. |
T setBool(int i, boolean v)
ith value to the provided boolean.i - the index of the value to set.v - the value to set.IndexOutOfBoundsException - if i is not a valid index for this object.InvalidTypeException - if value i is not of type BOOLEAN.T setInt(int i, int v)
ith value to the provided integer.i - the index of the value to set.v - the value to set.IndexOutOfBoundsException - if i is not a valid index for this object.InvalidTypeException - if value i is not of type INT.T setLong(int i, long v)
ith value to the provided long.i - the index of the value to set.v - the value to set.IndexOutOfBoundsException - if i is not a valid index for this object.InvalidTypeException - if value i is not of type BIGINT or COUNTER.T setDate(int i, Date v)
ith value to the provided date.i - the index of the value to set.v - the value to set.IndexOutOfBoundsException - if i is not a valid index for this object.InvalidTypeException - if value i is not of type TIMESTAMP.T setFloat(int i, float v)
ith value to the provided float.i - the index of the value to set.v - the value to set.IndexOutOfBoundsException - if i is not a valid index for this object.InvalidTypeException - if value i is not of type FLOAT.T setDouble(int i, double v)
ith value to the provided double.i - the index of the value to set.v - the value to set.IndexOutOfBoundsException - if i is not a valid index for this object.InvalidTypeException - if value i is not of type DOUBLE.T setString(int i, String v)
ith value to the provided string.i - the index of the value to set.v - the value to set.IndexOutOfBoundsException - if i is not a valid index for this object.InvalidTypeException - if value i is of neither of the
following types: VARCHAR, TEXT or ASCII.T setBytes(int i, ByteBuffer v)
ith value to the provided byte buffer.
This method validate that the type of the column set is BLOB. If you
want to insert manually serialized data into columns of another type,
use setBytesUnsafe(int, java.nio.ByteBuffer) instead.i - the index of the value to set.v - the value to set.IndexOutOfBoundsException - if i is not a valid index for this object.InvalidTypeException - if value i is not of type BLOB.T setBytesUnsafe(int i, ByteBuffer v)
ith value to the provided byte buffer.
Contrary to setBytes(int, java.nio.ByteBuffer), this method does not check the
type of the column set. If you insert data that is not compatible with
the type of the column, you will get an InvalidQueryException at
execute time.i - the index of the value to set.v - the value to set.IndexOutOfBoundsException - if i is not a valid index for this object.T setVarint(int i, BigInteger v)
ith value to the provided big integer.i - the index of the value to set.v - the value to set.IndexOutOfBoundsException - if i is not a valid index for this object.InvalidTypeException - if value i is not of type VARINT.T setDecimal(int i, BigDecimal v)
ith value to the provided big decimal.i - the index of the value to set.v - the value to set.IndexOutOfBoundsException - if i is not a valid index for this object.InvalidTypeException - if value i is not of type DECIMAL.T setUUID(int i, UUID v)
ith value to the provided UUID.i - the index of the value to set.v - the value to set.IndexOutOfBoundsException - if i is not a valid index for this object.InvalidTypeException - if value i is not of type UUID or
TIMEUUID, or if value i is of type TIMEUUID but v is
not a type 1 UUID.T setInet(int i, InetAddress v)
ith value to the provided inet address.i - the index of the value to set.v - the value to set.IndexOutOfBoundsException - if i is not a valid index for this object.InvalidTypeException - if value i is not of type INET.<E> T setList(int i, List<E> v)
ith value to the provided list.
Please note that null values are not supported inside collection by CQL.i - the index of the value to set.v - the value to set.IndexOutOfBoundsException - if i is not a valid index for this object.InvalidTypeException - if value i is not a list type or
if the elements of v are not of the type of the elements of
column i.NullPointerException - if v contains null values. Nulls are not supported in collections
by CQL.<K,V> T setMap(int i, Map<K,V> v)
ith value to the provided map.
Please note that null values are not supported inside collection by CQL.i - the index of the value to set.v - the value to set.IndexOutOfBoundsException - if i is not a valid index for this object.InvalidTypeException - if value i is not a map type or
if the elements (keys or values) of v are not of the type of the
elements of column i.NullPointerException - if v contains null values. Nulls are not supported in collections
by CQL.<E> T setSet(int i, Set<E> v)
ith value to the provided set.
Please note that null values are not supported inside collection by CQL.i - the index of the value to set.v - the value to set.IndexOutOfBoundsException - if i is not a valid index for this object.InvalidTypeException - if value i is not a set type or
if the elements of v are not of the type of the elements of
column i.NullPointerException - if v contains null values. Nulls are not supported in collections
by CQL.T setUDTValue(int i, UDTValue v)
ith value to the provided UDT value.i - the index of the value to set.v - the value to set.IndexOutOfBoundsException - if i is not a valid index for this object.InvalidTypeException - if value i is not a UDT value or if its definition
does not correspond to the one of v.T setTupleValue(int i, TupleValue v)
ith value to the provided tuple value.i - the index of the value to set.v - the value to set.IndexOutOfBoundsException - if i is not a valid index for this object.InvalidTypeException - if value i is not a tuple value or if its types
do not correspond to the ones of v.T setToNull(int i)
ith value to null.
This is mainly intended for CQL types which map to native Java types.i - the index of the value to set.IndexOutOfBoundsException - if i is not a valid index for this object.