Class SetSection
java.lang.Object
org.elasticsearch.test.rest.yaml.section.SetSection
- All Implemented Interfaces:
ExecutableSection
public class SetSection extends java.lang.Object implements ExecutableSection
Represents a set section:
- set: {_scroll_id: scroll_id}
-
Field Summary
Fields inherited from interface org.elasticsearch.test.rest.yaml.section.ExecutableSection
DEFAULT_EXECUTABLE_CONTEXTS, XCONTENT_REGISTRY -
Constructor Summary
Constructors Constructor Description SetSection(org.elasticsearch.common.xcontent.XContentLocation location) -
Method Summary
Modifier and Type Method Description voidaddSet(java.lang.String responseField, java.lang.String stashedField)voidexecute(ClientYamlTestExecutionContext executionContext)Executes the section passing in the execution contextorg.elasticsearch.common.xcontent.XContentLocationgetLocation()Get the location in the test that this was defined.java.util.Map<java.lang.String,java.lang.String>getStash()static SetSectionparse(org.elasticsearch.common.xcontent.XContentParser parser)
-
Constructor Details
-
SetSection
public SetSection(org.elasticsearch.common.xcontent.XContentLocation location)
-
-
Method Details
-
parse
public static SetSection parse(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException- Throws:
java.io.IOException
-
addSet
public void addSet(java.lang.String responseField, java.lang.String stashedField) -
getStash
public java.util.Map<java.lang.String,java.lang.String> getStash() -
getLocation
public org.elasticsearch.common.xcontent.XContentLocation getLocation()Description copied from interface:ExecutableSectionGet the location in the test that this was defined.- Specified by:
getLocationin interfaceExecutableSection
-
execute
Description copied from interface:ExecutableSectionExecutes the section passing in the execution context- Specified by:
executein interfaceExecutableSection- Throws:
java.io.IOException
-