Class MLUploadModelChunkInput
java.lang.Object
org.opensearch.ml.common.transport.upload_chunk.MLUploadModelChunkInput
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable,org.opensearch.core.xcontent.ToXContent,org.opensearch.core.xcontent.ToXContentObject
public class MLUploadModelChunkInput
extends Object
implements org.opensearch.core.xcontent.ToXContentObject, org.opensearch.core.common.io.stream.Writeable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.ParamsNested 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
FieldsFields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionMLUploadModelChunkInput(String modelId, Integer chunkNumber, byte[] content) MLUploadModelChunkInput(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanbyte[]inthashCode()static MLUploadModelChunkInputparse(org.opensearch.core.xcontent.XContentParser parser, byte[] content) voidsetChunkNumber(Integer chunkNumber) voidsetContent(byte[] content) voidsetModelId(String modelId) toString()org.opensearch.core.xcontent.XContentBuildertoXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) voidwriteTo(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Field Details
-
CONTENT_FIELD
- See Also:
-
MODEL_ID_FIELD
- See Also:
-
CHUNK_NUMBER_FIELD
- See Also:
-
-
Constructor Details
-
MLUploadModelChunkInput
-
MLUploadModelChunkInput
public MLUploadModelChunkInput(org.opensearch.core.common.io.stream.StreamInput in) throws IOException - Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceorg.opensearch.core.common.io.stream.Writeable- Throws:
IOException
-
toXContent
public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.opensearch.core.xcontent.ToXContent- Throws:
IOException
-
parse
public static MLUploadModelChunkInput parse(org.opensearch.core.xcontent.XContentParser parser, byte[] content) throws IOException - Throws:
IOException
-
builder
-
toBuilder
-
getContent
public byte[] getContent() -
getModelId
-
getChunkNumber
-
setContent
public void setContent(byte[] content) -
setModelId
-
setChunkNumber
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-