// FragmentData returns all data in the specified fragment.
FragmentData returns all data in the specified fragment.
// FragmentData returns all data in the specified fragment .
func (api *API) FragmentData(ctx context.Context, indexName, fieldName, viewName string, shard uint64) (io.WriterTo, error) {
	span, _ := tracing.StartSpanFromContext(ctx, "API.FragmentData")
	defer span.Finish()
	if err := api.validate(apiFragmentData); err != nil {
		return nil, errors.Wrap(err, "validating api method")
	}
	f := api.holder.fragment(indexName, fieldName, viewName, shard)
	if f == nil {
		return nil, ErrFragmentNotFound
	}
	return f, nil
}
func ( api * API ) FragmentData ( ctx context . Context , indexName , fieldName , viewName string , shard uint64 ) ( io . WriterTo , error ) { span , _ := tracing . StartSpanFromContext ( ctx , " " ) defer span . Finish ( ) if err := api . validate ( apiFragmentData ) ; err != nil { return nil , errors . Wrap ( err , " " ) } f := api . holder . fragment ( indexName , fieldName , viewName , shard ) if f == nil { return nil , ErrFragmentNotFound } return f , nil }
FragmentData returns all data in the specified fragment.
FragmentData returns all data in the specified fragment .
// Retrieve fragment from holder.