// seet to Start, limit to Limit
seet to Start, limit to Limit
// seet to Start limit to Limit
func newIterator(db *gorocksdb.DB, slice *gorocksdb.Range) *gorocksdb.Iterator {
	readOpts := gorocksdb.NewDefaultReadOptions()
	if(slice.Limit != nil){
		readOpts.SetIterateUpperBound(slice.Limit)
	}
	iter := db.NewIterator(readOpts)
	if(slice.Start != nil){
		iter.Seek(slice.Start)
	}else{
		iter.SeekToFirst()
	}
	return iter
}
func newIterator ( db * gorocksdb . DB , slice * gorocksdb . Range ) * gorocksdb . Iterator { readOpts := gorocksdb . NewDefaultReadOptions ( ) if ( slice . Limit != nil ) { readOpts . SetIterateUpperBound ( slice . Limit ) } iter := db . NewIterator ( readOpts ) if ( slice . Start != nil ) { iter . Seek ( slice . Start ) } else { iter . SeekToFirst ( ) } return iter }
seet to Start, limit to Limit
seet to Start limit to Limit