Package com.google.gerrit.index.query
Class AndSource<T>
- java.lang.Object
- 
- com.google.gerrit.index.query.Predicate<T>
- 
- com.google.gerrit.index.query.AndPredicate<T>
- 
- com.google.gerrit.index.query.AndSource<T>
 
 
 
- 
- All Implemented Interfaces:
- DataSource<T>,- Matchable<T>,- Comparator<Predicate<T>>
 - Direct Known Subclasses:
- AndChangeSource
 
 public class AndSource<T> extends AndPredicate<T> implements DataSource<T>, Comparator<Predicate<T>> 
- 
- 
Field SummaryFields Modifier and Type Field Description protected DataSource<T>source
 - 
Constructor SummaryConstructors Constructor Description AndSource(Predicate<T> that, IsVisibleToPredicate<T> isVisibleToPredicate)AndSource(Predicate<T> that, IsVisibleToPredicate<T> isVisibleToPredicate, int start)AndSource(Collection<? extends Predicate<T>> that)AndSource(Collection<? extends Predicate<T>> that, IsVisibleToPredicate<T> isVisibleToPredicate, int start)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Predicate<T> a, Predicate<T> b)intgetCardinality()Returns an estimate of the number of results fromDataSource.read().booleanisMatchable()booleanmatch(T object)Does this predicate match this object?ResultSet<T>read()Returns read from the index and return the results.ResultSet<FieldBundle>readRaw()Returns read from the index and return the raw results.protected List<T>transformBuffer(List<T> buffer)- 
Methods inherited from class com.google.gerrit.index.query.AndPredicatecopy, equals, getChild, getChildCount, getChildren, getCost, hashCode, toString
 - 
Methods inherited from class com.google.gerrit.index.query.Predicateand, and, any, asMatchable, estimateCost, getFlattenedPredicateList, getLeafCount, getPredicateString, isLeaf, not, or, or, supportedForQueries
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.util.Comparatorequals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
 
- 
 
- 
- 
- 
Field Detail- 
sourceprotected final DataSource<T> source 
 
- 
 - 
Constructor Detail- 
AndSourcepublic AndSource(Collection<? extends Predicate<T>> that) 
 - 
AndSourcepublic AndSource(Predicate<T> that, IsVisibleToPredicate<T> isVisibleToPredicate) 
 - 
AndSourcepublic AndSource(Predicate<T> that, IsVisibleToPredicate<T> isVisibleToPredicate, int start) 
 - 
AndSourcepublic AndSource(Collection<? extends Predicate<T>> that, IsVisibleToPredicate<T> isVisibleToPredicate, int start) 
 
- 
 - 
Method Detail- 
readpublic ResultSet<T> read() Description copied from interface:DataSourceReturns read from the index and return the results.- Specified by:
- readin interface- DataSource<T>
 
 - 
readRawpublic ResultSet<FieldBundle> readRaw() Description copied from interface:DataSourceReturns read from the index and return the raw results.- Specified by:
- readRawin interface- DataSource<T>
 
 - 
isMatchablepublic boolean isMatchable() - Overrides:
- isMatchablein class- AndPredicate<T>
 
 - 
matchpublic boolean match(T object) Description copied from interface:MatchableDoes this predicate match this object?
 - 
getCardinalitypublic int getCardinality() Description copied from interface:DataSourceReturns an estimate of the number of results fromDataSource.read().- Specified by:
- getCardinalityin interface- DataSource<T>
 
 
- 
 
-