| Package | Description |
|---|---|
| org.elasticsearch.action.index |
Index action.
|
| org.elasticsearch.action.indexedscripts.put |
Index action.
|
| org.elasticsearch.action.percolate | |
| org.elasticsearch.action.support | |
| org.elasticsearch.action.update | |
| org.elasticsearch.client |
The client module allowing to easily perform actions/operations.
|
| org.elasticsearch.common.compress | |
| org.elasticsearch.common.settings.loader |
Settings loader (parser) allowing to parse different "source" formats into
a
Settings. |
| org.elasticsearch.common.xcontent | |
| org.elasticsearch.common.xcontent.cbor | |
| org.elasticsearch.common.xcontent.json | |
| org.elasticsearch.common.xcontent.smile | |
| org.elasticsearch.common.xcontent.yaml | |
| org.elasticsearch.gateway | |
| org.elasticsearch.repositories.blobstore | |
| org.elasticsearch.rest.action.support | |
| org.elasticsearch.script | |
| org.elasticsearch.search.lookup |
| Modifier and Type | Method and Description |
|---|---|
XContentType |
IndexRequest.getContentType()
The content type that will be used when generating a document from user provided objects like Maps.
|
| Modifier and Type | Method and Description |
|---|---|
IndexRequest |
IndexRequest.contentType(XContentType contentType)
Sets the content type that will be used when generating a document from user provided objects (like Map).
|
IndexRequestBuilder |
IndexRequestBuilder.setContentType(XContentType contentType)
The content type that will be used to generate a document from user provided objects (like Map).
|
IndexRequestBuilder |
IndexRequestBuilder.setSource(Map<String,?> source,
XContentType contentType)
Index the Map as the provided content type.
|
IndexRequest |
IndexRequest.source(Map source,
XContentType contentType)
Index the Map as the provided content type.
|
| Modifier and Type | Method and Description |
|---|---|
PutIndexedScriptRequest |
PutIndexedScriptRequest.contentType(XContentType contentType)
Sets the content type that will be used when generating a document from user provided objects (like Map).
|
PutIndexedScriptRequestBuilder |
PutIndexedScriptRequestBuilder.setContentType(XContentType contentType)
The content type that will be used to generate a document from user provided objects (like Map).
|
PutIndexedScriptRequestBuilder |
PutIndexedScriptRequestBuilder.setSource(Map<String,Object> source,
XContentType contentType)
Index the Map as the provided content type.
|
PutIndexedScriptRequest |
PutIndexedScriptRequest.source(Map source,
XContentType contentType)
Index the Map as the provided content type.
|
| Modifier and Type | Method and Description |
|---|---|
PercolateSourceBuilder.DocBuilder |
PercolateSourceBuilder.DocBuilder.setDoc(Map doc,
XContentType contentType) |
PercolateRequestBuilder |
PercolateRequestBuilder.setSource(Map<String,Object> source,
XContentType contentType)
Raw variant of
PercolateRequestBuilder.setSource(PercolateSourceBuilder) |
PercolateRequest |
PercolateRequest.source(Map document,
XContentType contentType)
Raw version of
PercolateRequest.source(PercolateSourceBuilder) |
| Modifier and Type | Method and Description |
|---|---|
BytesReference |
ToXContentToBytes.buildAsBytes(XContentType contentType)
Returns a
BytesReference
containing the ToXContent output in binary format. |
| Constructor and Description |
|---|
ToXContentToBytes(XContentType defaultType) |
| Modifier and Type | Method and Description |
|---|---|
XContentType |
UpdateHelper.Result.updateSourceContentType() |
| Modifier and Type | Method and Description |
|---|---|
UpdateRequest |
UpdateRequest.doc(Map source,
XContentType contentType)
Sets the doc to use for updates when a script is not specified.
|
GetResult |
UpdateHelper.extractGetResult(UpdateRequest request,
String concreteIndex,
long version,
Map<String,Object> source,
XContentType sourceContentType,
BytesReference sourceAsBytes)
Extracts the fields from the updated document to be returned in a update response
|
UpdateRequestBuilder |
UpdateRequestBuilder.setDoc(Map source,
XContentType contentType)
Sets the doc to use for updates when a script is not specified.
|
UpdateRequestBuilder |
UpdateRequestBuilder.setUpsert(Map source,
XContentType contentType)
Sets the doc source of the update request to be used when the document does not exists.
|
UpdateRequest |
UpdateRequest.upsert(Map source,
XContentType contentType)
Sets the doc source of the update request to be used when the document does not exists.
|
| Constructor and Description |
|---|
UpdateHelper.Result(Streamable action,
UpdateHelper.Operation operation,
Map<String,Object> updatedSourceAsMap,
XContentType updateSourceContentType) |
| Modifier and Type | Field and Description |
|---|---|
static XContentType |
Requests.CONTENT_TYPE
The content type used to generate request builders (query / search).
|
static XContentType |
Requests.INDEX_CONTENT_TYPE
The default content type to use to generate source documents when indexing.
|
| Constructor and Description |
|---|
CompressedXContent(ToXContent xcontent,
XContentType type,
ToXContent.Params params)
Create a
CompressedXContent out of a ToXContent instance. |
| Modifier and Type | Method and Description |
|---|---|
XContentType |
JsonSettingsLoader.contentType() |
XContentType |
YamlSettingsLoader.contentType() |
abstract XContentType |
XContentSettingsLoader.contentType() |
| Modifier and Type | Method and Description |
|---|---|
XContentType |
XContentGenerator.contentType() |
XContentType |
XContentBuilder.contentType() |
XContentType |
XContentParser.contentType() |
static XContentType |
XContentType.fromRestContentType(String contentType) |
static XContentType |
XContentType.readFrom(StreamInput in) |
XContentType |
XContent.type()
The type this content handles and produces.
|
static XContentType |
XContentType.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 XContentType |
XContentFactory.xContentType(byte[] data)
Guesses the content type based on the provided bytes.
|
static XContentType |
XContentFactory.xContentType(byte[] data,
int offset,
int length)
Guesses the content type based on the provided bytes.
|
static XContentType |
XContentFactory.xContentType(BytesReference bytes)
Guesses the content type based on the provided bytes.
|
static XContentType |
XContentFactory.xContentType(CharSequence content)
Guesses the content type based on the provided char sequence.
|
static XContentType |
XContentFactory.xContentType(InputStream si)
Guesses the content type based on the provided input stream without consuming it.
|
| Modifier and Type | Method and Description |
|---|---|
static Tuple<XContentType,Map<String,Object>> |
XContentHelper.convertToMap(BytesReference bytes,
boolean ordered) |
| Modifier and Type | Method and Description |
|---|---|
static XContentBuilder |
XContentFactory.contentBuilder(XContentType type)
Returns a binary content builder for the provided content type.
|
static XContentBuilder |
XContentFactory.contentBuilder(XContentType type,
OutputStream outputStream)
Constructs a xcontent builder that will output the result into the provided output stream.
|
static void |
XContentType.writeTo(XContentType contentType,
StreamOutput out) |
static XContent |
XContentFactory.xContent(XContentType type)
Returns the
XContent for the provided content type. |
| Modifier and Type | Method and Description |
|---|---|
XContentType |
CborXContentParser.contentType() |
XContentType |
CborXContentGenerator.contentType() |
XContentType |
CborXContent.type() |
| Modifier and Type | Method and Description |
|---|---|
XContentType |
JsonXContentParser.contentType() |
XContentType |
JsonXContentGenerator.contentType() |
XContentType |
JsonXContent.type() |
| Modifier and Type | Method and Description |
|---|---|
XContentType |
SmileXContentGenerator.contentType() |
XContentType |
SmileXContentParser.contentType() |
XContentType |
SmileXContent.type() |
| Modifier and Type | Method and Description |
|---|---|
XContentType |
YamlXContentParser.contentType() |
XContentType |
YamlXContentGenerator.contentType() |
XContentType |
YamlXContent.type() |
| Modifier and Type | Method and Description |
|---|---|
XContentType |
MetaDataStateFormat.format()
Returns the
XContentType used to serialize xcontent on write. |
| Modifier and Type | Method and Description |
|---|---|
protected XContentBuilder |
MetaDataStateFormat.newXContentBuilder(XContentType type,
OutputStream stream) |
| Constructor and Description |
|---|
MetaDataStateFormat(XContentType format,
String prefix)
Creates a new
MetaDataStateFormat instance |
| Modifier and Type | Field and Description |
|---|---|
protected XContentType |
ChecksumBlobStoreFormat.xContentType |
| Constructor and Description |
|---|
ChecksumBlobStoreFormat(String codec,
String blobNameFormat,
FromXContentBuilder<T> reader,
ParseFieldMatcher parseFieldMatcher,
boolean compress,
XContentType xContentType) |
| Modifier and Type | Method and Description |
|---|---|
static XContentType |
RestActions.guessBodyContentType(RestRequest request)
guesses the content type from either payload or source parameter
|
| Modifier and Type | Method and Description |
|---|---|
XContentType |
Template.getContentType()
Method for getting the
XContentType of the template. |
| Constructor and Description |
|---|
Template(String template,
ScriptService.ScriptType type,
String lang,
XContentType xContentType,
Map<String,Object> params)
Constructor for Template.
|
| Modifier and Type | Method and Description |
|---|---|
XContentType |
SourceLookup.sourceContentType() |
| Modifier and Type | Method and Description |
|---|---|
static Tuple<XContentType,Map<String,Object>> |
SourceLookup.sourceAsMapAndType(BytesReference source) |
| Modifier and Type | Method and Description |
|---|---|
void |
SourceLookup.setSourceContentType(XContentType sourceContentType) |
Copyright © 2009–2017. All rights reserved.