public class DocumentQuery extends Object
| Modifier and Type | Field and Description |
|---|---|
private Criteria |
criteria |
private org.springframework.data.domain.Pageable |
pageable |
private org.springframework.data.domain.Sort |
sort |
| Constructor and Description |
|---|
DocumentQuery(Criteria criteria) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Criteria> |
getCriteriaByType(CriteriaType criteriaType) |
private Optional<Criteria> |
getCriteriaByType(CriteriaType criteriaType,
Criteria criteria) |
private Optional<Criteria> |
getSubjectCriteria(Criteria criteria,
String keyName) |
private boolean |
hasKeywordOr() |
boolean |
isCrossPartitionQuery(List<String> partitionKeys)
Indicate if DocumentQuery should enable cross partition query.
|
private boolean |
isCrossPartitionQuery(String keyName) |
DocumentQuery |
with(org.springframework.data.domain.Pageable pageable) |
DocumentQuery |
with(org.springframework.data.domain.Sort sort) |
private final Criteria criteria
private org.springframework.data.domain.Sort sort
private org.springframework.data.domain.Pageable pageable
public DocumentQuery(@NonNull
Criteria criteria)
public DocumentQuery with(@NonNull org.springframework.data.domain.Sort sort)
public DocumentQuery with(@NonNull org.springframework.data.domain.Pageable pageable)
private boolean isCrossPartitionQuery(@NonNull
String keyName)
private boolean hasKeywordOr()
public boolean isCrossPartitionQuery(@NonNull
List<String> partitionKeys)
partitionKeys - The list of partitionKey names.public Optional<Criteria> getCriteriaByType(@NonNull CriteriaType criteriaType)
private Optional<Criteria> getCriteriaByType(@NonNull CriteriaType criteriaType, @NonNull Criteria criteria)
Copyright © 2020 Microsoft. All rights reserved.