Ejemplo n.º 1
0
 internal CouchbaseView(ICouchbaseClient client, IHttpClientLocator clientLocator,
                        string designDocument, string indexName, int retryCount, bool shouldLookupDocById = false,
                        string pagedViewIdProperty = null, string pagedViewKeyProperty = null)
     : base(client, clientLocator, designDocument, indexName, retryCount)
 {
     _shouldLookupDocById = shouldLookupDocById;
 }
Ejemplo n.º 2
0
 internal CouchbaseViewBase(IMemcachedClient client, IHttpClientLocator clientLocator, string designDocument, string indexName)
 {
     this.client         = client;
     this.clientLocator  = clientLocator;
     this.designDocument = designDocument;
     this.indexName      = indexName;
 }
Ejemplo n.º 3
0
 internal CouchbaseViewHandler(ICouchbaseClient client, IHttpClientLocator clientLocator, string designDocument, string indexName, string viewPath = "_view")
 {
     this.Client         = client;
     this.ClientLocator  = clientLocator;
     this.DesignDocument = designDocument;
     this.IndexName      = indexName;
     this.ViewPath       = viewPath;
 }
Ejemplo n.º 4
0
        internal CouchbaseViewHandler(ICouchbaseClient client, IHttpClientLocator clientLocator, string designDocument, string indexName, int retryCount, string viewPath = "_view")
        {
            this.Client         = client;
            this.ClientLocator  = clientLocator;
            this.DesignDocument = designDocument;
            this.IndexName      = indexName;
            this.ViewPath       = viewPath;

            if (retryCount < 0 || retryCount > 10)
            {
                const string msg = "Must be greater than 0 and less than or equal to 10.";
                throw new ArgumentOutOfRangeException("retryCount", msg);
            }
            RetryCount = retryCount;
        }
Ejemplo n.º 5
0
        protected CouchbaseViewBase(CouchbaseViewBase <T> original)
        {
            this.clientLocator  = original.clientLocator;
            this.designDocument = original.designDocument;
            this.indexName      = original.indexName;

            this.startKey = original.startKey;
            this.endKey   = original.endKey;

            this.startId = original.startId;
            this.endId   = original.endId;

            this.stale      = original.stale;
            this.descending = original.descending;
            this.inclusive  = original.inclusive;

            this.skip  = original.skip;
            this.limit = original.limit;

            this.reduce  = original.reduce;
            this.groupAt = original.groupAt;
        }
 internal CouchbaseSpatialView(ICouchbaseClient client, IHttpClientLocator clientLocator, string designDocument, string indexName, int retryCount, bool shouldLookUpDocById = false)
     : base(client, clientLocator, designDocument, indexName, retryCount)
 {
     _shouldLookupDocById = shouldLookUpDocById;
 }
Ejemplo n.º 7
0
 internal CouchbaseView(IMemcachedClient client, IHttpClientLocator clientLocator, string designDocument, string indexName)
     : base(client, clientLocator, designDocument, indexName)
 {
 }
Ejemplo n.º 8
0
 internal CouchbaseView(ICouchbaseClient client, IHttpClientLocator clientLocator, string designDocument, string indexName, int retryCount)
     : base(client, clientLocator, designDocument, indexName, retryCount) { }
 internal CouchbaseSpatialViewBase(ICouchbaseClient client, IHttpClientLocator clientLocator, string designDocument, string indexName, int retryCount)
 {
     ViewHandler = new CouchbaseViewHandler(client, clientLocator, designDocument, indexName, retryCount, "_spatial");
 }
Ejemplo n.º 10
0
 internal CouchbaseViewBase(ICouchbaseClient client, IHttpClientLocator clientLocator, string designDocument, string indexName)
 {
     this.ViewHandler = new CouchbaseViewHandler(client, clientLocator, designDocument, indexName);
 }
Ejemplo n.º 11
0
 internal CouchbaseViewBase(ICouchbaseClient client, IHttpClientLocator clientLocator, string designDocument, string indexName)
 {
     _urlEncode            = false;
     this.ViewHandler      = new CouchbaseViewHandler(client, clientLocator, designDocument, indexName);
     ViewHandler.UrlEncode = _urlEncode;
 }
 internal CouchbaseSpatialView(ICouchbaseClient client, IHttpClientLocator clientLocator, string designDocument, string indexName)
     : base(client, clientLocator, designDocument, indexName)
 {
 }