MongoDbV2Source Class
- java.
lang. Object - com.
azure. analytics. synapse. artifacts. models. CopySource - com.
azure. analytics. synapse. artifacts. models. MongoDbV2Source
- com.
- com.
public final class MongoDbV2Source
extends CopySource
A copy activity source for a MongoDB database.
Constructor Summary
Constructor | Description |
---|---|
MongoDbV2Source() |
Creates an instance of Mongo |
Method Summary
Modifier and Type | Method and Description |
---|---|
Object |
getAdditionalColumns()
Get the additional |
Object |
getBatchSize()
Get the batch |
Mongo |
getCursorMethods()
Get the cursor |
Object |
getFilter()
Get the filter property: Specifies selection filter using query operators. |
Object |
getQueryTimeout()
Get the query |
Mongo |
setAdditionalColumns(Object additionalColumns)
Set the additional |
Mongo |
setBatchSize(Object batchSize)
Set the batch |
Mongo |
setCursorMethods(MongoDbCursorMethodsProperties cursorMethods)
Set the cursor |
Mongo |
setFilter(Object filter)
Set the filter property: Specifies selection filter using query operators. |
Mongo |
setMaxConcurrentConnections(Object maxConcurrentConnections)
Set the max |
Mongo |
setQueryTimeout(Object queryTimeout)
Set the query |
Mongo |
setSourceRetryCount(Object sourceRetryCount)
Set the source |
Mongo |
setSourceRetryWait(Object sourceRetryWait)
Set the source |
Methods inherited from CopySource
Methods inherited from java.lang.Object
Constructor Details
MongoDbV2Source
public MongoDbV2Source()
Creates an instance of MongoDbV2Source class.
Method Details
getAdditionalColumns
public Object getAdditionalColumns()
Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects).
Returns:
getBatchSize
public Object getBatchSize()
Get the batchSize property: Specifies the number of documents to return in each batch of the response from MongoDB instance. In most cases, modifying the batch size will not affect the user or the application. This property's main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with resultType integer).
Returns:
getCursorMethods
public MongoDbCursorMethodsProperties getCursorMethods()
Get the cursorMethods property: Cursor methods for Mongodb query.
Returns:
getFilter
public Object getFilter()
Get the filter property: Specifies selection filter using query operators. To return all documents in a collection, omit this parameter or pass an empty document ({}). Type: string (or Expression with resultType string).
Returns:
getQueryTimeout
public Object getQueryTimeout()
Get the queryTimeout property: Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
Returns:
setAdditionalColumns
public MongoDbV2Source setAdditionalColumns(Object additionalColumns)
Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects).
Parameters:
Returns:
setBatchSize
public MongoDbV2Source setBatchSize(Object batchSize)
Set the batchSize property: Specifies the number of documents to return in each batch of the response from MongoDB instance. In most cases, modifying the batch size will not affect the user or the application. This property's main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with resultType integer).
Parameters:
Returns:
setCursorMethods
public MongoDbV2Source setCursorMethods(MongoDbCursorMethodsProperties cursorMethods)
Set the cursorMethods property: Cursor methods for Mongodb query.
Parameters:
Returns:
setFilter
public MongoDbV2Source setFilter(Object filter)
Set the filter property: Specifies selection filter using query operators. To return all documents in a collection, omit this parameter or pass an empty document ({}). Type: string (or Expression with resultType string).
Parameters:
Returns:
setMaxConcurrentConnections
public MongoDbV2Source setMaxConcurrentConnections(Object maxConcurrentConnections)
Set the maxConcurrentConnections property: The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer).
Overrides:
MongoDbV2Source.setMaxConcurrentConnections(Object maxConcurrentConnections)Parameters:
setQueryTimeout
public MongoDbV2Source setQueryTimeout(Object queryTimeout)
Set the queryTimeout property: Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
Parameters:
Returns:
setSourceRetryCount
public MongoDbV2Source setSourceRetryCount(Object sourceRetryCount)
Set the sourceRetryCount property: Source retry count. Type: integer (or Expression with resultType integer).
Overrides:
MongoDbV2Source.setSourceRetryCount(Object sourceRetryCount)Parameters:
setSourceRetryWait
public MongoDbV2Source setSourceRetryWait(Object sourceRetryWait)
Set the sourceRetryWait property: Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
Overrides:
MongoDbV2Source.setSourceRetryWait(Object sourceRetryWait)Parameters:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for