public class SimpleCQLStatementMapperBuilder extends Object implements CQLStatementBuilder<SimpleCQLStatementMapper>, Serializable
SimpleCQLStatementMapper
instance.Constructor and Description |
---|
SimpleCQLStatementMapperBuilder(com.datastax.driver.core.querybuilder.BuiltStatement builtStatement)
Creates a new
SimpleCQLStatementMapperBuilder instance. |
SimpleCQLStatementMapperBuilder(String queryString)
Creates a new
SimpleCQLStatementMapperBuilder instance. |
Modifier and Type | Method and Description |
---|---|
SimpleCQLStatementMapper |
build()
Builds a new
CQLStatementTupleMapper instance. |
SimpleCQLStatementMapperBuilder |
with(CqlMapper mapper)
Includes only the specified tuple fields.
|
SimpleCQLStatementMapperBuilder |
with(FieldSelector... fields)
Includes only the specified tuple fields.
|
SimpleCQLStatementMapperBuilder |
withRoutingKeys(String... fields) |
public SimpleCQLStatementMapperBuilder(String queryString)
SimpleCQLStatementMapperBuilder
instance.queryString
- a valid CQL query string.public SimpleCQLStatementMapperBuilder(com.datastax.driver.core.querybuilder.BuiltStatement builtStatement)
SimpleCQLStatementMapperBuilder
instance.builtStatement
- a query built statementspublic SimpleCQLStatementMapper build()
CQLStatementTupleMapper
instance.build
in interface CQLStatementBuilder<SimpleCQLStatementMapper>
public final SimpleCQLStatementMapperBuilder with(FieldSelector... fields)
fields
- a list of field selector.public final SimpleCQLStatementMapperBuilder with(CqlMapper mapper)
mapper
- a column mapper.public final SimpleCQLStatementMapperBuilder withRoutingKeys(String... fields)
Copyright © 2023 The Apache Software Foundation. All rights reserved.