Module org.elasticsearch.xcore
Class IndexLocation
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.trainedmodel.IndexLocation
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,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
ToXContent.DelegatingMapParams, ToXContent.MapParams, 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(XContentParser parser) static IndexLocationfromXContentStrict(XContentParser parser) getName()inthashCode()toXContent(XContentBuilder builder, 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
-
-
Constructor Details
-
IndexLocation
-
IndexLocation
- Throws:
IOException
-
-
Method Details
-
fromXContentStrict
- Throws:
IOException
-
fromXContentLenient
- Throws:
IOException
-
getIndexName
-
getResourceName
- Specified by:
getResourceNamein interfaceTrainedModelLocation
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- 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()
-