Package org.opensearch.core.xcontent
Interface ToXContentFragment
- All Superinterfaces:
ToXContent
- All Known Subinterfaces:
BytesReference
- All Known Implementing Classes:
AbstractBytesReference,AllCircuitBreakerStats,BytesArray,ByteSizeValue,CircuitBreakingException,CompositeBytesReference,IndexShardSnapshotException,IndexShardSnapshotFailedException,LegacyESVersion,NotSerializableExceptionWrapper,OpenSearchException,OpenSearchParseException,PagedBytesReference,ParsingException,SemverRange,ShardId,TaskCancelledException,TaskResourceStats,TaskResourceUsage,TaskThreadUsage,Text,TransportAddress,Version
An interface allowing to transfer an object to "XContent" using an
XContentBuilder. The difference between ToXContentFragment
and ToXContentObject is that the former outputs a fragment that
requires to start and end a new anonymous object externally, while the latter
guarantees that what gets printed out is fully valid syntax without any
external addition.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
Fields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Method Summary
Methods inherited from interface org.opensearch.core.xcontent.ToXContent
toXContent
-
Method Details
-
isFragment
default boolean isFragment()- Specified by:
isFragmentin interfaceToXContent
-