public class SimpleCQLStatementMapperBuilder extends Object implements CQLStatementBuilder<SimpleCQLStatementMapper>, Serializable
Default class to build 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)
Creates a new SimpleCQLStatementMapperBuilder
instance.
queryString
- a valid CQL query string.public SimpleCQLStatementMapperBuilder(com.datastax.driver.core.querybuilder.BuiltStatement builtStatement)
Creates a new SimpleCQLStatementMapperBuilder
instance.
builtStatement
- a query built statementspublic SimpleCQLStatementMapper build()
Builds a new CQLStatementTupleMapper
instance.
build
in interface CQLStatementBuilder<SimpleCQLStatementMapper>
public final SimpleCQLStatementMapperBuilder with(FieldSelector... fields)
Includes only the specified tuple fields.
fields
- a list of field selector.public final SimpleCQLStatementMapperBuilder withRoutingKeys(String... fields)
public final SimpleCQLStatementMapperBuilder with(CqlMapper mapper)
Includes only the specified tuple fields.
mapper
- a column mapper.Copyright © 2019 The Apache Software Foundation. All Rights Reserved.