Package com.couchbase.client.java.util
Class AnalyticsIngester.IngestOptions
- java.lang.Object
-
- com.couchbase.client.java.util.AnalyticsIngester.IngestOptions
-
- Enclosing class:
- AnalyticsIngester
public static class AnalyticsIngester.IngestOptions extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AnalyticsIngester.IngestOptionsanalyticsTimeout(long timeout, TimeUnit timeUnit)Customizes the timeout used for the analytics query.AnalyticsIngester.IngestOptionsdataConverter(rx.functions.Func1<JsonObject,JsonObject> dataConverter)Allows to specify a custom converter which modifies each document from the query before it is stored back in the kv service.AnalyticsIngester.IngestOptionsidGenerator(rx.functions.Func1<JsonObject,String> idGenerator)Allows to specify a custom ID generator instead of the default UUID one.AnalyticsIngester.IngestOptionsignoreIngestError(boolean ignoreIngestError)Allows to ignore individual kv mutation failures and keep going.AnalyticsIngester.IngestOptionsingestMethod(AnalyticsIngester.IngestMethod ingestMethod)Allows to customize the ingest method used for each kv operation.static AnalyticsIngester.IngestOptionsingestOptions()Create ingest options to modify default behavior.AnalyticsIngester.IngestOptionskvTimeout(long timeout, TimeUnit timeUnit)Customizes the timeout used for each kv mutation operation.AnalyticsIngester.IngestOptionsretryBuilder(RetryBuilder retryBuilder)Allows to customize the retry strategy in use for each individual kv operation.
-
-
-
Method Detail
-
ingestOptions
public static AnalyticsIngester.IngestOptions ingestOptions()
Create ingest options to modify default behavior.
-
analyticsTimeout
public AnalyticsIngester.IngestOptions analyticsTimeout(long timeout, TimeUnit timeUnit)
Customizes the timeout used for the analytics query.- Parameters:
timeout- the timeout for the analytics op.timeUnit- the timeunit for the timeout.- Returns:
- these
AnalyticsIngester.IngestOptionsfor chaining purposes.
-
kvTimeout
public AnalyticsIngester.IngestOptions kvTimeout(long timeout, TimeUnit timeUnit)
Customizes the timeout used for each kv mutation operation.- Parameters:
timeout- the timeout for the kv op.timeUnit- the timeunit for the timeout.- Returns:
- these
AnalyticsIngester.IngestOptionsfor chaining purposes.
-
ingestMethod
public AnalyticsIngester.IngestOptions ingestMethod(AnalyticsIngester.IngestMethod ingestMethod)
Allows to customize the ingest method used for each kv operation.- Parameters:
ingestMethod- the ingest method to use.- Returns:
- these
AnalyticsIngester.IngestOptionsfor chaining purposes.
-
ignoreIngestError
public AnalyticsIngester.IngestOptions ignoreIngestError(boolean ignoreIngestError)
Allows to ignore individual kv mutation failures and keep going.- Parameters:
ignoreIngestError- true if should be ignored.- Returns:
- these
AnalyticsIngester.IngestOptionsfor chaining purposes.
-
retryBuilder
public AnalyticsIngester.IngestOptions retryBuilder(RetryBuilder retryBuilder)
Allows to customize the retry strategy in use for each individual kv operation.- Parameters:
retryBuilder- the retry builder to use.- Returns:
- these
AnalyticsIngester.IngestOptionsfor chaining purposes.
-
idGenerator
public AnalyticsIngester.IngestOptions idGenerator(rx.functions.Func1<JsonObject,String> idGenerator)
Allows to specify a custom ID generator instead of the default UUID one.- Parameters:
idGenerator- the id generator to use.- Returns:
- these
AnalyticsIngester.IngestOptionsfor chaining purposes.
-
dataConverter
public AnalyticsIngester.IngestOptions dataConverter(rx.functions.Func1<JsonObject,JsonObject> dataConverter)
Allows to specify a custom converter which modifies each document from the query before it is stored back in the kv service.- Parameters:
dataConverter- the converter to use.- Returns:
- these
AnalyticsIngester.IngestOptionsfor chaining purposes.
-
-