Home
last modified time | relevance | path

Searched refs:value (Results 1 - 25 of 1241) sorted by relevance

12345678910>>...50

/5.5.2/goproj/src/github.com/couchbase/query/expression/
H A Dfunc_num.go16 "github.com/couchbase/query/value"
27 the absolute value of the number.
50 It returns a Number value.
52 func (this *Abs) Type() value.Type { return value.NUMBER }
54 func (this *Abs) Evaluate(item value.Value, context Context) (value.Value, error) {
59 This method takes in an operand value and context and returns an absolute
60 value. If the type of operand is missing then return it. For values that
61 are not of type Number, return a null value
[all...]
H A Dfunc_type_conv.go17 "github.com/couchbase/query/value"
51 func (this *ToArray) Type() value.Type { return value.ARRAY }
53 func (this *ToArray) Evaluate(item value.Value, context Context) (value.Value, error) {
56 func (this *ToArray) Apply(context Context, arg value.Value) (value.Value, error) {
57 if arg.Type() <= value.NULL {
59 } else if arg.Type() == value.ARRAY {
61 } else if arg.Type() == value
[all...]
H A Dfunc_array.go17 "github.com/couchbase/query/value"
27 This represents the array function ARRAY_APPEND(expr, value ...).
50 func (this *ArrayAppend) Type() value.Type { return value.ARRAY }
52 func (this *ArrayAppend) Evaluate(item value.Value, context Context) (value.Value, error) {
60 func (this *ArrayAppend) Apply(context Context, args ...value.Value) (value.Value, error) {
62 if arg.Type() == value.MISSING {
63 return value
[all...]
H A Dfunc_type_check.go13 "github.com/couchbase/query/value"
46 func (this *IsArray) Type() value.Type { return value.BOOLEAN }
48 func (this *IsArray) Evaluate(item value.Value, context Context) (value.Value, error) {
58 func (this *IsArray) FilterCovers(covers map[string]value.Value) map[string]value.Value {
59 covers[this.String()] = value.TRUE_VALUE
63 func (this *IsArray) Apply(context Context, arg value.Value) (value
[all...]
H A Dfunc_bitwise.go15 "github.com/couchbase/query/value"
55 func (this *BitAnd) Type() value.Type { return value.NUMBER }
57 func (this *BitAnd) Evaluate(item value.Value, context Context) (value.Value, error) {
61 func (this *BitAnd) Apply(context Context, args ...value.Value) (value.Value, error) {
64 if arg.Type() == value.MISSING {
65 return value.MISSING_VALUE, nil
68 // If not a numeric value retur
[all...]
H A Dfunc_obj.go17 "github.com/couchbase/query/value"
53 func (this *ObjectAdd) Type() value.Type { return value.OBJECT }
55 func (this *ObjectAdd) Evaluate(item value.Value, context Context) (value.Value, error) {
68 This method takes in an object, a name and a value and returns a new
70 missing then return a missing value, and if not an object return a
71 null value.
73 func (this *ObjectAdd) Apply(context Context, first, second, third value.Value) (value
[all...]
H A Dfunc_date.go19 "github.com/couchbase/query/value"
56 func (this *ClockMillis) Type() value.Type { return value.NUMBER }
63 func (this *ClockMillis) Evaluate(item value.Value, context Context) (value.Value, error) {
65 return value.NewValue(float64(nanos) / 1000000.0), nil
111 func (this *ClockStr) Type() value.Type { return value.STRING }
113 func (this *ClockStr) Evaluate(item value.Value, context Context) (value
[all...]
H A Dfunc_str.go18 "github.com/couchbase/query/value"
51 func (this *Contains) Type() value.Type { return value.BOOLEAN }
53 func (this *Contains) Evaluate(item value.Value, context Context) (value.Value, error) {
63 func (this *Contains) FilterCovers(covers map[string]value.Value) map[string]value.Value {
64 covers[this.String()] = value.TRUE_VALUE
69 This method takes in two values and returns new value that returns a boolean
70 value tha
[all...]
H A Dfunc_cond_num.go15 "github.com/couchbase/query/value"
50 func (this *IfInf) Type() value.Type { return value.NUMBER }
52 func (this *IfInf) Evaluate(item value.Value, context Context) (value.Value, error) {
64 func (this *IfInf) Apply(context Context, args ...value.Value) (value.Value, error) {
66 if a.Type() == value.MISSING {
67 return value.MISSING_VALUE, nil
68 } else if a.Type() != value
[all...]
H A Dfunc_like.go16 "github.com/couchbase/query/value"
53 func (this *LikePrefix) Type() value.Type { return value.STRING }
55 func (this *LikePrefix) Evaluate(item value.Value, context Context) (value.Value, error) {
59 func (this *LikePrefix) Apply(context Context, arg value.Value) (value.Value, error) {
60 if arg.Type() == value.MISSING {
61 return value.MISSING_VALUE, nil
62 } else if arg.Type() != value
[all...]
H A Dfunc_json.go17 "github.com/couchbase/query/value"
28 unmarshals the JSON-encoded string into a N1QL value, and
51 func (this *JSONDecode) Type() value.Type { return value.JSON }
53 func (this *JSONDecode) Evaluate(item value.Value, context Context) (value.Value, error) {
58 This method returns a valid N1QL value from a JSON encoded
60 it isnt string then return null value. Conver the input arg
62 string return missing value. If not then call the Unmarshal
64 to a bytes slice and return the json value
[all...]
H A Dcomp_null.go13 "github.com/couchbase/query/value"
36 func (this *IsNull) Type() value.Type { return value.BOOLEAN }
38 func (this *IsNull) Evaluate(item value.Value, context Context) (value.Value, error) {
52 func (this *IsNull) FilterCovers(covers map[string]value.Value) map[string]value.Value {
53 covers[this.Operand().String()] = value.NULL_VALUE
54 covers[this.String()] = value.TRUE_VALUE
58 func (this *IsNull) Apply(context Context, arg value
[all...]
H A Dfunc_token.go15 "github.com/couchbase/query/value"
44 func (this *ContainsToken) Type() value.Type { return value.BOOLEAN }
46 func (this *ContainsToken) Evaluate(item value.Value, context Context) (value.Value, error) {
56 func (this *ContainsToken) FilterCovers(covers map[string]value.Value) map[string]value.Value {
57 covers[this.String()] = value.TRUE_VALUE
61 func (this *ContainsToken) Apply(context Context, args ...value.Value) (value
[all...]
H A Dfunc_regexp.go16 "github.com/couchbase/query/value"
27 It returns true if the string value contains the regular expression
53 func (this *RegexpContains) Type() value.Type { return value.BOOLEAN }
55 func (this *RegexpContains) Evaluate(item value.Value, context Context) (value.Value, error) {
65 func (this *RegexpContains) FilterCovers(covers map[string]value.Value) map[string]value.Value {
66 covers[this.String()] = value.TRUE_VALUE
70 func (this *RegexpContains) Apply(context Context, first, second value
[all...]
H A Dcomp_valued.go13 "github.com/couchbase/query/value"
36 func (this *IsValued) Type() value.Type { return value.BOOLEAN }
38 func (this *IsValued) Evaluate(item value.Value, context Context) (value.Value, error) {
56 func (this *IsValued) FilterCovers(covers map[string]value.Value) map[string]value.Value {
57 covers[this.String()] = value.TRUE_VALUE
61 func (this *IsValued) Apply(context Context, arg value.Value) (value
[all...]
H A Dcomp_missing.go13 "github.com/couchbase/query/value"
36 func (this *IsMissing) Type() value.Type { return value.BOOLEAN }
38 func (this *IsMissing) Evaluate(item value.Value, context Context) (value.Value, error) {
56 func (this *IsMissing) FilterCovers(covers map[string]value.Value) map[string]value.Value {
57 covers[this.Operand().String()] = value.MISSING_VALUE
58 covers[this.String()] = value.TRUE_VALUE
62 func (this *IsMissing) Apply(context Context, arg value
[all...]
H A Dlogic_or.go13 "github.com/couchbase/query/value"
40 func (this *Or) Type() value.Type { return value.BOOLEAN }
42 func (this *Or) Evaluate(item value.Value, context Context) (value.Value, error) {
46 func (this *Or) Value() value.Value {
47 if this.value != nil {
48 return *this.value
52 this.value = &_NIL_VALUE
56 var valMissing, valNull value
[all...]
/5.5.2/couchdb/test/python/lib/couchdb/
H A Dmapping.py92 value = instance._data.get(self.name)
93 if value is not None:
94 value = self._to_python(value)
99 value = default
100 return value
102 def __set__(self, instance, value):
103 if value is not None:
104 value = self._to_json(value)
[all...]
/5.5.2/goproj/src/github.com/couchbase/query/server/
H A Dset_params.go29 value, _ := o.(string)
30 s.SetCpuProfile(value)
33 value, _ := o.(bool)
34 s.SetDebug(value)
37 value, _ := o.(float64)
38 s.SetKeepAlive(int(value))
41 value, _ := o.(string)
42 s.SetLogLevel(value)
45 value, _ := o.(float64)
46 s.SetMaxParallelism(int(value))
[all...]
/5.5.2/third_party/HdrHistogram_c/src/
H A Dhdr_encoding.c14 int64_t value = signed_value; in zig_zag_encode_i64() local
16 value = (value << 1) ^ (value >> 63); in zig_zag_encode_i64()
18 if (value >> 7 == 0) in zig_zag_encode_i64()
20 buffer[0] = (uint8_t) value; in zig_zag_encode_i64()
25 buffer[0] = (uint8_t) ((value & 0x7F) | 0x80); in zig_zag_encode_i64()
26 if (value >> 14 == 0) in zig_zag_encode_i64()
28 buffer[1] = (uint8_t) (value >> 7); in zig_zag_encode_i64()
33 buffer[1] = (uint8_t) ((value >> in zig_zag_encode_i64()
99 uint64_t value = v & 0x7F; zig_zag_decode_i64() local
[all...]
/5.5.2/goproj/src/github.com/couchbase/query/algebra/
H A Dagg_avg.go16 "github.com/couchbase/query/value"
51 It returns a value of type NUMBER.
53 func (this *Avg) Type() value.Type { return value.NUMBER }
59 func (this *Avg) Evaluate(item value.Value, context expression.Context) (result value.Value, e error) {
74 If no input to the AVG function, then the default value
77 func (this *Avg) Default() value.Value { return value.NULL_VALUE }
81 values other than Number, return the input value itsel
[all...]
H A Dagg_count_distinct.go14 "github.com/couchbase/query/value"
50 It returns a value of type NUMBER.
52 func (this *CountDistinct) Type() value.Type { return value.NUMBER }
58 func (this *CountDistinct) Evaluate(item value.Value, context expression.Context) (result value.Value, e error) {
73 If no input to the COUNT DISTINCT function, then the default value
74 returned is a zero value.
76 func (this *CountDistinct) Default() value.Value { return value
[all...]
/5.5.2/moxi/libmemcached/libhashkit/
H A Done_at_a_time.c19 uint32_t value= 0; in hashkit_one_at_a_time() local
25 value += val; in hashkit_one_at_a_time()
26 value += (value << 10); in hashkit_one_at_a_time()
27 value ^= (value >> 6); in hashkit_one_at_a_time()
29 value += (value << 3); in hashkit_one_at_a_time()
30 value ^= (value >> 1 in hashkit_one_at_a_time()
[all...]
/5.5.2/couchstore/src/views/
H A Dvalues.cc22 view_btree_value_t **value) in decode_view_btree_value()
44 *value = v; in decode_view_btree_value()
101 *value = v; in decode_view_btree_value()
111 couchstore_error_t encode_view_btree_value(const view_btree_value_t *value, in encode_view_btree_value() argument
121 for (i = 0; i < value->num_values; ++i) { in encode_view_btree_value()
122 sz += 3; /* json value length */ in encode_view_btree_value()
123 sz += value->values[i].size; in encode_view_btree_value()
131 enc_uint16(value->partition, &b); in encode_view_btree_value()
133 for (i = 0; i < value->num_values; ++i) { in encode_view_btree_value()
134 enc_raw24(value in encode_view_btree_value()
20 decode_view_btree_value(const char *bytes, size_t len, view_btree_value_t **value) decode_view_btree_value() argument
153 free_view_btree_value(view_btree_value_t *value) free_view_btree_value() argument
171 decode_view_id_btree_value(const char *bytes, size_t len, view_id_btree_value_t **value) decode_view_id_btree_value() argument
297 encode_view_id_btree_value(const view_id_btree_value_t *value, char **buffer, size_t *buffer_size) encode_view_id_btree_value() argument
356 free_view_id_btree_value(view_id_btree_value_t *value) free_view_id_btree_value() argument
[all...]
/5.5.2/godeps/src/github.com/couchbase/retriever/stats/
H A Dstats.go91 func (sc *StatsCollector) UpdateStat(key string, value interface{}) error {
101 sc.Stats[key] = value
111 value, ok := sc.Stats[key]
116 switch value := value.(type) {
118 sc.Stats[key] = value + 1
120 sc.Stats[key] = value + 1
122 sc.Stats[key] = value + 1
124 sc.Stats[key] = value + 1
126 sc.Stats[key] = value
[all...]

Completed in 44 milliseconds

12345678910>>...50