func UDSCreatorFunc(f func(*core.Context, data.Map) (core.SharedState, error)) UDSCreator {
	return udsCreatorFunc(f)
}
UDSCreatorFunc creates a UDSCreator from a function.
package udf
import (
	"fmt"
	"gopkg.in/sensorbee/sensorbee.v0/core"
	"gopkg.in/sensorbee/sensorbee.v0/data"
	"io"
	"strings"
	"sync"
)
type UDSCreator interface {
	CreateState(ctx *core.Context, params data.Map) (core.SharedState, error)
}
type UDSLoader interface {
	UDSCreator
	LoadState(ctx *core.Context, r io.Reader, params data.Map) (core.SharedState, error)
}
type udsCreatorFunc func(*core.Context, data.Map) (core.SharedState, error)
func (f udsCreatorFunc) CreateState(ctx *core.Context, params data.Map) (core.SharedState, error) {
	return f(ctx, params)
}