Package org.opensearch.index
Class MapperTestUtils
java.lang.Object
org.opensearch.index.MapperTestUtils
public class MapperTestUtils
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description MapperTestUtils() -
Method Summary
Modifier and Type Method Description static voidassertConflicts(java.lang.String mapping1, java.lang.String mapping2, org.opensearch.index.mapper.DocumentMapperParser parser, java.lang.String... conflicts)static org.opensearch.index.mapper.MapperServicenewMapperService(org.opensearch.common.xcontent.NamedXContentRegistry xContentRegistry, java.nio.file.Path tempDir, org.opensearch.common.settings.Settings indexSettings, java.lang.String indexName)static org.opensearch.index.mapper.MapperServicenewMapperService(org.opensearch.common.xcontent.NamedXContentRegistry xContentRegistry, java.nio.file.Path tempDir, org.opensearch.common.settings.Settings settings, org.opensearch.indices.IndicesModule indicesModule, java.lang.String indexName)
-
Constructor Details
-
MapperTestUtils
public MapperTestUtils()
-
-
Method Details
-
newMapperService
public static org.opensearch.index.mapper.MapperService newMapperService(org.opensearch.common.xcontent.NamedXContentRegistry xContentRegistry, java.nio.file.Path tempDir, org.opensearch.common.settings.Settings indexSettings, java.lang.String indexName) throws java.io.IOException- Throws:
java.io.IOException
-
newMapperService
public static org.opensearch.index.mapper.MapperService newMapperService(org.opensearch.common.xcontent.NamedXContentRegistry xContentRegistry, java.nio.file.Path tempDir, org.opensearch.common.settings.Settings settings, org.opensearch.indices.IndicesModule indicesModule, java.lang.String indexName) throws java.io.IOException- Throws:
java.io.IOException
-
assertConflicts
public static void assertConflicts(java.lang.String mapping1, java.lang.String mapping2, org.opensearch.index.mapper.DocumentMapperParser parser, java.lang.String... conflicts) throws java.io.IOException- Throws:
java.io.IOException
-