// NewIteratorFromScan creates a new iterator from a scan
NewIteratorFromScan creates a new iterator from a scan
// NewIteratorFromScan creates a new iterator from a scan
func NewIteratorFromScan(ctx context.Context, cli IteratorClient, input *dynamodb.ScanInput) *Iterator {
	p := request.Pagination{
		NewRequest: func() (*request.Request, error) {
			var inCpy *dynamodb.ScanInput
			if input != nil {
				tmp := *input
				inCpy = &tmp
			}
			req, _ := cli.ScanRequest(inCpy)
			req.SetContext(ctx)
			return req, nil
		},
	}
	return &Iterator{p: p}
}
func NewIteratorFromScan ( ctx context . Context , cli IteratorClient , input * dynamodb . ScanInput ) * Iterator { p := request . Pagination { NewRequest : func ( ) ( * request . Request , error ) { var inCpy * dynamodb . ScanInput if input != nil { tmp := * input inCpy = & tmp } req , _ := cli . ScanRequest ( inCpy ) req . SetContext ( ctx ) return req , nil } , } return & Iterator { p : p } }
NewIteratorFromScan creates a new iterator from a scan
NewIteratorFromScan creates a new iterator from a scan