public class DefaultPojoQueryBuilder<P> extends Object implements PojoQueryBuilder<P>
Constructor and Description |
---|
DefaultPojoQueryBuilder(com.datastax.oss.driver.api.core.CqlSession session,
PojoBinding<P> pojoBinding,
String tableName,
PojoQueryContextFactory contextFactory,
Executor executor) |
Modifier and Type | Method and Description |
---|---|
PojoQueryBuilder<P> |
asc(String facetName)
Sorts the query by the facet, ascending.
|
PojoQuery<P> |
build()
Builds the query.
|
PojoQueryBuilder<P> |
desc(String facetName)
Sorts the query by the facet, descending.
|
PojoQueryBuilder<P> |
eq(String facetName)
Adds a parameterized "=" clause to the query for the facet.
|
PojoQueryBuilder<P> |
eq(String facetName,
Object value)
Adds a constant-valued "=" clause to the query for the facet.
|
PojoQueryBuilder<P> |
gt(String facetName)
Adds a parameterized ">" clause to the query for the facet.
|
PojoQueryBuilder<P> |
gt(String facetName,
Object value)
Adds a constant-valued ">" clause to the query for the facet.
|
PojoQueryBuilder<P> |
gte(String facetName)
Adds a parameterized ">=" clause to the query for the facet.
|
PojoQueryBuilder<P> |
gte(String facetName,
Object value)
Adds a constant-valued ">=" clause to the query for the facet.
|
PojoQueryBuilder<P> |
in(String facetName)
Adds a parameterized "IN" clause to the query for the facet.
|
PojoQueryBuilder<P> |
in(String facetName,
Iterable<Object> values)
Adds a constant-valued "IN" clause to the query for the facet.
|
PojoQueryBuilder<P> |
lt(String facetName)
Adds a parameterized "<" clause to the query for the facet.
|
PojoQueryBuilder<P> |
lt(String facetName,
Object value)
Adds a constant-valued "<" clause to the query for the facet.
|
PojoQueryBuilder<P> |
lte(String facetName)
Adds a parameterized "<=" clause to the query for the facet.
|
PojoQueryBuilder<P> |
lte(String facetName,
Object value)
Adds a constant-valued "<=" clause to the query for the facet.
|
public DefaultPojoQueryBuilder(com.datastax.oss.driver.api.core.CqlSession session, PojoBinding<P> pojoBinding, String tableName, PojoQueryContextFactory contextFactory, Executor executor)
public PojoQueryBuilder<P> asc(String facetName)
PojoQueryBuilder
asc
in interface PojoQueryBuilder<P>
facetName
- the facet namepublic PojoQuery<P> build()
PojoQueryBuilder
build
in interface PojoQueryBuilder<P>
public PojoQueryBuilder<P> desc(String facetName)
PojoQueryBuilder
desc
in interface PojoQueryBuilder<P>
facetName
- the facet namepublic PojoQueryBuilder<P> eq(String facetName)
PojoQueryBuilder
eq
in interface PojoQueryBuilder<P>
facetName
- the facet namepublic PojoQueryBuilder<P> eq(String facetName, Object value)
PojoQueryBuilder
eq
in interface PojoQueryBuilder<P>
facetName
- the facet namevalue
- the constant valuepublic PojoQueryBuilder<P> gt(String facetName)
PojoQueryBuilder
gt
in interface PojoQueryBuilder<P>
facetName
- the facet namepublic PojoQueryBuilder<P> gt(String facetName, Object value)
PojoQueryBuilder
gt
in interface PojoQueryBuilder<P>
facetName
- the facet namevalue
- the constant valuepublic PojoQueryBuilder<P> gte(String facetName)
PojoQueryBuilder
gte
in interface PojoQueryBuilder<P>
facetName
- the facet namepublic PojoQueryBuilder<P> gte(String facetName, Object value)
PojoQueryBuilder
gte
in interface PojoQueryBuilder<P>
facetName
- the facet namevalue
- the constant valuepublic PojoQueryBuilder<P> in(String facetName)
PojoQueryBuilder
in
in interface PojoQueryBuilder<P>
facetName
- the facet namepublic PojoQueryBuilder<P> in(String facetName, Iterable<Object> values)
PojoQueryBuilder
in
in interface PojoQueryBuilder<P>
facetName
- the facet namevalues
- the constant valuepublic PojoQueryBuilder<P> lt(String facetName)
PojoQueryBuilder
lt
in interface PojoQueryBuilder<P>
facetName
- the facet namepublic PojoQueryBuilder<P> lt(String facetName, Object value)
PojoQueryBuilder
lt
in interface PojoQueryBuilder<P>
facetName
- the facet namevalue
- the constant valuepublic PojoQueryBuilder<P> lte(String facetName)
PojoQueryBuilder
lte
in interface PojoQueryBuilder<P>
facetName
- the facet namepublic PojoQueryBuilder<P> lte(String facetName, Object value)
PojoQueryBuilder
lte
in interface PojoQueryBuilder<P>
facetName
- the facet namevalue
- the constant valueCopyright © 2012–2020 Savoir Technologies, Inc.. All rights reserved.