Module org.elasticsearch.server
Package org.elasticsearch.inference
Interface ToFilteredXContentObject
- All Superinterfaces:
ToXContent,ToXContentObject
- All Known Implementing Classes:
ModelConfigurations
Provides a contract writing the full contents of an object as well as a mechanism for
filtering some fields from the response.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptiontoFilteredXContent(XContentBuilder builder, ToXContent.Params params) Returns aXContentBuilderwhich has some fields removed from the response content.Methods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Method Details
-
toFilteredXContent
XContentBuilder toFilteredXContent(XContentBuilder builder, ToXContent.Params params) throws IOException Returns aXContentBuilderwhich has some fields removed from the response content.- Throws:
IOException
-