public class SchemaSettings extends Object
| Constructor and Description |
|---|
SchemaSettings(Config config,
SchemaGenerationStrategy schemaGenerationStrategy) |
| Modifier and Type | Method and Description |
|---|---|
ReadResultCounter |
createReadResultCounter(CqlSession session,
ConvertingCodecFactory codecFactory,
EnumSet<StatsSettings.StatisticsMode> modes,
int numPartitions) |
ReadResultMapper |
createReadResultMapper(CqlSession session,
RecordMetadata recordMetadata,
ConvertingCodecFactory codecFactory,
boolean retainRecordSources)
Creates a new
ReadResultMapper. |
List<Statement<?>> |
createReadStatements(CqlSession session) |
RecordMapper |
createRecordMapper(CqlSession session,
RecordMetadata recordMetadata,
ConvertingCodecFactory codecFactory) |
RowType |
getRowType() |
RelationMetadata |
getTargetTable() |
void |
init(CqlSession session,
boolean indexedMappingSupported,
boolean mappedMappingSupported) |
boolean |
isAllowExtraFields() |
boolean |
isAllowMissingFields() |
boolean |
isBatchQuery() |
boolean |
isSearchQuery() |
public SchemaSettings(Config config, SchemaGenerationStrategy schemaGenerationStrategy)
public void init(CqlSession session, boolean indexedMappingSupported, boolean mappedMappingSupported)
public RecordMapper createRecordMapper(CqlSession session, RecordMetadata recordMetadata, ConvertingCodecFactory codecFactory) throws IllegalArgumentException
IllegalArgumentExceptionpublic ReadResultMapper createReadResultMapper(CqlSession session, RecordMetadata recordMetadata, ConvertingCodecFactory codecFactory, boolean retainRecordSources)
ReadResultMapper.session - The session to use when preparing the SELECT statement.recordMetadata - The RecordMetadata to use for column mappings.codecFactory - The ConvertingCodecFactory to use to locate codecs for the mapping
operation.retainRecordSources - Whether the mapper should retain record sources; if true,
all emitted records will contain the original row as their
sources.public ReadResultCounter createReadResultCounter(CqlSession session, ConvertingCodecFactory codecFactory, EnumSet<StatsSettings.StatisticsMode> modes, int numPartitions)
public List<Statement<?>> createReadStatements(CqlSession session)
@NonNull public RowType getRowType()
@NonNull public RelationMetadata getTargetTable()
public boolean isAllowExtraFields()
public boolean isAllowMissingFields()
public boolean isSearchQuery()
public boolean isBatchQuery()
Copyright © 2017–2021 DataStax. All rights reserved.