Esempio n. 1
0
// NewIteratorCF returns an Iterator over the column family in the database
// that uses the given read options.
func (self *DB) NewIteratorCF(opts *ReadOptions, cf *ColumnFamily) *Iterator {
	cIter := C.rocksdb_create_iterator_cf(self.c, opts.c, cf.c)
	return NewNativeIterator(cIter)
}
Esempio n. 2
0
File: db.go Progetto: C0rWin/fabric
// NewIteratorCF returns an Iterator over the the database and column family
// that uses the ReadOptions given.
func (db *DB) NewIteratorCF(opts *ReadOptions, cf *ColumnFamilyHandle) *Iterator {
	cIter := C.rocksdb_create_iterator_cf(db.c, opts.c, cf.c)
	return NewNativeIterator(unsafe.Pointer(cIter))
}
Esempio n. 3
0
// NewIteratorCF returns an Iterator over the the database and column family
// that uses the ReadOptions given.
func (db *DB) NewIteratorCF(opts *ReadOptions, cf *CF) *Iterator {
	cIter := C.rocksdb_create_iterator_cf(db.c, opts.c, cf.c)
	return newNativeIterator(cIter)
}