Module org.elasticsearch.server
Interface ChunkedToXContentObject
- All Superinterfaces:
ChunkedToXContent
- All Known Implementing Classes:
AbstractAllocationDecision
,AllocateUnassignedDecision
,BaseNodesXContentResponse
,BulkResponse
,ChunkedBroadcastResponse
,ClusterAllocationExplainResponse
,ClusterAllocationExplanation
,ClusterFeatures
,ClusterRerouteResponse
,DesiredBalanceResponse
,DesiredBalanceResponse.DesiredShards
,ExplainDataStreamLifecycleAction.Response
,FieldCapabilitiesResponse
,FieldUsageStatsResponse
,GetDataStreamLifecycleAction.Response
,GetIndexResponse
,GetMappingsResponse
,GetSettingsResponse
,GetSnapshotsResponse
,HealthIndicatorResult
,IndicesSegmentResponse
,IndicesShardStoresResponse
,IndicesStatsResponse
,MoveDecision
,MultiSearchResponse
,NodesStatsResponse
,PendingClusterTasksResponse
,RecoveryResponse
,SearchResponse
,ShardAllocationDecision
,ShutdownShardMigrationStatus
,SnapshotsStatusResponse
,SnapshotStatus
Chunked equivalent of
ToXContentObject
that serializes as a full object.-
Field Summary
Fields inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
EMPTY
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
static ToXContentObject
wrapAsToXContentObject
(ChunkedToXContentObject chunkedToXContent) Wraps the given instance in aToXContentObject
that will fully serialize the instance when serialized.Methods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
toXContentChunked, toXContentChunkedV7
-
Method Details
-
isFragment
default boolean isFragment()- Specified by:
isFragment
in interfaceChunkedToXContent
- Returns:
- true iff this instance serializes as a fragment. See
ToXContentObject
for additional details.
-
wrapAsToXContentObject
Wraps the given instance in aToXContentObject
that will fully serialize the instance when serialized.- Parameters:
chunkedToXContent
- instance to wrap- Returns:
- x-content instance
-