Class MongoDbConstants


  • public final class MongoDbConstants
    extends Object
    • Field Detail

      • OPERATION_HEADER

        @Metadata(label="producer",
                  description="The operation this endpoint will execute against MongoDB.",
                  javaType="org.apache.camel.component.mongodb.MongoDbOperation or String")
        public static final String OPERATION_HEADER
        See Also:
        Constant Field Values
      • RESULT_TOTAL_SIZE

        @Metadata(label="producer findAll",
                  description="Number of objects matching the query. This does not take limit/skip into consideration.",
                  javaType="Integer")
        public static final String RESULT_TOTAL_SIZE
        See Also:
        Constant Field Values
      • RESULT_PAGE_SIZE

        @Metadata(label="producer findAll",
                  description="Number of objects matching the query. This does not take limit/skip into consideration.",
                  javaType="Integer")
        public static final String RESULT_PAGE_SIZE
        See Also:
        Constant Field Values
      • CRITERIA

        @Metadata(label="producer",
                  description="The query to execute against MongoDB.",
                  javaType="org.bson.conversions.Bson")
        public static final String CRITERIA
        See Also:
        Constant Field Values
      • FIELDS_PROJECTION

        @Metadata(label="producer",
                  description="The project document.",
                  javaType="org.bson.conversions.Bson")
        public static final String FIELDS_PROJECTION
        See Also:
        Constant Field Values
      • BATCH_SIZE

        @Metadata(label="producer findAll aggregate",
                  description="The number of documents per batch.",
                  javaType="Integer")
        public static final String BATCH_SIZE
        See Also:
        Constant Field Values
      • NUM_TO_SKIP

        @Metadata(label="producer findAll",
                  description="Discards a given number of elements at the beginning of the cursor.",
                  javaType="Integer")
        public static final String NUM_TO_SKIP
        See Also:
        Constant Field Values
      • MULTIUPDATE

        @Metadata(label="producer update",
                  description="If the update should be applied to all objects matching. See\nhttp://www.mongodb.org/display/DOCS/Atomic+Operations[Atomic Operations]",
                  javaType="Boolean")
        public static final String MULTIUPDATE
        See Also:
        Constant Field Values
      • UPSERT

        @Metadata(label="producer update",
                  description="If the database should create the element if it does not exist",
                  javaType="Boolean")
        public static final String UPSERT
        See Also:
        Constant Field Values
      • RECORDS_AFFECTED

        @Metadata(label="producer",
                  description="The number of modified or deleted records",
                  javaType="long")
        public static final String RECORDS_AFFECTED
        See Also:
        Constant Field Values
      • RECORDS_MATCHED

        @Metadata(label="producer",
                  description="The number of documents matched by the query.",
                  javaType="long")
        public static final String RECORDS_MATCHED
        See Also:
        Constant Field Values
      • SORT_BY

        @Metadata(label="producer",
                  description="The sort criteria.",
                  javaType="Bson or Document")
        public static final String SORT_BY
        See Also:
        Constant Field Values
      • DATABASE

        @Metadata(description="The name of the MongoDB database to target",
                  javaType="String")
        public static final String DATABASE
        See Also:
        Constant Field Values
      • COLLECTION

        @Metadata(description="The name of the MongoDB collection to bind to this endpoint",
                  javaType="String")
        public static final String COLLECTION
        See Also:
        Constant Field Values
      • COLLECTION_INDEX

        @Metadata(label="producer",
                  description="The list of dynamic indexes to create on the fly",
                  javaType="List<Bson>")
        public static final String COLLECTION_INDEX
        See Also:
        Constant Field Values
      • LIMIT

        @Metadata(label="producer findAll",
                  description="Limits the number of elements returned.",
                  javaType="Integer")
        public static final String LIMIT
        See Also:
        Constant Field Values
      • FROM_TAILABLE

        @Metadata(label="consumer",
                  description="Is from tailable",
                  javaType="Boolean")
        public static final String FROM_TAILABLE
        See Also:
        Constant Field Values
      • WRITERESULT

        @Metadata(label="producer",
                  description="The result of the write operation",
                  javaType="Object")
        public static final String WRITERESULT
        See Also:
        Constant Field Values
      • OID

        @Metadata(label="producer",
                  description="The OID(s) of the inserted record(s)",
                  javaType="Object or List<Object>")
        public static final String OID
        See Also:
        Constant Field Values
      • DISTINCT_QUERY_FIELD

        @Metadata(label="producer",
                  description="The specified field name fow which we want to get the distinct values.",
                  javaType="String")
        public static final String DISTINCT_QUERY_FIELD
        See Also:
        Constant Field Values
      • ALLOW_DISK_USE

        @Metadata(label="producer findAll aggregate",
                  description="Sets allowDiskUse MongoDB flag.\nThis is supported since MongoDB Server 4.3.1. Using this header with older MongoDB Server version can cause query to fail.",
                  javaType="Boolean")
        public static final String ALLOW_DISK_USE
        See Also:
        Constant Field Values
      • BULK_ORDERED

        @Metadata(label="producer bulkWrite",
                  description="Perform an ordered or unordered operation execution. ",
                  javaType="Boolean",
                  defaultValue="TRUE")
        public static final String BULK_ORDERED
        See Also:
        Constant Field Values
      • MONGO_ID

        @Metadata(label="consumer changeStreams",
                  description="A document that contains the _id of the document created or modified by the insert,\nreplace, delete, update operations (i.e. CRUD operations). For sharded collections, also displays the full shard key for\nthe document. The _id field is not repeated if it is already a part of the shard key.",
                  javaType="org.bson.types.ObjectId")
        public static final String MONGO_ID
        See Also:
        Constant Field Values
      • STREAM_OPERATION_TYPE

        @Metadata(label="consumer changeStreams",
                  description="The type of operation that occurred. Can\nbe any of the following values: insert, delete, replace, update, drop, rename, dropDatabase, invalidate.",
                  javaType="String")
        public static final String STREAM_OPERATION_TYPE
        See Also:
        Constant Field Values