public interface DiscoveryClassifier<T> extends PluginComponent, PropertyConfigurable
Modifier and Type | Interface and Description |
---|---|
static class |
DiscoveryClassifier.ClassificationResult |
static class |
DiscoveryClassifier.Confidence |
static class |
DiscoveryClassifier.Target |
static interface |
DiscoveryClassifier.TextDataSample |
Modifier and Type | Method and Description |
---|---|
DiscoveryClassifier.ClassificationResult |
classify(T value)
The contents of the values list depends on the Target of the classifier: PATH - Some number
of path names describing the location of the data in the schema or data format.
|
DiscoveryClassifier.Target |
getClassificationTarget()
This method determines the type of classifier the class implements, and the input Object type
for the
classify(Object) method. |
default void |
setup(DiscoveryClassifierService serviceProvider)
Perform any setup needed, including ingestion of data files and similar time-consuming work.
|
default void |
tearDown()
Relinquish any resources this classifier has acquired during its operation and reset any
results gathered.
|
getDescription, getDocumentation, getName
configure, describeProperties
DiscoveryClassifier.Target getClassificationTarget()
classify(Object)
method.DiscoveryClassifier.ClassificationResult classify(T value)
value
- The value(s) to classify.default void setup(@Nonnull DiscoveryClassifierService serviceProvider)
serviceProvider
- The service interface providing callbacks for the classifier to use.default void tearDown()