Package org.elasticsearch.script
Class ScriptContextInfo
java.lang.Object
org.elasticsearch.script.ScriptContextInfo
- All Implemented Interfaces:
Writeable
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentObject
public class ScriptContextInfo extends java.lang.Object implements org.elasticsearch.common.xcontent.ToXContentObject, Writeable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScriptContextInfo.ScriptMethodInfo
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields Modifier and Type Field Description ScriptContextInfo.ScriptMethodInfo
execute
java.util.Set<ScriptContextInfo.ScriptMethodInfo>
getters
java.lang.String
name
static org.elasticsearch.common.xcontent.ConstructingObjectParser<ScriptContextInfo,java.lang.Void>
PARSER
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
Constructors Constructor Description ScriptContextInfo(java.lang.String name, ScriptContextInfo.ScriptMethodInfo execute, java.util.Set<ScriptContextInfo.ScriptMethodInfo> getters)
ScriptContextInfo(StreamInput in)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object o)
static ScriptContextInfo
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
java.lang.String
getName()
int
hashCode()
java.util.List<ScriptContextInfo.ScriptMethodInfo>
methods()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
name
public final java.lang.String name -
execute
-
getters
-
PARSER
public static final org.elasticsearch.common.xcontent.ConstructingObjectParser<ScriptContextInfo,java.lang.Void> PARSER
-
-
Constructor Details
-
ScriptContextInfo
public ScriptContextInfo(java.lang.String name, ScriptContextInfo.ScriptMethodInfo execute, java.util.Set<ScriptContextInfo.ScriptMethodInfo> getters) -
ScriptContextInfo
- Throws:
java.io.IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
getName
public java.lang.String getName() -
methods
-
fromXContent
public static ScriptContextInfo fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
java.io.IOException
-