Module org.elasticsearch.xcore
Class IndexLocation
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.trainedmodel.IndexLocation
- All Implemented Interfaces:
NamedWriteable,Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject,LenientlyParsedTrainedModelLocation,StrictlyParsedTrainedModelLocation,TrainedModelLocation,NamedXContentObject
public class IndexLocation
extends Object
implements StrictlyParsedTrainedModelLocation, LenientlyParsedTrainedModelLocation
-
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.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic IndexLocationfromXContentLenient(org.elasticsearch.xcontent.XContentParser parser) static IndexLocationfromXContentStrict(org.elasticsearch.xcontent.XContentParser parser) getName()inthashCode()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
INDEX
public static final org.elasticsearch.xcontent.ParseField INDEX
-
-
Constructor Details
-
IndexLocation
-
IndexLocation
- Throws:
IOException
-
-
Method Details
-
fromXContentStrict
public static IndexLocation fromXContentStrict(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
fromXContentLenient
public static IndexLocation fromXContentLenient(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
getIndexName
-
getResourceName
- Specified by:
getResourceNamein interfaceTrainedModelLocation
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
getName
- Specified by:
getNamein interfaceNamedXContentObject- Returns:
- The name of the XContentObject that is to be serialized
-
equals
-
hashCode
public int hashCode()
-