Uses of Class
org.elasticsearch.common.xcontent.XContentType
-
-
Uses of XContentType in org.elasticsearch.action.admin.cluster.repositories.put
Methods in org.elasticsearch.action.admin.cluster.repositories.put with parameters of type XContentType Modifier and Type Method Description PutRepositoryRequestBuilderPutRepositoryRequestBuilder. setSettings(String source, XContentType xContentType)Sets the repository settings in Json or Yaml formatPutRepositoryRequestPutRepositoryRequest. settings(String source, XContentType xContentType)Sets the repository settings. -
Uses of XContentType in org.elasticsearch.action.admin.cluster.settings
Methods in org.elasticsearch.action.admin.cluster.settings with parameters of type XContentType Modifier and Type Method Description ClusterUpdateSettingsRequestClusterUpdateSettingsRequest. persistentSettings(String source, XContentType xContentType)Sets the source containing the persistent settings to be updated.ClusterUpdateSettingsRequestBuilderClusterUpdateSettingsRequestBuilder. setPersistentSettings(String settings, XContentType xContentType)Sets the source containing the persistent settings to be updated.ClusterUpdateSettingsRequestBuilderClusterUpdateSettingsRequestBuilder. setTransientSettings(String settings, XContentType xContentType)Sets the source containing the transient settings to be updated.ClusterUpdateSettingsRequestClusterUpdateSettingsRequest. transientSettings(String source, XContentType xContentType)Sets the source containing the transient settings to be updated. -
Uses of XContentType in org.elasticsearch.action.admin.cluster.snapshots.create
Methods in org.elasticsearch.action.admin.cluster.snapshots.create with parameters of type XContentType Modifier and Type Method Description CreateSnapshotRequestBuilderCreateSnapshotRequestBuilder. setSettings(String source, XContentType xContentType)Sets repository-specific snapshot settings in YAML or JSON formatCreateSnapshotRequestCreateSnapshotRequest. settings(String source, XContentType xContentType)Sets repository-specific snapshot settings in JSON or YAML format -
Uses of XContentType in org.elasticsearch.action.admin.cluster.snapshots.restore
Methods in org.elasticsearch.action.admin.cluster.snapshots.restore with parameters of type XContentType Modifier and Type Method Description RestoreSnapshotRequestRestoreSnapshotRequest. indexSettings(String source, XContentType xContentType)Sets settings that should be added/changed in all restored indicesRestoreSnapshotRequestBuilderRestoreSnapshotRequestBuilder. setIndexSettings(String source, XContentType xContentType)Sets index settings that should be added or replaced during restoreRestoreSnapshotRequestBuilderRestoreSnapshotRequestBuilder. setSettings(String source, XContentType xContentType)Sets repository-specific restore settings in JSON or YAML formatRestoreSnapshotRequestRestoreSnapshotRequest. settings(String source, XContentType xContentType)Sets repository-specific restore settings in JSON or YAML format -
Uses of XContentType in org.elasticsearch.action.admin.cluster.storedscripts
Methods in org.elasticsearch.action.admin.cluster.storedscripts that return XContentType Modifier and Type Method Description XContentTypePutStoredScriptRequest. xContentType()Methods in org.elasticsearch.action.admin.cluster.storedscripts with parameters of type XContentType Modifier and Type Method Description PutStoredScriptRequestPutStoredScriptRequest. content(BytesReference content, XContentType xContentType)Set the script source and the content type of the bytes.PutStoredScriptRequestBuilderPutStoredScriptRequestBuilder. setContent(BytesReference source, XContentType xContentType)Set the source of the script along with the content type of the sourceConstructors in org.elasticsearch.action.admin.cluster.storedscripts with parameters of type XContentType Constructor Description PutStoredScriptRequest(String id, String context, BytesReference content, XContentType xContentType, StoredScriptSource source) -
Uses of XContentType in org.elasticsearch.action.admin.indices.create
Methods in org.elasticsearch.action.admin.indices.create with parameters of type XContentType Modifier and Type Method Description CreateIndexRequestBuilderCreateIndexRequestBuilder. addMapping(String type, String source, XContentType xContentType)Adds mapping that will be added when the index gets created.CreateIndexRequestCreateIndexRequest. mapping(String type, String source, XContentType xContentType)Adds mapping that will be added when the index gets created.CreateIndexRequestBuilderCreateIndexRequestBuilder. setSettings(String source, XContentType xContentType)The settings to create the index with (either json or yaml format)CreateIndexRequestBuilderCreateIndexRequestBuilder. setSource(byte[] source, int offset, int length, XContentType xContentType)Sets the settings and mappings as a single source.CreateIndexRequestBuilderCreateIndexRequestBuilder. setSource(byte[] source, XContentType xContentType)Sets the settings and mappings as a single source.CreateIndexRequestBuilderCreateIndexRequestBuilder. setSource(String source, XContentType xContentType)Sets the settings and mappings as a single source.CreateIndexRequestBuilderCreateIndexRequestBuilder. setSource(BytesReference source, XContentType xContentType)Sets the settings and mappings as a single source.CreateIndexRequestCreateIndexRequest. settings(String source, XContentType xContentType)The settings to create the index with (either json or yaml format)CreateIndexRequestCreateIndexRequest. source(byte[] source, int offset, int length, XContentType xContentType)Sets the settings and mappings as a single source.CreateIndexRequestCreateIndexRequest. source(byte[] source, XContentType xContentType)Sets the settings and mappings as a single source.CreateIndexRequestCreateIndexRequest. source(String source, XContentType xContentType)Sets the settings and mappings as a single source.CreateIndexRequestCreateIndexRequest. source(BytesReference source, XContentType xContentType)Sets the settings and mappings as a single source. -
Uses of XContentType in org.elasticsearch.action.admin.indices.mapping.put
Methods in org.elasticsearch.action.admin.indices.mapping.put with parameters of type XContentType Modifier and Type Method Description PutMappingRequestBuilderPutMappingRequestBuilder. setSource(String mappingSource, XContentType xContentType)The mapping source definition.PutMappingRequestPutMappingRequest. source(String mappingSource, XContentType xContentType)The mapping source definition.PutMappingRequestPutMappingRequest. source(BytesReference mappingSource, XContentType xContentType)The mapping source definition. -
Uses of XContentType in org.elasticsearch.action.admin.indices.rollover
Methods in org.elasticsearch.action.admin.indices.rollover with parameters of type XContentType Modifier and Type Method Description RolloverRequestBuilderRolloverRequestBuilder. mapping(String type, String source, XContentType xContentType) -
Uses of XContentType in org.elasticsearch.action.admin.indices.settings.put
Methods in org.elasticsearch.action.admin.indices.settings.put with parameters of type XContentType Modifier and Type Method Description UpdateSettingsRequestBuilderUpdateSettingsRequestBuilder. setSettings(String source, XContentType xContentType)Sets the settings to be updated (either json or yaml format)UpdateSettingsRequestUpdateSettingsRequest. settings(String source, XContentType xContentType)Sets the settings to be updated (either json or yaml format) -
Uses of XContentType in org.elasticsearch.action.admin.indices.template.put
Methods in org.elasticsearch.action.admin.indices.template.put with parameters of type XContentType Modifier and Type Method Description PutIndexTemplateRequestBuilderPutIndexTemplateRequestBuilder. addMapping(String type, String source, XContentType xContentType)Adds mapping that will be added when the index template gets created.PutIndexTemplateRequestPutIndexTemplateRequest. mapping(String type, String source, XContentType xContentType)Adds mapping that will be added when the index gets created.PutIndexTemplateRequestPutIndexTemplateRequest. mapping(String type, BytesReference source, XContentType xContentType)Adds mapping that will be added when the index gets created.PutIndexTemplateRequestBuilderPutIndexTemplateRequestBuilder. setSettings(String source, XContentType xContentType)The settings to crete the index template with (either json or yaml format)PutIndexTemplateRequestBuilderPutIndexTemplateRequestBuilder. setSource(byte[] templateSource, int offset, int length, XContentType xContentType)The template source definition.PutIndexTemplateRequestBuilderPutIndexTemplateRequestBuilder. setSource(byte[] templateSource, XContentType xContentType)The template source definition.PutIndexTemplateRequestBuilderPutIndexTemplateRequestBuilder. setSource(BytesReference templateSource, XContentType xContentType)The template source definition.PutIndexTemplateRequestPutIndexTemplateRequest. settings(String source, XContentType xContentType)The settings to create the index template with (either json/yaml format).PutIndexTemplateRequestPutIndexTemplateRequest. source(byte[] source, int offset, int length, XContentType xContentType)The template source definition.PutIndexTemplateRequestPutIndexTemplateRequest. source(byte[] source, XContentType xContentType)The template source definition.PutIndexTemplateRequestPutIndexTemplateRequest. source(String templateSource, XContentType xContentType)The template source definition.PutIndexTemplateRequestPutIndexTemplateRequest. source(BytesReference source, XContentType xContentType)The template source definition. -
Uses of XContentType in org.elasticsearch.action.bulk
Methods in org.elasticsearch.action.bulk with parameters of type XContentType Modifier and Type Method Description BulkRequestBulkRequest. add(byte[] data, int from, int length, String defaultIndex, String defaultType, XContentType xContentType)Deprecated.BulkRequestBulkRequest. add(byte[] data, int from, int length, String defaultIndex, XContentType xContentType)Adds a framed data in binary formatBulkRequestBulkRequest. add(byte[] data, int from, int length, XContentType xContentType)Adds a framed data in binary formatBulkRequestBulkRequest. add(BytesReference data, String defaultIndex, boolean allowExplicitIndex, XContentType xContentType)Adds a framed data in binary formatBulkRequestBulkRequest. add(BytesReference data, String defaultIndex, String defaultType, boolean allowExplicitIndex, XContentType xContentType)Deprecated.BulkRequestBulkRequest. add(BytesReference data, String defaultIndex, String defaultType, String defaultRouting, FetchSourceContext defaultFetchSourceContext, String defaultPipeline, boolean allowExplicitIndex, XContentType xContentType)BulkRequestBulkRequest. add(BytesReference data, String defaultIndex, String defaultType, XContentType xContentType)Deprecated.BulkRequestBulkRequest. add(BytesReference data, String defaultIndex, String defaultRouting, FetchSourceContext defaultFetchSourceContext, String defaultPipeline, boolean allowExplicitIndex, XContentType xContentType)BulkRequestBulkRequest. add(BytesReference data, String defaultIndex, XContentType xContentType)Adds a framed data in binary formatBulkRequestBuilderBulkRequestBuilder. add(byte[] data, int from, int length, String defaultIndex, String defaultType, XContentType xContentType)Deprecated.BulkRequestBuilderBulkRequestBuilder. add(byte[] data, int from, int length, String defaultIndex, XContentType xContentType)Adds a framed data in binary formatBulkRequestBuilderBulkRequestBuilder. add(byte[] data, int from, int length, XContentType xContentType)Adds a framed data in binary formatvoidBulkRequestParser. parse(BytesReference data, String defaultIndex, String defaultType, String defaultRouting, FetchSourceContext defaultFetchSourceContext, String defaultPipeline, boolean allowExplicitIndex, XContentType xContentType, Consumer<IndexRequest> indexRequestConsumer, Consumer<UpdateRequest> updateRequestConsumer, Consumer<DeleteRequest> deleteRequestConsumer)voidBulkRequestParser. parse(BytesReference data, String defaultIndex, String defaultRouting, FetchSourceContext defaultFetchSourceContext, String defaultPipeline, boolean allowExplicitIndex, XContentType xContentType, Consumer<IndexRequest> indexRequestConsumer, Consumer<UpdateRequest> updateRequestConsumer, Consumer<DeleteRequest> deleteRequestConsumer)Parse the provideddataassuming the provided default values. -
Uses of XContentType in org.elasticsearch.action.index
Methods in org.elasticsearch.action.index that return XContentType Modifier and Type Method Description XContentTypeIndexRequest. getContentType()The content type.Methods in org.elasticsearch.action.index with parameters of type XContentType Modifier and Type Method Description IndexRequestBuilderIndexRequestBuilder. setSource(byte[] source, int offset, int length, XContentType xContentType)Sets the document to index in bytes form (assumed to be safe to be used from different threads).IndexRequestBuilderIndexRequestBuilder. setSource(byte[] source, XContentType xContentType)Sets the document to index in bytes form.IndexRequestBuilderIndexRequestBuilder. setSource(String source, XContentType xContentType)Sets the document source to index.IndexRequestBuilderIndexRequestBuilder. setSource(Map<String,?> source, XContentType contentType)Index the Map as the provided content type.IndexRequestBuilderIndexRequestBuilder. setSource(BytesReference source, XContentType xContentType)Sets the source.IndexRequestBuilderIndexRequestBuilder. setSource(XContentType xContentType, Object... source)Constructs a simple document with a field name and value pairs.IndexRequestIndexRequest. source(byte[] source, int offset, int length, XContentType xContentType)Sets the document to index in bytes form (assumed to be safe to be used from different threads).IndexRequestIndexRequest. source(byte[] source, XContentType xContentType)Sets the document to index in bytes form.IndexRequestIndexRequest. source(String source, XContentType xContentType)Sets the document source to index.IndexRequestIndexRequest. source(Map<String,?> source, XContentType contentType)Index the Map as the provided content type.IndexRequestIndexRequest. source(BytesReference source, XContentType xContentType)Sets the document to index in bytes form.IndexRequestIndexRequest. source(XContentType xContentType, Object... source)Sets the content source to index. -
Uses of XContentType in org.elasticsearch.action.ingest
Methods in org.elasticsearch.action.ingest that return XContentType Modifier and Type Method Description XContentTypePutPipelineRequest. getXContentType()XContentTypeSimulatePipelineRequest. getXContentType()Constructors in org.elasticsearch.action.ingest with parameters of type XContentType Constructor Description PutPipelineRequest(String id, BytesReference source, XContentType xContentType)Create a new pipeline request with the id and source along with the content type of the sourcePutPipelineRequestBuilder(ElasticsearchClient client, PutPipelineAction action, String id, BytesReference source, XContentType xContentType)SimulatePipelineRequest(BytesReference source, XContentType xContentType)Creates a new request with the given source and its content typeSimulatePipelineRequestBuilder(ElasticsearchClient client, SimulatePipelineAction action, BytesReference source, XContentType xContentType)Create a new builder forSimulatePipelineRequests -
Uses of XContentType in org.elasticsearch.action.termvectors
Methods in org.elasticsearch.action.termvectors that return XContentType Modifier and Type Method Description XContentTypeTermVectorsRequest. xContentType()Methods in org.elasticsearch.action.termvectors with parameters of type XContentType Modifier and Type Method Description TermVectorsRequestTermVectorsRequest. doc(BytesReference doc, boolean generateRandomId, XContentType xContentType)Sets an artificial document from which term vectors are requested for. -
Uses of XContentType in org.elasticsearch.action.update
Methods in org.elasticsearch.action.update that return XContentType Modifier and Type Method Description XContentTypeUpdateHelper.Result. updateSourceContentType()Methods in org.elasticsearch.action.update with parameters of type XContentType Modifier and Type Method Description UpdateRequestUpdateRequest. doc(byte[] source, int offset, int length, XContentType xContentType)Sets the doc to use for updates when a script is not specified.UpdateRequestUpdateRequest. doc(byte[] source, XContentType xContentType)Sets the doc to use for updates when a script is not specified.UpdateRequestUpdateRequest. doc(String source, XContentType xContentType)Sets the doc to use for updates when a script is not specified.UpdateRequestUpdateRequest. doc(Map<String,Object> source, XContentType contentType)Sets the doc to use for updates when a script is not specified.UpdateRequestUpdateRequest. doc(XContentType xContentType, Object... source)Sets the doc to use for updates when a script is not specified, the doc provided is a field and value pairs.static GetResultUpdateHelper. extractGetResult(UpdateRequest request, String concreteIndex, long seqNo, long primaryTerm, long version, Map<String,Object> source, XContentType sourceContentType, BytesReference sourceAsBytes)AppliesUpdateRequest.fetchSource()to the _source of the updated document to be returned in a update response.UpdateRequestBuilderUpdateRequestBuilder. setDoc(byte[] source, int offset, int length, XContentType xContentType)Sets the doc to use for updates when a script is not specified.UpdateRequestBuilderUpdateRequestBuilder. setDoc(byte[] source, XContentType xContentType)Sets the doc to use for updates when a script is not specified.UpdateRequestBuilderUpdateRequestBuilder. setDoc(String source, XContentType xContentType)Sets the doc to use for updates when a script is not specified.UpdateRequestBuilderUpdateRequestBuilder. setDoc(Map<String,Object> source, XContentType contentType)Sets the doc to use for updates when a script is not specified.UpdateRequestBuilderUpdateRequestBuilder. setDoc(XContentType xContentType, Object... source)Sets the doc to use for updates when a script is not specified, the doc provided is a field and value pairs.UpdateRequestBuilderUpdateRequestBuilder. setUpsert(byte[] source, int offset, int length, XContentType xContentType)Sets the doc source of the update request to be used when the document does not exists.UpdateRequestBuilderUpdateRequestBuilder. setUpsert(byte[] source, XContentType xContentType)Sets the doc source of the update request to be used when the document does not exists.UpdateRequestBuilderUpdateRequestBuilder. setUpsert(String source, XContentType xContentType)Sets the doc source of the update request to be used when the document does not exists.UpdateRequestBuilderUpdateRequestBuilder. setUpsert(Map<String,Object> source, XContentType contentType)Sets the doc source of the update request to be used when the document does not exists.UpdateRequestBuilderUpdateRequestBuilder. setUpsert(XContentType xContentType, Object... source)Sets the doc source of the update request to be used when the document does not exists.UpdateRequestUpdateRequest. upsert(byte[] source, int offset, int length, XContentType xContentType)Sets the doc source of the update request to be used when the document does not exists.UpdateRequestUpdateRequest. upsert(byte[] source, XContentType xContentType)Sets the doc source of the update request to be used when the document does not exists.UpdateRequestUpdateRequest. upsert(String source, XContentType xContentType)Sets the doc source of the update request to be used when the document does not exists.UpdateRequestUpdateRequest. upsert(Map<String,Object> source, XContentType contentType)Sets the doc source of the update request to be used when the document does not exists.UpdateRequestUpdateRequest. upsert(XContentType xContentType, Object... source)Sets the doc source of the update request to be used when the document does not exists.Constructors in org.elasticsearch.action.update with parameters of type XContentType Constructor Description Result(Writeable action, DocWriteResponse.Result result, Map<String,Object> updatedSourceAsMap, XContentType updateSourceContentType) -
Uses of XContentType in org.elasticsearch.client
Fields in org.elasticsearch.client declared as XContentType Modifier and Type Field Description static XContentTypeRequests. CONTENT_TYPEThe content type used to generate request builders (query / search).static XContentTypeRequests. INDEX_CONTENT_TYPEThe default content type to use to generate source documents when indexing.Methods in org.elasticsearch.client with parameters of type XContentType Modifier and Type Method Description PutPipelineRequestBuilderClusterAdminClient. preparePutPipeline(String id, BytesReference source, XContentType xContentType)Stores an ingest pipelineSimulatePipelineRequestBuilderClusterAdminClient. prepareSimulatePipeline(BytesReference source, XContentType xContentType)Simulates an ingest pipeline -
Uses of XContentType in org.elasticsearch.client.indices
Methods in org.elasticsearch.client.indices that return XContentType Modifier and Type Method Description XContentTypeCreateIndexRequest. mappingsXContentType()XContentTypePutMappingRequest. xContentType()TheXContentTypeof the mapping source.Methods in org.elasticsearch.client.indices with parameters of type XContentType Modifier and Type Method Description CreateIndexRequestCreateIndexRequest. aliases(String source, XContentType contentType)Sets the aliases that will be associated with the index when it gets createdCreateIndexRequestCreateIndexRequest. aliases(BytesReference source, XContentType contentType)Sets the aliases that will be associated with the index when it gets createdCreateIndexRequestCreateIndexRequest. mapping(String source, XContentType xContentType)Adds mapping that will be added when the index gets created.CreateIndexRequestCreateIndexRequest. mapping(BytesReference source, XContentType xContentType)Adds mapping that will be added when the index gets created.PutIndexTemplateRequestPutIndexTemplateRequest. mapping(String source, XContentType xContentType)Adds mapping that will be added when the index gets created.PutIndexTemplateRequestPutIndexTemplateRequest. mapping(BytesReference source, XContentType xContentType)Adds mapping that will be added when the index gets created.CreateIndexRequestCreateIndexRequest. settings(String source, XContentType xContentType)The settings to create the index with (either json or yaml format)PutIndexTemplateRequestPutIndexTemplateRequest. settings(String source, XContentType xContentType)The settings to create the index template with (either json/yaml format).CreateIndexRequestCreateIndexRequest. source(String source, XContentType xContentType)Sets the settings and mappings as a single source.CreateIndexRequestCreateIndexRequest. source(BytesReference source, XContentType xContentType)Sets the settings and mappings as a single source.PutIndexTemplateRequestPutIndexTemplateRequest. source(byte[] source, int offset, int length, XContentType xContentType)The template source definition.PutIndexTemplateRequestPutIndexTemplateRequest. source(byte[] source, XContentType xContentType)The template source definition.PutIndexTemplateRequestPutIndexTemplateRequest. source(String templateSource, XContentType xContentType)The template source definition.PutIndexTemplateRequestPutIndexTemplateRequest. source(BytesReference source, XContentType xContentType)The template source definition.PutMappingRequestPutMappingRequest. source(String mappingSource, XContentType xContentType)The mapping source definition.PutMappingRequestPutMappingRequest. source(BytesReference source, XContentType xContentType)The mapping source definition. -
Uses of XContentType in org.elasticsearch.client.ml
Methods in org.elasticsearch.client.ml that return XContentType Modifier and Type Method Description XContentTypePostDataRequest. getXContentType()Constructors in org.elasticsearch.client.ml with parameters of type XContentType Constructor Description PostDataRequest(String jobId, XContentType xContentType, byte[] content)Create a new PostDataRequest object referencing the passedbyte[]contentPostDataRequest(String jobId, XContentType xContentType, BytesReference content)Create a new PostDataRequest object -
Uses of XContentType in org.elasticsearch.client.watcher
Methods in org.elasticsearch.client.watcher that return XContentType Modifier and Type Method Description XContentTypeGetWatchResponse. getContentType()Returns theXContentTypeof the sourceXContentTypePutWatchRequest. xContentType()Get the content type for the sourceConstructors in org.elasticsearch.client.watcher with parameters of type XContentType Constructor Description GetWatchResponse(String id, long version, long seqNo, long primaryTerm, WatchStatus status, BytesReference source, XContentType xContentType)PutWatchRequest(String id, BytesReference source, XContentType xContentType) -
Uses of XContentType in org.elasticsearch.common.compress
Constructors in org.elasticsearch.common.compress with parameters of type XContentType Constructor Description CompressedXContent(ToXContent xcontent, XContentType type, ToXContent.Params params)Create aCompressedXContentout of aToXContentinstance. -
Uses of XContentType in org.elasticsearch.common.settings
Methods in org.elasticsearch.common.settings with parameters of type XContentType Modifier and Type Method Description Settings.BuilderSettings.Builder. loadFromSource(String source, XContentType xContentType)Loads settings from the actual string content that represents them usingSettings.fromXContent(XContentParser) -
Uses of XContentType in org.elasticsearch.common.xcontent
Methods in org.elasticsearch.common.xcontent that return XContentType Modifier and Type Method Description XContentTypeXContentBuilder. contentType()XContentTypeXContentGenerator. contentType()XContentTypeXContentParser. contentType()XContentTypeXContentSubParser. contentType()static XContentTypeXContentType. fromMediaType(String mediaType)Attempts to match the given media type with the knownXContentTypevalues.static XContentTypeXContentType. fromMediaTypeOrFormat(String mediaType)Accepts either a format string, which is equivalent toshortName()or a media type that optionally has parameters and attempts to match the value to anXContentType.XContentTypeXContent. type()The type this content handles and produces.static XContentTypeXContentType. valueOf(String name)Returns the enum constant of this type with the specified name.static XContentType[]XContentType. values()Returns an array containing the constants of this enum type, in the order they are declared.static XContentTypeXContentFactory. xContentType(byte[] bytes)Deprecated.the content type should not be guessed except for few cases where we effectively don't know the content type.static XContentTypeXContentFactory. xContentType(byte[] bytes, int offset, int length)Deprecated.the content type should not be guessed except for few cases where we effectively don't know the content type.static XContentTypeXContentFactory. xContentType(InputStream si)Deprecated.the content type should not be guessed except for few cases where we effectively don't know the content type.static XContentTypeXContentFactory. xContentType(CharSequence content)Deprecated.the content type should not be guessed except for few cases where we effectively don't know the content type.static XContentTypeXContentHelper. xContentType(BytesReference bytes)Deprecated.the content type should not be guessed except for few cases where we effectively don't know the content type.Methods in org.elasticsearch.common.xcontent that return types with arguments of type XContentType Modifier and Type Method Description static Tuple<XContentType,Map<String,Object>>XContentHelper. convertToMap(BytesReference bytes, boolean ordered)Deprecated.this method relies on auto-detection of content type.static Tuple<XContentType,Map<String,Object>>XContentHelper. convertToMap(BytesReference bytes, boolean ordered, XContentType xContentType)Converts the given bytes into a map that is optionally ordered.Methods in org.elasticsearch.common.xcontent with parameters of type XContentType Modifier and Type Method Description static XContentBuilderXContentFactory. contentBuilder(XContentType type)Returns a binary content builder for the provided content type.static XContentBuilderXContentFactory. contentBuilder(XContentType type, OutputStream outputStream)Constructs a xcontent builder that will output the result into the provided output stream.static StringXContentHelper. convertToJson(BytesReference bytes, boolean reformatJson, boolean prettyPrint, XContentType xContentType)static StringXContentHelper. convertToJson(BytesReference bytes, boolean reformatJson, XContentType xContentType)static Tuple<XContentType,Map<String,Object>>XContentHelper. convertToMap(BytesReference bytes, boolean ordered, XContentType xContentType)Converts the given bytes into a map that is optionally ordered.static XContentParserXContentHelper. createParser(NamedXContentRegistry xContentRegistry, DeprecationHandler deprecationHandler, BytesReference bytes, XContentType xContentType)Creates a parser for the bytes using the supplied content-typeXContentBuilderXContentBuilder. rawField(String name, InputStream value, XContentType contentType)Writes a raw field with the value taken from the bytes in the streamXContentBuilderXContentBuilder. rawValue(InputStream stream, XContentType contentType)Writes a value with the source coming directly from the bytes in the streamstatic BytesReferenceXContentHelper. toXContent(ToXContent toXContent, XContentType xContentType, boolean humanReadable)Returns the bytes that represent the XContent output of the providedToXContentobject, using the providedXContentType.static BytesReferenceXContentHelper. toXContent(ToXContent toXContent, XContentType xContentType, ToXContent.Params params, boolean humanReadable)Returns the bytes that represent the XContent output of the providedToXContentobject, using the providedXContentType.voidXContentGenerator. writeRawField(String name, InputStream value, XContentType xContentType)Writes a raw field with the value taken from the bytes in the streamstatic voidXContentHelper. writeRawField(String field, BytesReference source, XContentType xContentType, XContentBuilder builder, ToXContent.Params params)Writes a "raw" (bytes) field, handling cases where the bytes are compressed, and tries to optimize writing usingXContentBuilder.rawField(String, InputStream, XContentType).voidXContentGenerator. writeRawValue(InputStream value, XContentType xContentType)Writes a raw value taken from the bytes in the streamstatic XContentXContentFactory. xContent(XContentType type)Returns theXContentfor the provided content type. -
Uses of XContentType in org.elasticsearch.common.xcontent.json
Methods in org.elasticsearch.common.xcontent.json that return XContentType Modifier and Type Method Description XContentTypeJsonXContentGenerator. contentType()XContentTypeJsonXContentParser. contentType()XContentTypeJsonXContent. type()Methods in org.elasticsearch.common.xcontent.json with parameters of type XContentType Modifier and Type Method Description voidJsonXContentGenerator. writeRawField(String name, InputStream content, XContentType contentType)voidJsonXContentGenerator. writeRawValue(InputStream stream, XContentType xContentType) -
Uses of XContentType in org.elasticsearch.common.xcontent.support
Methods in org.elasticsearch.common.xcontent.support that return XContentType Modifier and Type Method Description XContentTypeMapXContentParser. contentType()Constructors in org.elasticsearch.common.xcontent.support with parameters of type XContentType Constructor Description MapXContentParser(NamedXContentRegistry xContentRegistry, DeprecationHandler deprecationHandler, Map<String,Object> map, XContentType xContentType) -
Uses of XContentType in org.elasticsearch.gateway
Fields in org.elasticsearch.gateway declared as XContentType Modifier and Type Field Description static XContentTypeMetaDataStateFormat. FORMATMethods in org.elasticsearch.gateway with parameters of type XContentType Modifier and Type Method Description protected XContentBuilderMetaDataStateFormat. newXContentBuilder(XContentType type, OutputStream stream) -
Uses of XContentType in org.elasticsearch.index.mapper
Methods in org.elasticsearch.index.mapper that return XContentType Modifier and Type Method Description XContentTypeParsedDocument. getXContentType()XContentTypeSourceToParse. getXContentType()Methods in org.elasticsearch.index.mapper with parameters of type XContentType Modifier and Type Method Description voidParsedDocument. setSource(BytesReference source, XContentType xContentType)Constructors in org.elasticsearch.index.mapper with parameters of type XContentType Constructor Description ParsedDocument(Field version, SeqNoFieldMapper.SequenceIDFields seqID, String id, String type, String routing, List<ParseContext.Document> documents, BytesReference source, XContentType xContentType, Mapping dynamicMappingsUpdate)SourceToParse(String index, String type, String id, BytesReference source, XContentType xContentType)SourceToParse(String index, String type, String id, BytesReference source, XContentType xContentType, String routing) -
Uses of XContentType in org.elasticsearch.index.reindex
Methods in org.elasticsearch.index.reindex that return XContentType Modifier and Type Method Description XContentTypeScrollableHitSource.BasicHit. getXContentType()XContentTypeScrollableHitSource.Hit. getXContentType()The content type of the hit source.Methods in org.elasticsearch.index.reindex with parameters of type XContentType Modifier and Type Method Description ScrollableHitSource.BasicHitScrollableHitSource.BasicHit. setSource(BytesReference source, XContentType xContentType) -
Uses of XContentType in org.elasticsearch.ingest
Constructors in org.elasticsearch.ingest with parameters of type XContentType Constructor Description PipelineConfiguration(String id, BytesReference config, XContentType xContentType) -
Uses of XContentType in org.elasticsearch.rest
Methods in org.elasticsearch.rest that return XContentType Modifier and Type Method Description XContentTypeRestRequest. getXContentType()TheXContentTypethat was parsed from theContent-Typeheader.static XContentTypeRestRequest. parseContentType(List<String> header)Parses the given content type string for the media type.Methods in org.elasticsearch.rest that return types with arguments of type XContentType Modifier and Type Method Description Tuple<XContentType,BytesReference>RestRequest. contentOrSourceParam()Get the content of the request or the contents of thesourceparam or throw an exception if both are missing.Methods in org.elasticsearch.rest with parameters of type XContentType Modifier and Type Method Description XContentBuilderRestChannel. newBuilder(XContentType xContentType, boolean useFiltering)XContentBuilderRestChannel. newBuilder(XContentType xContentType, XContentType responseContentType, boolean useFiltering) -
Uses of XContentType in org.elasticsearch.script
Methods in org.elasticsearch.script with parameters of type XContentType Modifier and Type Method Description static StoredScriptSourceStoredScriptSource. parse(BytesReference content, XContentType xContentType)This will parse XContent into aStoredScriptSource. -
Uses of XContentType in org.elasticsearch.search.lookup
Methods in org.elasticsearch.search.lookup that return XContentType Modifier and Type Method Description XContentTypeSourceLookup. sourceContentType()Methods in org.elasticsearch.search.lookup that return types with arguments of type XContentType Modifier and Type Method Description static Tuple<XContentType,Map<String,Object>>SourceLookup. sourceAsMapAndType(BytesReference source)Methods in org.elasticsearch.search.lookup with parameters of type XContentType Modifier and Type Method Description voidSourceLookup. setSourceContentType(XContentType sourceContentType)
-