// BatchGet implements the MVCCStore interface.
BatchGet implements the MVCCStore interface.
// BatchGet implements the MVCCStore interface .
func (mvcc *MVCCRocksDB) BatchGet(ks [][]byte, startTS uint64, isoLevel kvrpcpb.IsolationLevel, resolvedLocks []uint64) []Pair {
	mvcc.mu.RLock()
	defer mvcc.mu.RUnlock()
	pairs := make([]Pair, 0, len(ks))
	for _, k := range ks {
		v, err := mvcc.getValue(k, startTS, isoLevel, resolvedLocks)
		if v == nil && err == nil {
			continue
		}
		pairs = append(pairs, Pair{
			Key:   k,
			Value: v,
			Err:   errors.Trace(err),
		})
	}
	return pairs
}
func ( mvcc * MVCCRocksDB ) BatchGet ( ks [ ] [ ] byte , startTS uint64 , isoLevel kvrpcpb . IsolationLevel , resolvedLocks [ ] uint64 ) [ ] Pair { mvcc . mu . RLock ( ) defer mvcc . mu . RUnlock ( ) pairs := make ( [ ] Pair , 0 , len ( ks ) ) for _ , k := range ks { v , err := mvcc . getValue ( k , startTS , isoLevel , resolvedLocks ) if v == nil && err == nil { continue } pairs = append ( pairs , Pair { Key : k , Value : v , Err : errors . Trace ( err ) , } ) } return pairs }
BatchGet implements the MVCCStore interface.
BatchGet implements the MVCCStore interface .