Package org.opensearch.ml.common.agent
Class MLMemorySpec
java.lang.Object
org.opensearch.ml.common.agent.MLMemorySpec
- All Implemented Interfaces:
org.opensearch.core.xcontent.ToXContent,org.opensearch.core.xcontent.ToXContentObject
-
Nested Class Summary
Nested ClassesNested 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.Params -
Field Summary
FieldsFields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionMLMemorySpec(String type, String sessionId, Integer windowSize) MLMemorySpec(org.opensearch.core.common.io.stream.StreamInput input) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanstatic MLMemorySpecfromStream(org.opensearch.core.common.io.stream.StreamInput in) getType()inthashCode()static MLMemorySpecparse(org.opensearch.core.xcontent.XContentParser parser) voidsetSessionId(String sessionId) 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, toString, wait, wait, waitMethods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Field Details
-
MEMORY_TYPE_FIELD
- See Also:
-
WINDOW_SIZE_FIELD
- See Also:
-
SESSION_ID_FIELD
- See Also:
-
-
Constructor Details
-
MLMemorySpec
-
MLMemorySpec
- Throws:
IOException
-
-
Method Details
-
writeTo
- 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 MLMemorySpec parse(org.opensearch.core.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
fromStream
public static MLMemorySpec fromStream(org.opensearch.core.common.io.stream.StreamInput in) throws IOException - Throws:
IOException
-
builder
-
toBuilder
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getType
-
getSessionId
-
getWindowSize
-
setSessionId
-