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(XContentLocation location)
-
Method Summary
Modifier and Type Method Description void
addSet(java.lang.String responseField, java.lang.String stashedField)
void
execute(ClientYamlTestExecutionContext executionContext)
Executes the section passing in the execution contextXContentLocation
getLocation()
Get the location in the test that this was defined.java.util.Map<java.lang.String,java.lang.String>
getStash()
static SetSection
parse(XContentParser parser)
-
-
-
Constructor Detail
-
SetSection
public SetSection(XContentLocation location)
-
-
Method Detail
-
parse
public static SetSection parse(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 XContentLocation getLocation()
Description copied from interface:ExecutableSection
Get the location in the test that this was defined.- Specified by:
getLocation
in interfaceExecutableSection
-
execute
public void execute(ClientYamlTestExecutionContext executionContext) throws java.io.IOException
Description copied from interface:ExecutableSection
Executes the section passing in the execution context- Specified by:
execute
in interfaceExecutableSection
- Throws:
java.io.IOException
-
-