Example #1
0
File: plugin.go Project: bakhi/test
func init() {
	bql.MustRegisterGlobalSourceCreator("my_src", bql.SourceCreatorFunc(test.CreateMySource))
	//	bql.MustRegisterGlobalSourceCreator("lorem", bql.SourceCreatorFunc(udsfs.CreateLoremSource))
	//	udf.MustRegisterGlobalUDSFCreator("word_splitter", udf.MustConvertToUDSFCreator(udsfs.CreateWordSplitter))
	udf.MustRegisterGlobalUDSFCreator("ticker", udf.MustConvertToUDSFCreator(test.CreateTicker))
	udf.MustRegisterGlobalUDSFCreator("collector", udf.MustConvertToUDSFCreator(test.CreateCollector))
}
Example #2
0
func init() {
	bql.MustRegisterGlobalSourceCreator("wc_sentences",
		bql.SourceCreatorFunc(wordcount.CreateSentences))
	udf.MustRegisterGlobalUDSFCreator("wc_tokenizer",
		udf.MustConvertToUDSFCreator(wordcount.CreateTokenizer))
}