Class EmptyResponseProcessor<T extends Output<T>>
java.lang.Object
org.tribuo.data.columnar.processors.response.EmptyResponseProcessor<T>
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Configurable
,com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
,ResponseProcessor<T>
public final class EmptyResponseProcessor<T extends Output<T>>
extends Object
implements ResponseProcessor<T>
A
ResponseProcessor
that always emits an empty optional.
This class is designed to be used when loading columnar datasets which will never have a response (e.g., for clustering or anomaly detection).
It still requires an output factory, even though it's never used to generate an output, because the output factory provides the type for the columnar infrastructure.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The field name this response processor looks for, which is ignored anyway as this processor always returnsOptional.empty()
. -
Constructor Summary
ConstructorDescriptionEmptyResponseProcessor
(OutputFactory<T> outputFactory) Constructs a response processor which never emits a response. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the field names this ResponseProcessor uses.Gets the OutputFactory this ResponseProcessor uses.com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance
Deprecated.This method always returnsOptional.empty()
.void
setFieldName
(String fieldName) Deprecated.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.oracle.labs.mlrg.olcut.config.Configurable
postConfig
-
Field Details
-
FIELD_NAME
The field name this response processor looks for, which is ignored anyway as this processor always returnsOptional.empty()
.- See Also:
-
-
Constructor Details
-
EmptyResponseProcessor
Constructs a response processor which never emits a response.It contains an output factory as this types the whole columnar infrastructure.
- Parameters:
outputFactory
- The output factory to use.
-
-
Method Details
-
getOutputFactory
Description copied from interface:ResponseProcessor
Gets the OutputFactory this ResponseProcessor uses.- Specified by:
getOutputFactory
in interfaceResponseProcessor<T extends Output<T>>
- Returns:
- The output factory.
-
getFieldName
Deprecated.- Specified by:
getFieldName
in interfaceResponseProcessor<T extends Output<T>>
- Returns:
- The field name.
-
setFieldName
Deprecated.This is a no-op as the empty response processor doesn't inspect a field.- Specified by:
setFieldName
in interfaceResponseProcessor<T extends Output<T>>
- Parameters:
fieldName
- The field name.
-
process
Deprecated.This method always returnsOptional.empty()
.- Specified by:
process
in interfaceResponseProcessor<T extends Output<T>>
- Parameters:
value
- The value to process.- Returns:
Optional.empty()
.
-
process
This method always returnsOptional.empty()
.- Specified by:
process
in interfaceResponseProcessor<T extends Output<T>>
- Parameters:
values
- The values to process.- Returns:
Optional.empty()
.
-
getFieldNames
Description copied from interface:ResponseProcessor
Gets the field names this ResponseProcessor uses.- Specified by:
getFieldNames
in interfaceResponseProcessor<T extends Output<T>>
- Returns:
- The field names.
-
toString
-
getProvenance
public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()
-