Class SmileXContent
java.lang.Object
org.opensearch.common.xcontent.smile.SmileXContent
- All Implemented Interfaces:
org.opensearch.core.xcontent.XContent
A Smile based content implementation using Jackson.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final SmileXContentstatic final boolean -
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
-
DEFAULT_MAX_STRING_LEN
public static final int DEFAULT_MAX_STRING_LEN -
USE_FAST_DOUBLE_WRITER
public static final boolean USE_FAST_DOUBLE_WRITER -
smileXContent
-
-
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
-