// Has returns whether or not the passed key exists.
342185
func (t *Immutable) Has(key []byte) bool {
	if node := t.get(key); node != nil {
		return true
	}
	return false
}
181363
func (db *DB) Has(key []byte, ro *opt.ReadOptions) (ret bool, err error) {
	err = db.ok()
	if err != nil {
		return
	}

	se := db.acquireSnapshot()
	defer db.releaseSnapshot(se)
	return db.has(nil, nil, key, se.seq, ro)
}
1280626
func (c *ARC) Has(key interface{}) bool {
	c.mu.RLock()
	defer c.mu.RUnlock()
	now := time.Now()
	return c.has(key, &now)
}
706339
func (d Data) Has(key string) (interface{}, bool) {
	val, ok := d[key]
	return val, ok
}
757802
func (db *MemDB) Has(key []byte) bool {
	db.mtx.Lock()
	defer db.mtx.Unlock()
	key = nonNilBytes(key)

	_, ok := db.db[string(key)]
	return ok
}
960513
func (m Metadata) Has(key string) (exists bool) {
	_, exists = m[key]
	return
}
878730
func (d *MutexDatastore) Has(key ds.Key) (exists bool, err error) {
	d.RLock()
	defer d.RUnlock()
	return d.child.Has(key)
}
1048117
func (s Int64) Has(item int64) bool {
	_, contained := s[item]
	return contained
}
349989
func (s Set) Has(value string) bool {
	_, ret := s[value]
	return ret
}
117997
func (db *DB) Has(key []byte) (yes bool, err error) {
	yes, err = db.ldb.Has(key, nil)
	if err != nil {
		metrics.GetOrRegisterCounter("DB.hasFail", nil).Inc(1)
		return false, err
	}
	metrics.GetOrRegisterCounter("DB.has", nil).Inc(1)
	return yes, nil
}
926091
func (c Collector) Has(k string) bool {
	_, ok := c[k]
	return ok
}
121395
func (rh *HashMap) Has(elementid, key string) (bool, error) {
	conn := rh.pool.Get(rh.dbindex)
	retval, err := conn.Do("HEXISTS", rh.id+":"+elementid, key)
	if err != nil {
		panic(err)
	}
	return redis.Bool(retval, err)
}
1304812
func (snap *Snapshot) Has(key []byte, ro *opt.ReadOptions) (ret bool, err error) {
	err = snap.db.ok()
	if err != nil {
		return
	}
	snap.mu.RLock()
	defer snap.mu.RUnlock()
	if snap.released {
		err = ErrSnapshotReleased
		return
	}
	return snap.db.has(nil, nil, key, snap.elem.seq, ro)
}
235854
func (db *CLevelDB) Has(key []byte) bool {
	return db.Get(key) != nil
}
1210935
func (s Int) Has(item int) bool {
	_, contained := s[item]
	return contained
}
888816
func (node *Node) has(t *ImmutableTree, key []byte) (has bool) {
	if bytes.Equal(node.key, key) {
		return true
	}
	if node.isLeaf() {
		return false
	}
	if bytes.Compare(key, node.key) < 0 {
		return node.getLeftNode(t).has(t, key)
	}
	return node.getRightNode(t).has(t, key)
}
1269857
func (v VersionSet) Has(apiVersion string) bool {
	_, ok := v[apiVersion]
	return ok
}