コード例 #1
0
 internal unsafe CBForestQueryStatus(C4QueryEnumerator *e)
 {
     Key               = e->key;
     Value             = e->value;
     DocSequence       = (long)e->docSequence;
     _docIDSlice       = e->docID;
     _fullTextTerms    = e->fullTextTerms;
     FullTextTermCount = e->fullTextTermCount;
     BoundingBox       = e->geoBBox;
     GeoJSONRaw        = e->geoJSON;
 }
コード例 #2
0
        internal unsafe CBForestQueryStatus(C4Slice docID, C4KeyReader key, C4Slice value, long docSequence)
        {
            _docID      = new Lazy <string>(() => (string)docID);
            Key         = key;
            Value       = value;
            DocSequence = docSequence;
            _keyJSON    = new Lazy <string>(() =>
            {
                var localKey = key;
                return(Native.c4key_toJSON(&localKey));
            });

            _valueJSON = new Lazy <string>(() => (string)value);
        }