java.lang.Object
org.elasticsearch.xpack.core.ml.annotations.Annotation
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic enumNested 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
FieldsModifier and TypeFieldDescriptionstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldResult type is needed due to the fact thatAnnotationcan be returned from C++ as an ML result.static final ParseFieldstatic final ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AnnotationfromXContent(XContentParser parser, Void context) ParsesAnnotationusing a strict parser.getEvent()getJobId()getType()inthashCode()toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
RESULTS_FIELD
Result type is needed due to the fact thatAnnotationcan be returned from C++ as an ML result. -
ANNOTATION
-
CREATE_TIME
-
CREATE_USERNAME
-
TIMESTAMP
-
END_TIMESTAMP
-
MODIFIED_TIME
-
MODIFIED_USERNAME
-
TYPE
-
EVENT
-
DETECTOR_INDEX
-
PARTITION_FIELD_NAME
-
PARTITION_FIELD_VALUE
-
OVER_FIELD_NAME
-
OVER_FIELD_VALUE
-
BY_FIELD_NAME
-
BY_FIELD_VALUE
-
-
Constructor Details
-
Annotation
- Throws:
IOException
-
-
Method Details
-
fromXContent
ParsesAnnotationusing a strict parser. -
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getAnnotation
-
getCreateTime
-
getCreateUsername
-
getTimestamp
-
getEndTimestamp
-
getJobId
-
getModifiedTime
-
getModifiedUsername
-
getType
-
getEvent
-
getDetectorIndex
-
getPartitionFieldName
-
getPartitionFieldValue
-
getOverFieldName
-
getOverFieldValue
-
getByFieldName
-
getByFieldValue
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
toString
-