Exemplo n.º 1
0
Arquivo: plugin.go Projeto: 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))
}
Exemplo n.º 2
0
func init() {
	bql.MustRegisterGlobalSourceCreator("wc_sentences",
		bql.SourceCreatorFunc(wordcount.CreateSentences))
	udf.MustRegisterGlobalUDSFCreator("wc_tokenizer",
		udf.MustConvertToUDSFCreator(wordcount.CreateTokenizer))
}