public class TextInstanceCreator<L>
extends storm.trident.operation.BaseFunction
| Constructor and Description |
|---|
TextInstanceCreator() |
TextInstanceCreator(boolean withLabel) |
TextInstanceCreator(boolean withLabel,
TextTokenizer textAnalyser) |
| Modifier and Type | Method and Description |
|---|---|
protected TextInstance<L> |
createInstance(storm.trident.tuple.TridentTuple tuple) |
void |
execute(storm.trident.tuple.TridentTuple tuple,
storm.trident.operation.TridentCollector collector) |
protected List<String> |
extractTokens(String text) |
TextTokenizer |
getTextAnalyser() |
boolean |
isWithLabel() |
void |
setTextAnalyser(TextTokenizer textAnalyser) |
void |
setWithLabel(boolean withLabel) |
public TextInstanceCreator()
public TextInstanceCreator(boolean withLabel)
public TextInstanceCreator(boolean withLabel,
TextTokenizer textAnalyser)
public void execute(storm.trident.tuple.TridentTuple tuple,
storm.trident.operation.TridentCollector collector)
protected TextInstance<L> createInstance(storm.trident.tuple.TridentTuple tuple)
public boolean isWithLabel()
public void setWithLabel(boolean withLabel)
public TextTokenizer getTextAnalyser()
public void setTextAnalyser(TextTokenizer textAnalyser)
Copyright © 2013. All rights reserved.