public interface AccessibleById extends AccessibleByIndex
In the driver, these data structures are always accessible by index as well.
Modifier and Type | Method and Description |
---|---|
default List<Integer> |
allIndicesOf(CqlIdentifier id)
Returns all the indices where a given identifier appears.
|
int |
firstIndexOf(CqlIdentifier id)
Returns the first index where a given identifier appears (depending on the implementation,
identifiers may appear multiple times).
|
DataType |
getType(CqlIdentifier id)
Returns the CQL type of the value for the first occurrence of
id . |
getType, size
codecRegistry, protocolVersion
@NonNull default List<Integer> allIndicesOf(@NonNull CqlIdentifier id)
IllegalArgumentException
- if the id is invalid.firstIndexOf(CqlIdentifier)
in a singleton list, which is not entirely correct,
as it will only return the first occurrence. Therefore it also logs a warning.
Implementors should always override this method (all built-in driver implementations do).
int firstIndexOf(@NonNull CqlIdentifier id)
IllegalArgumentException
- if the id is invalid.@NonNull DataType getType(@NonNull CqlIdentifier id)
id
.
If you want to avoid the overhead of building a CqlIdentifier
, use the variant of
this method that takes a string argument.
IllegalArgumentException
- if the id is invalid.Copyright © 2017–2024. All rights reserved.