private IRavenQueryable <T> QueryInternal <T>(IAsyncDatabaseCommands assyncDatabaseCommands, string indexName, bool isMapReduce = false) { var ravenQueryStatistics = new RavenQueryStatistics(); var highlightings = new RavenQueryHighlightings(); var ravenQueryInspector = new RavenQueryInspector <T>(); var ravenQueryProvider = new RavenQueryProvider <T>(this, indexName, ravenQueryStatistics, highlightings, null, assyncDatabaseCommands, isMapReduce); ravenQueryInspector.Init(ravenQueryProvider, ravenQueryStatistics, highlightings, indexName, null, this, null, assyncDatabaseCommands, isMapReduce); return(ravenQueryInspector); }
/// <summary> /// Queries the specified index using Linq. /// </summary> /// <typeparam name="T">The result of the query</typeparam> /// <param name="indexName">Name of the index.</param> /// <returns></returns> public IRavenQueryable <T> Query <T>(string indexName) { var ravenQueryStatistics = new RavenQueryStatistics(); var provider = new RavenQueryProvider <T>(this, indexName, ravenQueryStatistics, null #if !NET_3_5 , null #endif ); return(new RavenQueryInspector <T>(provider, ravenQueryStatistics, indexName, null, this, null #if !NET_3_5 , null #endif )); }
public IRavenQueryable <T> Query <T>(string indexName, bool isMapReduce = false) { var ravenQueryStatistics = new RavenQueryStatistics(); var highlightings = new RavenQueryHighlightings(); var ravenQueryInspector = new RavenQueryInspector <T>(); var ravenQueryProvider = new RavenQueryProvider <T>(this, indexName, ravenQueryStatistics, highlightings, isMapReduce); ravenQueryInspector.Init(ravenQueryProvider, ravenQueryStatistics, highlightings, indexName, null, this, isMapReduce); return(ravenQueryInspector); }
public IRavenQueryable <T> Query <T>(string indexName = null, string collectionName = null, bool isMapReduce = false) { var type = typeof(T); (indexName, collectionName) = ProcessQueryParameters(type, indexName, collectionName, Conventions); var queryStatistics = new QueryStatistics(); var highlightings = new QueryHighlightings(); var ravenQueryInspector = new RavenQueryInspector <T>(); var ravenQueryProvider = new RavenQueryProvider <T>(this, indexName, collectionName, type, queryStatistics, highlightings, isMapReduce); ravenQueryInspector.Init(ravenQueryProvider, queryStatistics, highlightings, indexName, collectionName, null, this, isMapReduce); return(ravenQueryInspector); }
protected override RavenQueryInspector <T> CreateRavenQueryInspector <T>(string indexName, bool isMapReduce, RavenQueryProvider <T> provider, RavenQueryStatistics ravenQueryStatistics, RavenQueryHighlightings highlightings) { #if !SILVERLIGHT return(new ShardedRavenQueryInspector <T>(provider, ravenQueryStatistics, highlightings, indexName, null, this, isMapReduce, shardStrategy, null, shardDbCommands.Values.ToList())); #else return(new RavenQueryInspector <T>(provider, ravenQueryStatistics, highlightings, indexName, null, this, null, isMapReduce)); #endif }
protected abstract RavenQueryInspector <T> CreateRavenQueryInspector <T>(string indexName, bool isMapReduce, RavenQueryProvider <T> provider, RavenQueryStatistics ravenQueryStatistics, RavenQueryHighlightings highlightings);