Class ModelResultFilter
java.lang.Object
org.opensearch.ml.common.output.model.ModelResultFilter
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable
public class ModelResultFilter
extends Object
implements org.opensearch.core.common.io.stream.Writeable
This class is to filter model results.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModelResultFilter(boolean returnBytes, boolean returnNumber, List<String> targetResponse, List<Integer> targetResponsePositions) ModelResultFilter(org.opensearch.core.common.io.stream.StreamInput streamInput) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanbooleanstatic ModelResultFilterparse(org.opensearch.core.xcontent.XContentParser parser) voidwriteTo(org.opensearch.core.common.io.stream.StreamOutput streamOutput)
-
Field Details
-
RETURN_BYTES_FIELD
- See Also:
-
RETURN_NUMBER_FIELD
- See Also:
-
TARGET_RESPONSE_FIELD
- See Also:
-
TARGET_RESPONSE_POSITIONS_FIELD
- See Also:
-
returnBytes
protected final boolean returnBytes -
returnNumber
protected final boolean returnNumber -
targetResponse
-
targetResponsePositions
-
-
Constructor Details
-
ModelResultFilter
-
ModelResultFilter
public ModelResultFilter(org.opensearch.core.common.io.stream.StreamInput streamInput) throws IOException - Throws:
IOException
-
-
Method Details
-
writeTo
public void writeTo(org.opensearch.core.common.io.stream.StreamOutput streamOutput) throws IOException - Specified by:
writeToin interfaceorg.opensearch.core.common.io.stream.Writeable- Throws:
IOException
-
parse
public static ModelResultFilter parse(org.opensearch.core.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
builder
-
isReturnBytes
public boolean isReturnBytes() -
isReturnNumber
public boolean isReturnNumber() -
getTargetResponse
-
getTargetResponsePositions
-