Clone() public method

public Clone ( ) : IndexQuery
return IndexQuery
コード例 #1
0
		public static string FindDynamicIndexName(this DocumentDatabase self, string entityName, IndexQuery query)
		{
            var result = new DynamicQueryOptimizer(self).SelectAppropriateIndex(entityName, query.Clone());
		    if (result.MatchType == DynamicQueryMatchType.Complete)
		        return result.IndexName;
		    return null;
		}
コード例 #2
0
		public static List<DynamicQueryOptimizer.Explanation> ExplainDynamicIndexSelection(this DocumentDatabase self, string entityName, IndexQuery query)
		{
			var explanations = new List<DynamicQueryOptimizer.Explanation>();
			new DynamicQueryOptimizer(self)
				.SelectAppropriateIndex(entityName, query.Clone(), explanations);
			return explanations;
		}
コード例 #3
0
		public static string FindDynamicIndexName(this DocumentDatabase self, string entityName, IndexQuery query)
		{
			return new DynamicQueryOptimizer(self).SelectAppropriateIndex(entityName, query.Clone());
		}