Class MongoDbEndpointBuilderFactory.MongoDbHeaderNameBuilder
java.lang.Object
org.apache.camel.builder.endpoint.dsl.MongoDbEndpointBuilderFactory.MongoDbHeaderNameBuilder
- Enclosing interface:
- MongoDbEndpointBuilderFactory
The builder of headers' name for the MongoDB component.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionid()
A document that contains the _id of the document created or modified by the insert, replace, delete, update operations (i.e.Sets allowDiskUse MongoDB flag.The number of documents per batch.Perform an ordered or unordered operation execution.The name of the MongoDB collection to bind to this endpoint.The list of dynamic indexes to create on the fly.The query to execute against MongoDB.The name of the MongoDB database to target.The specified field name fow which we want to get the distinct values.The project document.Limits the number of elements returned.If the update should be applied to all objects matching.Discards a given number of elements at the beginning of the cursor.The operation this endpoint will execute against MongoDB.The number of modified or deleted records.The number of documents matched by the query.Number of objects matching the query.Number of objects matching the query.The sort criteria.The type of operation that occurred.Is from tailable.If the database should create the element if it does not exist.mongoOid()
The OID(s) of the inserted record(s).The result of the write operation.
-
Constructor Details
-
MongoDbHeaderNameBuilder
public MongoDbHeaderNameBuilder()
-
-
Method Details
-
mongoDbOperation
The operation this endpoint will execute against MongoDB. The option is a:org.apache.camel.component.mongodb.MongoDbOperation or String
type. Group: producer- Returns:
- the name of the header
MongoDbOperation
.
-
mongoDbResultTotalSize
Number of objects matching the query. This does not take limit/skip into consideration. The option is a:Integer
type. Group: producer findAll- Returns:
- the name of the header
MongoDbResultTotalSize
.
-
mongoDbResultPageSize
Number of objects matching the query. This does not take limit/skip into consideration. The option is a:Integer
type. Group: producer findAll- Returns:
- the name of the header
MongoDbResultPageSize
.
-
mongoDbCriteria
The query to execute against MongoDB. The option is a:org.bson.conversions.Bson
type. Group: producer- Returns:
- the name of the header
MongoDbCriteria
.
-
mongoDbFieldsProjection
The project document. The option is a:org.bson.conversions.Bson
type. Group: producer- Returns:
- the name of the header
MongoDbFieldsProjection
.
-
mongoDbBatchSize
The number of documents per batch. The option is a:Integer
type. Group: producer findAll aggregate- Returns:
- the name of the header
MongoDbBatchSize
.
-
mongoDbNumToSkip
Discards a given number of elements at the beginning of the cursor. The option is a:Integer
type. Group: producer findAll- Returns:
- the name of the header
MongoDbNumToSkip
.
-
mongoDbMultiUpdate
If the update should be applied to all objects matching. See http://www.mongodb.org/display/DOCS/AtomicOperationsAtomic Operations. The option is a:Boolean
type. Group: producer update- Returns:
- the name of the header
MongoDbMultiUpdate
.
-
mongoDbUpsert
If the database should create the element if it does not exist. The option is a:Boolean
type. Group: producer update- Returns:
- the name of the header
MongoDbUpsert
.
-
mongoDbRecordsAffected
The number of modified or deleted records. The option is a:long
type. Group: producer- Returns:
- the name of the header
MongoDbRecordsAffected
.
-
mongoDbRecordsMatched
The number of documents matched by the query. The option is a:long
type. Group: producer- Returns:
- the name of the header
MongoDbRecordsMatched
.
-
mongoDbSortBy
The sort criteria. The option is a:Bson or Document
type. Group: producer- Returns:
- the name of the header
MongoDbSortBy
.
-
mongoDbDatabase
The name of the MongoDB database to target. The option is a:String
type. Group: common- Returns:
- the name of the header
MongoDbDatabase
.
-
mongoDbCollection
The name of the MongoDB collection to bind to this endpoint. The option is a:String
type. Group: common- Returns:
- the name of the header
MongoDbCollection
.
-
mongoDbCollectionIndex
The list of dynamic indexes to create on the fly. The option is a:List<Bson>
type. Group: producer- Returns:
- the name of the header
MongoDbCollectionIndex
.
-
mongoDbLimit
Limits the number of elements returned. The option is a:Integer
type. Group: producer findAll- Returns:
- the name of the header
MongoDbLimit
.
-
mongoDbTailable
Is from tailable. The option is a:Boolean
type. Group: consumer- Returns:
- the name of the header
MongoDbTailable
.
-
mongoWriteResult
The result of the write operation. The option is a:Object
type. Group: producer- Returns:
- the name of the header
MongoWriteResult
.
-
mongoOid
The OID(s) of the inserted record(s). The option is a:Object or List<Object>
type. Group: producer- Returns:
- the name of the header
MongoOid
.
-
mongoDbDistinctQueryField
The specified field name fow which we want to get the distinct values. The option is a:String
type. Group: producer- Returns:
- the name of the header
MongoDbDistinctQueryField
.
-
mongoDbAllowDiskUse
Sets allowDiskUse MongoDB flag. This is supported since MongoDB Server 4.3.1. Using this header with older MongoDB Server version can cause query to fail. The option is a:Boolean
type. Group: producer findAll aggregate- Returns:
- the name of the header
MongoDbAllowDiskUse
.
-
mongoDbBulkOrdered
Perform an ordered or unordered operation execution. The option is a:Boolean
type. Default: TRUE Group: producer bulkWrite- Returns:
- the name of the header
MongoDbBulkOrdered
.
-
id
A document that contains the _id of the document created or modified by the insert, replace, delete, update operations (i.e. CRUD operations). For sharded collections, also displays the full shard key for the document. The _id field is not repeated if it is already a part of the shard key. The option is a:org.bson.types.ObjectId
type. Group: consumer changeStreams- Returns:
- the name of the header
_id
.
-
mongoDbStreamOperationType
The type of operation that occurred. Can be any of the following values: insert, delete, replace, update, drop, rename, dropDatabase, invalidate. The option is a:String
type. Group: consumer changeStreams- Returns:
- the name of the header
MongoDbStreamOperationType
.
-