Class SetSection
java.lang.Object
org.elasticsearch.test.rest.yaml.section.SetSection
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
execute(ClientYamlTestExecutionContext executionContext)
Executes the section passing in the execution contextorg.elasticsearch.common.xcontent.XContentLocation
Get the location in the test that this was defined.getStash()
static SetSection
parse(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 IOException- Throws:
IOException
-
addSet
-
getStash
-
getLocation
public org.elasticsearch.common.xcontent.XContentLocation getLocation()Description copied from interface:ExecutableSection
Get the location in the test that this was defined.- Specified by:
getLocation
in interfaceExecutableSection
-
execute
Description copied from interface:ExecutableSection
Executes the section passing in the execution context- Specified by:
execute
in interfaceExecutableSection
- Throws:
IOException
-