@API(value=STABLE) public class RecordQuery extends Object
QueryComponent
filter.Modifier and Type | Class and Description |
---|---|
static class |
RecordQuery.Builder
A builder for
RecordQuery . |
Modifier and Type | Field and Description |
---|---|
static Collection<String> |
ALL_TYPES |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getAllowedIndexes() |
QueryComponent |
getFilter() |
Collection<String> |
getRecordTypes() |
List<KeyExpression> |
getRequiredResults() |
KeyExpression |
getSort() |
boolean |
hasAllowedIndexes() |
boolean |
isSortReverse() |
static RecordQuery.Builder |
newBuilder() |
boolean |
removesDuplicates() |
RecordQuery.Builder |
toBuilder() |
String |
toString() |
void |
validate(RecordMetaData metaData)
Validates that this record query is valid with the provided metadata.
|
public static final Collection<String> ALL_TYPES
@Nonnull public Collection<String> getRecordTypes()
public boolean hasAllowedIndexes()
@Nullable public Collection<String> getAllowedIndexes()
@Nullable public QueryComponent getFilter()
@Nullable public KeyExpression getSort()
public boolean isSortReverse()
public boolean removesDuplicates()
@Nullable public List<KeyExpression> getRequiredResults()
public void validate(@Nonnull RecordMetaData metaData)
metaData
- the metadata that you want to use with this querypublic static RecordQuery.Builder newBuilder()
public RecordQuery.Builder toBuilder()