| Package | Description |
|---|---|
| com.datastax.oss.dsbulk.connectors.api | |
| com.datastax.oss.dsbulk.mapping | |
| com.datastax.oss.dsbulk.workflow.commons.schema |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IndexedField
A field in a
Record identified by a zero-based integer index. |
interface |
MappedField
A field in a
Record identified by an alphanumeric name. |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultIndexedField |
class |
DefaultMappedField |
| Modifier and Type | Method and Description |
|---|---|
Set<Field> |
Record.fields()
Returns a set containing all the fields in this record.
|
Set<Field> |
DefaultRecord.fields() |
Set<Field> |
DefaultErrorRecord.fields() |
| Modifier and Type | Method and Description |
|---|---|
GenericType<?> |
RecordMetadata.getFieldType(Field field,
DataType cqlType)
Returns the type of the given field.
|
Object |
Record.getFieldValue(Field field)
Returns the value associated with the given field.
|
Object |
DefaultRecord.getFieldValue(Field field) |
Object |
DefaultErrorRecord.getFieldValue(Field field) |
static DefaultRecord |
DefaultRecord.mapped(Object source,
URI resource,
long position,
Field[] keys,
Object... values)
Creates a mapped record with the given keys and values.
|
void |
DefaultRecord.setFieldValue(Field field,
Object value)
Sets the value associated with the given field.
|
| Modifier and Type | Method and Description |
|---|---|
static DefaultRecord |
DefaultRecord.mapped(Object source,
URI resource,
long position,
Map<? extends Field,?> values)
Creates a mapped record with the given map of keys and values.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
MappingField
A field in a mapping definition.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FunctionCall
A CQL function call as declared in a query or in a mapping entry.
|
class |
IndexedMappingField
A field in a mapping declaration, identified by a zero-based integer index.
|
class |
MappedMappingField
A field in a mapping definition identified by an alphanumeric name.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Field> |
Mapping.fields()
Returns all the fields in this mapping.
|
Set<Field> |
DefaultMapping.fields() |
Set<Field> |
Mapping.variableToFields(CQLWord variable)
Maps the given row variable to one or more fields in a record.
|
Set<Field> |
DefaultMapping.variableToFields(CQLWord variable) |
| Modifier and Type | Method and Description |
|---|---|
Set<CQLWord> |
Mapping.fieldToVariables(Field field)
Maps the given field to one or more variables in a write bound statement.
|
Set<CQLWord> |
DefaultMapping.fieldToVariables(Field field) |
| Constructor and Description |
|---|
DefaultMapping(com.datastax.oss.driver.shaded.guava.common.collect.ImmutableSetMultimap<Field,CQLWord> fieldsToVariables,
ConvertingCodecFactory codecFactory,
com.datastax.oss.driver.shaded.guava.common.collect.ImmutableSet<CQLWord> writeTimeVariables) |
| Modifier and Type | Method and Description |
|---|---|
static InvalidMappingException |
InvalidMappingException.encodeFailed(Field field,
CQLWord variable,
GenericType<?> fieldType,
DataType cqlType,
Object raw,
Exception cause) |
static InvalidMappingException |
InvalidMappingException.extraneousField(Field field) |
static InvalidMappingException |
InvalidMappingException.missingField(Field field,
CQLWord variable) |
Copyright © 2017–2021 DataStax. All rights reserved.