Class IndexEntrySource
- java.lang.Object
-
- com.apple.foundationdb.record.query.plan.temp.IndexEntrySource
-
public class IndexEntrySource extends Object
A source of abstract index entries, each of which references a single record. AnIndexEntrySource
is an abstraction of the disparate sources of index entries. Presently, anIndexEntrySource
is either an index or the range of primary keys, but in general there could be other index entry sources.This abstraction is quite useful for the various rules in
com.apple.foundationdb.record.query.plan.temp.rules
since most rules can consider different types of scans that produces records with a uniform interface.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static IndexEntrySource
fromCommonPrimaryKey(Collection<String> recordTypes, KeyExpression commonPrimaryKey)
static IndexEntrySource
fromIndex(Collection<RecordType> recordTypes, Index index)
static IndexEntrySource
fromIndexWithTypeStrings(Collection<String> recordTypes, Index index)
ViewExpressionComparisons
getEmptyComparisons()
String
getIndexName()
int
hashCode()
boolean
isIndexScan()
String
toString()
-
-
-
Method Detail
-
getEmptyComparisons
@Nonnull public ViewExpressionComparisons getEmptyComparisons()
-
isIndexScan
public boolean isIndexScan()
-
fromIndex
@Nonnull public static IndexEntrySource fromIndex(@Nonnull Collection<RecordType> recordTypes, @Nonnull Index index)
-
fromIndexWithTypeStrings
@Nonnull public static IndexEntrySource fromIndexWithTypeStrings(@Nonnull Collection<String> recordTypes, @Nonnull Index index)
-
fromCommonPrimaryKey
@Nonnull public static IndexEntrySource fromCommonPrimaryKey(@Nonnull Collection<String> recordTypes, @Nonnull KeyExpression commonPrimaryKey)
-
-