Class YamlXContent
java.lang.Object
org.opensearch.common.xcontent.yaml.YamlXContent
- All Implemented Interfaces:
XContentContraints,org.opensearch.core.xcontent.XContent
public class YamlXContent
extends Object
implements org.opensearch.core.xcontent.XContent, XContentContraints
A YAML based content implementation using Jackson.
-
Field Summary
FieldsFields inherited from interface org.opensearch.common.xcontent.XContentContraints
DEFAULT_CODEPOINT_LIMIT, DEFAULT_CODEPOINT_LIMIT_PROPERTY, DEFAULT_MAX_DEPTH, DEFAULT_MAX_DEPTH_PROPERTY, DEFAULT_MAX_NAME_LEN, DEFAULT_MAX_NAME_LEN_PROPERTY, DEFAULT_MAX_STRING_LEN, DEFAULT_MAX_STRING_LEN_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptionstatic org.opensearch.core.xcontent.XContentBuilderorg.opensearch.core.xcontent.XContentGeneratorcreateGenerator(OutputStream os, Set<String> includes, Set<String> excludes) org.opensearch.core.xcontent.XContentParsercreateParser(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.core.xcontent.DeprecationHandler deprecationHandler, byte[] data) org.opensearch.core.xcontent.XContentParsercreateParser(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.core.xcontent.DeprecationHandler deprecationHandler, byte[] data, int offset, int length) org.opensearch.core.xcontent.XContentParsercreateParser(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.core.xcontent.DeprecationHandler deprecationHandler, InputStream is) org.opensearch.core.xcontent.XContentParsercreateParser(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.core.xcontent.DeprecationHandler deprecationHandler, Reader reader) org.opensearch.core.xcontent.XContentParsercreateParser(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.core.xcontent.DeprecationHandler deprecationHandler, String content) org.opensearch.core.xcontent.MediaTypebyteMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.core.xcontent.XContent
createGenerator
-
Field Details
-
USE_FAST_DOUBLE_WRITER
public static final boolean USE_FAST_DOUBLE_WRITER -
yamlXContent
-
-
Method Details
-
contentBuilder
- Throws:
IOException
-
mediaType
public org.opensearch.core.xcontent.MediaType mediaType()- Specified by:
mediaTypein interfaceorg.opensearch.core.xcontent.XContent
-
streamSeparator
public byte streamSeparator()- Specified by:
streamSeparatorin interfaceorg.opensearch.core.xcontent.XContent
-
createGenerator
public org.opensearch.core.xcontent.XContentGenerator createGenerator(OutputStream os, Set<String> includes, Set<String> excludes) throws IOException - Specified by:
createGeneratorin interfaceorg.opensearch.core.xcontent.XContent- Throws:
IOException
-
createParser
public org.opensearch.core.xcontent.XContentParser createParser(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.core.xcontent.DeprecationHandler deprecationHandler, String content) throws IOException - Specified by:
createParserin interfaceorg.opensearch.core.xcontent.XContent- Throws:
IOException
-
createParser
public org.opensearch.core.xcontent.XContentParser createParser(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.core.xcontent.DeprecationHandler deprecationHandler, InputStream is) throws IOException - Specified by:
createParserin interfaceorg.opensearch.core.xcontent.XContent- Throws:
IOException
-
createParser
public org.opensearch.core.xcontent.XContentParser createParser(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.core.xcontent.DeprecationHandler deprecationHandler, byte[] data) throws IOException - Specified by:
createParserin interfaceorg.opensearch.core.xcontent.XContent- Throws:
IOException
-
createParser
public org.opensearch.core.xcontent.XContentParser createParser(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.core.xcontent.DeprecationHandler deprecationHandler, byte[] data, int offset, int length) throws IOException - Specified by:
createParserin interfaceorg.opensearch.core.xcontent.XContent- Throws:
IOException
-
createParser
public org.opensearch.core.xcontent.XContentParser createParser(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.core.xcontent.DeprecationHandler deprecationHandler, Reader reader) throws IOException - Specified by:
createParserin interfaceorg.opensearch.core.xcontent.XContent- Throws:
IOException
-