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 booleanstatic ToXContentObjectwrapAsToXContentObject(ChunkedToXContentObject chunkedToXContent) Wraps the given instance in aToXContentObjectthat will fully serialize the instance when serialized.Methods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
toXContentChunked, toXContentChunked, toXContentChunkedV8
-
Method Details
-
isFragment
default boolean isFragment()- Specified by:
isFragmentin interfaceChunkedToXContent- Returns:
- true iff this instance serializes as a fragment. See
ToXContentObjectfor additional details.
-
wrapAsToXContentObject
Wraps the given instance in aToXContentObjectthat will fully serialize the instance when serialized.- Parameters:
chunkedToXContent- instance to wrap- Returns:
- x-content instance
-