public class InternalQuery<T>
extends java.lang.Object
By default, visibility of returned entities is not enforced (unlike in QueryProcessor
). The methods in this class are not typically used by
user-facing paths, but rather by internal callers that need to process all
matching results.
Modifier and Type | Field and Description |
---|---|
protected IndexConfig |
indexConfig |
Modifier | Constructor and Description |
---|---|
protected |
InternalQuery(QueryProcessor<T> queryProcessor,
IndexCollection<?,T,? extends Index<?,T>> indexes,
IndexConfig indexConfig) |
Modifier and Type | Method and Description |
---|---|
InternalQuery<T> |
enforceVisibility(boolean enforce) |
InternalQuery<T> |
noFields() |
java.util.List<T> |
query(Predicate<T> p) |
protected Schema<T> |
schema() |
InternalQuery<T> |
setLimit(int n) |
InternalQuery<T> |
setRequestedFields(java.util.Set<java.lang.String> fields) |
protected final IndexConfig indexConfig
protected InternalQuery(QueryProcessor<T> queryProcessor, IndexCollection<?,T,? extends Index<?,T>> indexes, IndexConfig indexConfig)
public InternalQuery<T> setLimit(int n)
public InternalQuery<T> enforceVisibility(boolean enforce)
public InternalQuery<T> setRequestedFields(java.util.Set<java.lang.String> fields)
public InternalQuery<T> noFields()
public java.util.List<T> query(Predicate<T> p) throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException