java.lang.Object
org.elasticsearch.xpack.core.ml.annotations.Annotation
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic enumNested 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
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldResult type is needed due to the fact thatAnnotationcan be returned from C++ as an ML result.static final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AnnotationfromXContent(org.elasticsearch.xcontent.XContentParser parser, Void context) ParsesAnnotationusing a strict parser.getEvent()getJobId()getType()inthashCode()toString()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, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
RESULTS_FIELD
public static final org.elasticsearch.xcontent.ParseField RESULTS_FIELDResult type is needed due to the fact thatAnnotationcan be returned from C++ as an ML result. -
ANNOTATION
public static final org.elasticsearch.xcontent.ParseField ANNOTATION -
CREATE_TIME
public static final org.elasticsearch.xcontent.ParseField CREATE_TIME -
CREATE_USERNAME
public static final org.elasticsearch.xcontent.ParseField CREATE_USERNAME -
TIMESTAMP
public static final org.elasticsearch.xcontent.ParseField TIMESTAMP -
END_TIMESTAMP
public static final org.elasticsearch.xcontent.ParseField END_TIMESTAMP -
MODIFIED_TIME
public static final org.elasticsearch.xcontent.ParseField MODIFIED_TIME -
MODIFIED_USERNAME
public static final org.elasticsearch.xcontent.ParseField MODIFIED_USERNAME -
TYPE
public static final org.elasticsearch.xcontent.ParseField TYPE -
EVENT
public static final org.elasticsearch.xcontent.ParseField EVENT -
DETECTOR_INDEX
public static final org.elasticsearch.xcontent.ParseField DETECTOR_INDEX -
PARTITION_FIELD_NAME
public static final org.elasticsearch.xcontent.ParseField PARTITION_FIELD_NAME -
PARTITION_FIELD_VALUE
public static final org.elasticsearch.xcontent.ParseField PARTITION_FIELD_VALUE -
OVER_FIELD_NAME
public static final org.elasticsearch.xcontent.ParseField OVER_FIELD_NAME -
OVER_FIELD_VALUE
public static final org.elasticsearch.xcontent.ParseField OVER_FIELD_VALUE -
BY_FIELD_NAME
public static final org.elasticsearch.xcontent.ParseField BY_FIELD_NAME -
BY_FIELD_VALUE
public static final org.elasticsearch.xcontent.ParseField BY_FIELD_VALUE
-
-
Constructor Details
-
Annotation
- Throws:
IOException
-
-
Method Details
-
fromXContent
public static Annotation fromXContent(org.elasticsearch.xcontent.XContentParser parser, Void context) 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 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
-
hashCode
public int hashCode() -
equals
-
toString
-