// FragmentBlocks returns the checksums and block ids for all blocks in the specified fragment.
FragmentBlocks returns the checksums and block ids for all blocks in the specified fragment.
// FragmentBlocks returns the checksums and block ids for all blocks in the specified fragment .
func (api *API) FragmentBlocks(ctx context.Context, indexName, fieldName, viewName string, shard uint64) ([]FragmentBlock, error) {
	span, _ := tracing.StartSpanFromContext(ctx, "API.FragmentBlocks")
	defer span.Finish()
	if err := api.validate(apiFragmentBlocks); err != nil {
		return nil, errors.Wrap(err, "validating api method")
	}
	f := api.holder.fragment(indexName, fieldName, viewName, shard)
	if f == nil {
		return nil, ErrFragmentNotFound
	}
	blocks := f.Blocks()
	return blocks, nil
}
func ( api * API ) FragmentBlocks ( ctx context . Context , indexName , fieldName , viewName string , shard uint64 ) ( [ ] FragmentBlock , error ) { span , _ := tracing . StartSpanFromContext ( ctx , " " ) defer span . Finish ( ) if err := api . validate ( apiFragmentBlocks ) ; err != nil { return nil , errors . Wrap ( err , " " ) } f := api . holder . fragment ( indexName , fieldName , viewName , shard ) if f == nil { return nil , ErrFragmentNotFound } blocks := f . Blocks ( ) return blocks , nil }
FragmentBlocks returns the checksums and block ids for all blocks in the specified fragment.
FragmentBlocks returns the checksums and block ids for all blocks in the specified fragment .
// Retrieve fragment from holder. // Retrieve blocks.