Package org.dizitart.no2.collection
Class FindPlan
- java.lang.Object
-
- org.dizitart.no2.collection.FindPlan
-
public class FindPlan extends Object
A plan for finding documents in a collection.- Since:
- 4.0
- Author:
- Anindya Chatterjee
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<Pair<String,SortOrder>>getBlockingSortOrder()Gets the blocking sort order.FieldBasedFiltergetByIdFilter()Gets theFieldBasedFilterfor byId search if any.CollatorgetCollator()Gets theCollator.FiltergetCollectionScanFilter()Gets theFilterfor collection scan if any.IndexDescriptorgetIndexDescriptor()Gets theIndexDescriptorfor index scan if any.IndexScanFiltergetIndexScanFilter()Gets theIndexScanFilterfor index scan if any.Map<String,Boolean>getIndexScanOrder()Gets the index scan order.LonggetLimit()Gets the limit count.LonggetSkip()Gets the skip count.List<FindPlan>getSubPlans()Gets the sub plans.inthashCode()booleanisDistinct()Gets the distinct flag.voidsetBlockingSortOrder(List<Pair<String,SortOrder>> blockingSortOrder)Gets the blocking sort order.voidsetByIdFilter(FieldBasedFilter byIdFilter)Gets theFieldBasedFilterfor byId search if any.voidsetCollator(Collator collator)Gets theCollator.voidsetCollectionScanFilter(Filter collectionScanFilter)Gets theFilterfor collection scan if any.voidsetDistinct(boolean distinct)Gets the distinct flag.voidsetIndexDescriptor(IndexDescriptor indexDescriptor)Gets theIndexDescriptorfor index scan if any.voidsetIndexScanFilter(IndexScanFilter indexScanFilter)Gets theIndexScanFilterfor index scan if any.voidsetIndexScanOrder(Map<String,Boolean> indexScanOrder)Gets the index scan order.voidsetLimit(Long limit)Gets the limit count.voidsetSkip(Long skip)Gets the skip count.voidsetSubPlans(List<FindPlan> subPlans)Gets the sub plans.StringtoString()
-
-
-
Constructor Detail
-
FindPlan
public FindPlan()
Instantiates a newFindPlan.
-
-
Method Detail
-
getByIdFilter
public FieldBasedFilter getByIdFilter()
Gets theFieldBasedFilterfor byId search if any.
-
getIndexScanFilter
public IndexScanFilter getIndexScanFilter()
Gets theIndexScanFilterfor index scan if any.
-
getCollectionScanFilter
public Filter getCollectionScanFilter()
Gets theFilterfor collection scan if any.
-
getIndexDescriptor
public IndexDescriptor getIndexDescriptor()
Gets theIndexDescriptorfor index scan if any.
-
getBlockingSortOrder
public List<Pair<String,SortOrder>> getBlockingSortOrder()
Gets the blocking sort order.
-
getSkip
public Long getSkip()
Gets the skip count.
-
getLimit
public Long getLimit()
Gets the limit count.
-
isDistinct
public boolean isDistinct()
Gets the distinct flag.
-
setByIdFilter
public void setByIdFilter(FieldBasedFilter byIdFilter)
Gets theFieldBasedFilterfor byId search if any.
-
setIndexScanFilter
public void setIndexScanFilter(IndexScanFilter indexScanFilter)
Gets theIndexScanFilterfor index scan if any.
-
setCollectionScanFilter
public void setCollectionScanFilter(Filter collectionScanFilter)
Gets theFilterfor collection scan if any.
-
setIndexDescriptor
public void setIndexDescriptor(IndexDescriptor indexDescriptor)
Gets theIndexDescriptorfor index scan if any.
-
setIndexScanOrder
public void setIndexScanOrder(Map<String,Boolean> indexScanOrder)
Gets the index scan order.
-
setBlockingSortOrder
public void setBlockingSortOrder(List<Pair<String,SortOrder>> blockingSortOrder)
Gets the blocking sort order.
-
setSkip
public void setSkip(Long skip)
Gets the skip count.
-
setLimit
public void setLimit(Long limit)
Gets the limit count.
-
setDistinct
public void setDistinct(boolean distinct)
Gets the distinct flag.
-
-