Class TrainedModelConfig
java.lang.Object
org.elasticsearch.client.ml.inference.TrainedModelConfig
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent
,org.elasticsearch.xcontent.ToXContentObject
public class TrainedModelConfig
extends Object
implements org.elasticsearch.xcontent.ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
Deprecated.static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
static final String
static final org.elasticsearch.xcontent.ObjectParser<TrainedModelConfig.Builder,
Void> static final org.elasticsearch.xcontent.ParseField
static final org.elasticsearch.xcontent.ParseField
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptionstatic TrainedModelConfig.Builder
builder()
boolean
static TrainedModelConfig
fromXContent
(org.elasticsearch.xcontent.XContentParser parser) Deprecated.Deprecated.usegetModelSizeBytes()
insteadgetInput()
getTags()
int
hashCode()
toString()
org.elasticsearch.xcontent.XContentBuilder
toXContent
(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
NAME
- See Also:
-
MODEL_ID
public static final org.elasticsearch.xcontent.ParseField MODEL_ID -
CREATED_BY
public static final org.elasticsearch.xcontent.ParseField CREATED_BY -
VERSION
public static final org.elasticsearch.xcontent.ParseField VERSION -
DESCRIPTION
public static final org.elasticsearch.xcontent.ParseField DESCRIPTION -
CREATE_TIME
public static final org.elasticsearch.xcontent.ParseField CREATE_TIME -
DEFINITION
public static final org.elasticsearch.xcontent.ParseField DEFINITION -
COMPRESSED_DEFINITION
public static final org.elasticsearch.xcontent.ParseField COMPRESSED_DEFINITION -
TAGS
public static final org.elasticsearch.xcontent.ParseField TAGS -
METADATA
public static final org.elasticsearch.xcontent.ParseField METADATA -
INPUT
public static final org.elasticsearch.xcontent.ParseField INPUT -
ESTIMATED_HEAP_MEMORY_USAGE_BYTES
@Deprecated public static final org.elasticsearch.xcontent.ParseField ESTIMATED_HEAP_MEMORY_USAGE_BYTESDeprecated. -
MODEL_SIZE_BYTES
public static final org.elasticsearch.xcontent.ParseField MODEL_SIZE_BYTES -
ESTIMATED_OPERATIONS
public static final org.elasticsearch.xcontent.ParseField ESTIMATED_OPERATIONS -
LICENSE_LEVEL
public static final org.elasticsearch.xcontent.ParseField LICENSE_LEVEL -
DEFAULT_FIELD_MAP
public static final org.elasticsearch.xcontent.ParseField DEFAULT_FIELD_MAP -
INFERENCE_CONFIG
public static final org.elasticsearch.xcontent.ParseField INFERENCE_CONFIG -
PARSER
-
-
Method Details
-
fromXContent
public static TrainedModelConfig fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
getModelId
-
getCreatedBy
-
getVersion
-
getDescription
-
getCreateTime
-
getTags
-
getMetadata
-
getDefinition
-
getCompressedDefinition
-
getInput
-
getEstimatedHeapMemory
Deprecated.usegetModelSize()
instead- Returns:
- the
ByteSizeValue
of the model size if available.
-
getEstimatedHeapMemoryBytes
Deprecated.usegetModelSizeBytes()
instead- Returns:
- the model size in bytes if available.
-
getModelSize
- Returns:
- the
ByteSizeValue
of the model size if available.
-
getModelSizeBytes
- Returns:
- the model size in bytes if available.
-
getLicenseLevel
-
getDefaultFieldMap
-
getInferenceConfig
-
builder
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceorg.elasticsearch.xcontent.ToXContent
- Throws:
IOException
-
toString
-
equals
-
hashCode
public int hashCode()
-
getModelSize()
instead