public class QueryProcessor
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
QueryProcessor.OutputFormat |
Modifier and Type | Method and Description |
---|---|
boolean |
getIncludeCurrentPatchSet() |
boolean |
getIncludeDependencies() |
boolean |
getIncludeFiles() |
boolean |
getIncludePatchSets() |
void |
query(java.lang.String queryString) |
java.util.List<java.util.List<ChangeData>> |
queryChanges(java.util.List<java.lang.String> queries)
Query for changes that match the query string.
|
java.util.List<ChangeData> |
queryChanges(java.lang.String queryString)
Query for changes that match the query string.
|
void |
setIncludeAllReviewers(boolean on) |
void |
setIncludeApprovals(boolean on) |
void |
setIncludeComments(boolean on) |
void |
setIncludeCommitMessage(boolean on) |
void |
setIncludeCurrentPatchSet(boolean on) |
void |
setIncludeDependencies(boolean on) |
void |
setIncludeFiles(boolean on) |
void |
setIncludePatchSets(boolean on) |
void |
setIncludeSubmitRecords(boolean on) |
void |
setOutput(java.io.OutputStream out,
QueryProcessor.OutputFormat fmt) |
void |
setStart(int n) |
public void setStart(int n)
public void setIncludePatchSets(boolean on)
public boolean getIncludePatchSets()
public void setIncludeCurrentPatchSet(boolean on)
public boolean getIncludeCurrentPatchSet()
public void setIncludeApprovals(boolean on)
public void setIncludeComments(boolean on)
public void setIncludeFiles(boolean on)
public boolean getIncludeFiles()
public void setIncludeDependencies(boolean on)
public boolean getIncludeDependencies()
public void setIncludeCommitMessage(boolean on)
public void setIncludeSubmitRecords(boolean on)
public void setIncludeAllReviewers(boolean on)
public void setOutput(java.io.OutputStream out, QueryProcessor.OutputFormat fmt)
public java.util.List<ChangeData> queryChanges(java.lang.String queryString) throws com.google.gwtorm.server.OrmException, com.google.gerrit.server.query.QueryParseException
If a limit was specified using setLimit(int)
this method may
return up to limit + 1
results, allowing the caller to determine if
there are more than limit
matches and suggest to its own caller
that the query could be retried with setSortkeyBefore(String)
.
com.google.gwtorm.server.OrmException
com.google.gerrit.server.query.QueryParseException
public java.util.List<java.util.List<ChangeData>> queryChanges(java.util.List<java.lang.String> queries) throws com.google.gwtorm.server.OrmException, com.google.gerrit.server.query.QueryParseException
If a limit was specified using setLimit(int)
this method may
return up to limit + 1
results, allowing the caller to determine if
there are more than limit
matches and suggest to its own caller
that the query could be retried with setSortkeyBefore(String)
.
com.google.gwtorm.server.OrmException
com.google.gerrit.server.query.QueryParseException
public void query(java.lang.String queryString) throws java.io.IOException
java.io.IOException