public class AndChangeSource extends com.google.gerrit.index.query.AndSource<ChangeData> implements ChangeDataSource
Constructor and Description |
---|
AndChangeSource(java.util.Collection<com.google.gerrit.index.query.Predicate<ChangeData>> that) |
AndChangeSource(com.google.gerrit.index.query.Predicate<ChangeData> that,
com.google.gerrit.index.query.IsVisibleToPredicate<ChangeData> isVisibleToPredicate,
int start) |
Modifier and Type | Method and Description |
---|---|
int |
compare(com.google.gerrit.index.query.Predicate<ChangeData> a,
com.google.gerrit.index.query.Predicate<ChangeData> b) |
boolean |
hasChange() |
protected java.util.List<ChangeData> |
transformBuffer(java.util.List<ChangeData> buffer) |
getCardinality, isMatchable, match, read
copy, equals, getChild, getChildCount, getChildren, getCost, hashCode, toString
and, and, any, asMatchable, estimateCost, not, or, or
public AndChangeSource(java.util.Collection<com.google.gerrit.index.query.Predicate<ChangeData>> that)
public AndChangeSource(com.google.gerrit.index.query.Predicate<ChangeData> that, com.google.gerrit.index.query.IsVisibleToPredicate<ChangeData> isVisibleToPredicate, int start)
public boolean hasChange()
hasChange
in interface ChangeDataSource
protected java.util.List<ChangeData> transformBuffer(java.util.List<ChangeData> buffer) throws com.google.gwtorm.server.OrmRuntimeException
transformBuffer
in class com.google.gerrit.index.query.AndSource<ChangeData>
com.google.gwtorm.server.OrmRuntimeException
public int compare(com.google.gerrit.index.query.Predicate<ChangeData> a, com.google.gerrit.index.query.Predicate<ChangeData> b)
compare
in interface java.util.Comparator<com.google.gerrit.index.query.Predicate<ChangeData>>
compare
in class com.google.gerrit.index.query.AndSource<ChangeData>