| Package | Description |
|---|---|
| de.caluga.morphium | |
| de.caluga.morphium.aggregation | |
| de.caluga.morphium.driver.inmem | |
| de.caluga.morphium.query |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
Morphium.pull(Query<T> query,
String field,
Expr value,
boolean upsert,
boolean multiple,
AsyncOperationCallback<T> callback) |
<T> void |
Morphium.pull(T entity,
String field,
Expr value,
boolean upsert,
boolean multiple,
AsyncOperationCallback<T> callback) |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
Utils.getQueryObjectMap(Map<String,Expr> exprMap) |
| Modifier and Type | Method and Description |
|---|---|
static Expr |
Expr.abs(Expr e) |
static Expr |
Expr.accumulator(String initCode,
Expr initArgs,
String accumulateCode,
Expr accArgs,
String mergeCode) |
static Expr |
Expr.accumulator(String initCode,
Expr initArgs,
String accumulateCode,
Expr accArgs,
String mergeCode,
String finalizeCode) |
static Expr |
Expr.accumulator(String initCode,
Expr initArgs,
String accumulateCode,
Expr accArgs,
String mergeCode,
String finalizeCode,
String lang) |
static Expr |
Expr.accumulator(String initCode,
String accumulateCode,
Expr accArgs,
String mergeCode) |
static Expr |
Expr.acos(Expr e) |
static Expr |
Expr.acosh(Expr e) |
static Expr |
Expr.add(Expr... fld) |
static Expr |
Expr.addToSet(Expr e) |
static Expr |
Expr.allElementsTrue(Expr... e) |
static Expr |
Expr.and(Expr... expressions) |
static Expr |
Expr.anyElementTrue(Expr... e) |
static Expr |
Expr.arrayElemAt(Expr array,
Expr index) |
static Expr |
Expr.arrayExpr(Expr... elem) |
static Expr |
Expr.arrayToObject(Expr array) |
static Expr |
Expr.asin(Expr e) |
static Expr |
Expr.asinh(Expr e) |
static Expr |
Expr.atan(Expr e) |
static Expr |
Expr.atan2(Expr e,
Expr e2) |
static Expr |
Expr.atanh(Expr e1,
Expr e2) |
static Expr |
Expr.avg(Expr... e) |
static Expr |
Expr.avg(Expr e) |
static Expr |
Expr.binarySize(Expr e) |
static Expr |
Expr.bool(boolean v) |
static Expr |
Expr.bsonSize(Expr e) |
static Expr |
Expr.ceil(Expr e) |
static Expr |
Expr.cmp(Expr e1,
Expr e2) |
static Expr |
Expr.concat(Expr... e) |
static Expr |
Expr.concatArrays(Expr... arrays) |
static Expr |
Expr.cond(Expr condition,
Expr caseTrue,
Expr caseFalse) |
static Expr |
Expr.convert(Expr input,
Expr to) |
static Expr |
Expr.convert(Expr input,
Expr to,
Expr onError) |
static Expr |
Expr.convert(Expr input,
Expr to,
Expr onError,
Expr onNull) |
static Expr |
Expr.cos(Expr e) |
static Expr |
Expr.date(Date d) |
static Expr |
Expr.dateFromParts(Expr year) |
static Expr |
Expr.dateFromParts(Expr year,
Expr month) |
static Expr |
Expr.dateFromParts(Expr year,
Expr month,
Expr day,
Expr hour) |
static Expr |
Expr.dateFromParts(Expr year,
Expr month,
Expr day,
Expr hour,
Expr min,
Expr sec) |
static Expr |
Expr.dateFromParts(Expr year,
Expr month,
Expr day,
Expr hour,
Expr min,
Expr sec,
Expr ms) |
static Expr |
Expr.dateFromParts(Expr year,
Expr month,
Expr day,
Expr hour,
Expr min,
Expr sec,
Expr ms,
Expr timeZone) |
static Expr |
Expr.dateFromString(Expr dateString,
Expr format,
Expr timezone,
Expr onError,
Expr onNull) |
static Expr |
Expr.dateToParts(Expr date,
Expr timezone,
boolean iso8601) |
static Expr |
Expr.dateToString(Expr date,
Expr format,
Expr timezone,
Expr onNull) |
static Expr |
Expr.dayOfMonth(Expr date) |
static Expr |
Expr.dayOfWeek(Expr date) |
static Expr |
Expr.dayOfYear(Expr date) |
static Expr |
Expr.degreesToRadian(Expr e) |
static Expr |
Expr.divide(Expr divident,
Expr divisor) |
static Expr |
Expr.doc(Map<String,Object> document) |
static Expr |
Expr.doubleExpr(double d) |
static Expr |
Expr.eq(Expr e1) |
static Expr |
Expr.eq(Expr e1,
Expr e2) |
static Expr |
Expr.exp(Expr e) |
static Expr |
Expr.expr(Expr expr) |
static Expr |
Expr.field(Enum field)
returning a hard coded field reference, better use field(Enum,Class, Morphium) instead!
|
static Expr |
Expr.field(Enum name,
Class type,
Morphium m)
generate field mapping according to @entity settings in class/Morphium config
|
static Expr |
Expr.field(String name)
returning a hard-coded field reference
|
static Expr |
Expr.filter(Expr inputArray,
String as,
Expr cond) |
static Expr |
Expr.first(Expr e) |
static Expr |
Expr.floor(Expr e) |
static Expr |
Expr.function(String code,
Expr args) |
static Expr |
Expr.function(String code,
Expr args,
String lang) |
static Expr |
Expr.gt(Expr e1) |
static Expr |
Expr.gt(Expr e1,
Expr e2) |
static Expr |
Expr.gte(Expr e1) |
static Expr |
Expr.gte(Expr e1,
Expr e2) |
static Expr |
Expr.hour(Expr date) |
static Expr |
Expr.ifNull(Expr toCheck,
Expr resultIfNull) |
static Expr |
Expr.in(Expr elem,
Expr array) |
static Expr |
Expr.indexOfArray(Expr array,
Expr search,
Expr start,
Expr end) |
static Expr |
Expr.indexOfBytes(Expr str,
Expr substr,
Expr start,
Expr end) |
static Expr |
Expr.indexOfCP(Expr str,
Expr substr,
Expr start,
Expr end) |
static Expr |
Expr.intExpr(int i) |
static Expr |
Expr.isArray(Expr array) |
static Expr |
Expr.isNumber(Expr e) |
static Expr |
Expr.isoDateFromParts(Expr isoWeekYear) |
static Expr |
Expr.isoDateFromParts(Expr isoWeekYear,
Expr isoWeek) |
static Expr |
Expr.isoDateFromParts(Expr isoWeekYear,
Expr isoWeek,
Expr isoDayOfWeek) |
static Expr |
Expr.isoDateFromParts(Expr isoWeekYear,
Expr isoWeek,
Expr isoDayOfWeek,
Expr hour) |
static Expr |
Expr.isoDateFromParts(Expr isoWeekYear,
Expr isoWeek,
Expr isoDayOfWeek,
Expr hour,
Expr min) |
static Expr |
Expr.isoDateFromParts(Expr isoWeekYear,
Expr isoWeek,
Expr isoDayOfWeek,
Expr hour,
Expr min,
Expr sec) |
static Expr |
Expr.isoDateFromParts(Expr isoWeekYear,
Expr isoWeek,
Expr isoDayOfWeek,
Expr hour,
Expr min,
Expr sec,
Expr ms) |
static Expr |
Expr.isoDateFromParts(Expr isoWeekYear,
Expr isoWeek,
Expr isoDayOfWeek,
Expr hour,
Expr min,
Expr sec,
Expr ms,
Expr timeZone) |
static Expr |
Expr.isoDayOfWeek(Expr date) |
static Expr |
Expr.isoWeek(Expr date) |
static Expr |
Expr.isoWeekYear(Expr date) |
static Expr |
Expr.last(Expr e) |
static Expr |
Expr.let(Map<String,Expr> vars,
Expr in) |
static Expr |
Expr.literal(Expr e) |
static Expr |
Expr.ln(Expr e) |
static Expr |
Expr.log(Expr num,
Expr base) |
static Expr |
Expr.log10(Expr e) |
static Expr |
Expr.lt(Expr e1) |
static Expr |
Expr.lt(Expr e1,
Expr e2) |
static Expr |
Expr.lte(Expr e1) |
static Expr |
Expr.lte(Expr e1,
Expr e2) |
static Expr |
Expr.ltrim(Expr str,
Expr charsToTrim) |
static Expr |
Expr.map(Expr inputArray,
Expr as,
Expr in) |
static Expr |
Expr.mapExpr(Map<String,Expr> map) |
static Expr |
Expr.match(Expr expr) |
static Expr |
Expr.max(Expr... e) |
static Expr |
Expr.max(Expr e) |
static Expr |
Expr.mergeObjects(Expr... docs) |
static Expr |
Expr.mergeObjects(Expr doc) |
static Expr |
Expr.meta(String metaDataKeyword) |
static Expr |
Expr.millisecond(Expr date) |
static Expr |
Expr.min(Expr... e) |
static Expr |
Expr.min(Expr e) |
static Expr |
Expr.minute(Expr date) |
static Expr |
Expr.mod(Expr divident,
Expr divisor) |
static Expr |
Expr.month(Expr date) |
static Expr |
Expr.multiply(Expr e1,
Expr e2) |
static Expr |
Expr.ne(Expr e1) |
static Expr |
Expr.ne(Expr e1,
Expr e2) |
static Expr |
Expr.not(Expr expression) |
static Expr |
Expr.now() |
static Expr |
Expr.nullExpr() |
static Expr |
Expr.objectToArray(Expr obj) |
static Expr |
Expr.or(Expr... expressions) |
static Expr |
Expr.parse(Object o) |
static Expr |
Expr.pow(Expr num,
Expr exponent) |
static Expr |
Expr.project(Map<String,Expr> expr) |
static Expr |
Expr.push(Expr e) |
static Expr |
Expr.radiansToDegrees(Expr e) |
static Expr |
Expr.range(Expr start,
Expr end,
Expr step) |
static Expr |
Expr.reduce(Expr inputArray,
Expr initValue,
Expr in) |
static Expr |
Expr.regex(Expr field,
Expr regex,
Expr options) |
static Expr |
Expr.regexFind(Expr input,
Expr regex,
Expr options) |
static Expr |
Expr.regexFindAll(Expr input,
Expr regex,
Expr options) |
static Expr |
Expr.regexMatch(Expr input,
Expr regex,
Expr options) |
static Expr |
Expr.replaceAll(Expr input,
Expr find,
Expr replacement) |
static Expr |
Expr.replaceOne(Expr input,
Expr find,
Expr replacement) |
static Expr |
Expr.reverseArray(Expr array) |
static Expr |
Expr.round(Expr e) |
static Expr |
Expr.rtrim(Expr str,
Expr charsToTrim) |
static Expr |
Expr.second(Expr date) |
static Expr |
Expr.setDifference(Expr e1,
Expr e2) |
static Expr |
Expr.setEquals(Expr... e) |
static Expr |
Expr.setIntersection(Expr... e) |
static Expr |
Expr.setIsSubset(Expr e1,
Expr e2) |
static Expr |
Expr.setUnion(Expr... e) |
static Expr |
Expr.sin(Expr e) |
static Expr |
Expr.size(Expr array) |
static Expr |
Expr.slice(Expr array,
Expr n) |
static Expr |
Expr.slice(Expr array,
Expr pos,
Expr n) |
static Expr |
Expr.split(Expr str,
Expr delimiter) |
static Expr |
Expr.sqrt(Expr e) |
static Expr |
Expr.stdDevPop(Expr... e) |
static Expr |
Expr.stdDevPop(Expr e) |
static Expr |
Expr.stdDevSamp(Expr... e) |
static Expr |
Expr.stdDevSamp(Expr e) |
static Expr |
Expr.strcasecmp(Expr e1,
Expr e2) |
static Expr |
Expr.string(String str) |
static Expr |
Expr.strLenBytes(Expr str) |
static Expr |
Expr.strLenCP(Expr str) |
static Expr |
Expr.substr(Expr str,
Expr start,
Expr len) |
static Expr |
Expr.substrBytes(Expr str,
Expr index,
Expr count) |
static Expr |
Expr.substrCP(Expr str,
Expr cpIdx,
Expr cpCount) |
static Expr |
Expr.subtract(Expr e1,
Expr e2) |
static Expr |
Expr.sum(Expr... e) |
static Expr |
Expr.sum(Expr e) |
static Expr |
Expr.switchExpr(Map<Expr,Expr> branches,
Expr defaultCase) |
static Expr |
Expr.tan(Expr e) |
static Expr |
Expr.toBool(Expr e) |
static Expr |
Expr.toDate(Expr e) |
static Expr |
Expr.toDecimal(Expr e) |
static Expr |
Expr.toDouble(Expr e) |
static Expr |
Expr.toInt(Expr e) |
static Expr |
Expr.toLong(Expr e) |
static Expr |
Expr.toLower(Expr e) |
static Expr |
Expr.toObjectId(Expr e) |
static Expr |
Expr.toStr(Expr e) |
static Expr |
Expr.toUpper(Expr e) |
static Expr |
Expr.trim(Expr str,
Expr charsToTrim) |
static Expr |
Expr.trunc(Expr num,
Expr place) |
static Expr |
Expr.type(Expr e) |
static Expr |
Expr.week(Expr date) |
static Expr |
Expr.year(Expr date) |
static Expr |
Expr.zip(List<Expr> inputs,
Expr useLongestLength,
Expr defaults) |
| Modifier and Type | Method and Description |
|---|---|
static Expr |
Expr.abs(Expr e) |
static Expr |
Expr.accumulator(String initCode,
Expr initArgs,
String accumulateCode,
Expr accArgs,
String mergeCode) |
static Expr |
Expr.accumulator(String initCode,
Expr initArgs,
String accumulateCode,
Expr accArgs,
String mergeCode,
String finalizeCode) |
static Expr |
Expr.accumulator(String initCode,
Expr initArgs,
String accumulateCode,
Expr accArgs,
String mergeCode,
String finalizeCode,
String lang) |
static Expr |
Expr.accumulator(String initCode,
String accumulateCode,
Expr accArgs,
String mergeCode) |
static Expr |
Expr.acos(Expr e) |
static Expr |
Expr.acosh(Expr e) |
static Expr |
Expr.add(Expr... fld) |
static Expr |
Expr.addToSet(Expr e) |
static Expr |
Expr.allElementsTrue(Expr... e) |
static Expr |
Expr.and(Expr... expressions) |
static Expr |
Expr.anyElementTrue(Expr... e) |
static Expr |
Expr.arrayElemAt(Expr array,
Expr index) |
static Expr |
Expr.arrayExpr(Expr... elem) |
static Expr |
Expr.arrayToObject(Expr array) |
static Expr |
Expr.asin(Expr e) |
static Expr |
Expr.asinh(Expr e) |
static Expr |
Expr.atan(Expr e) |
static Expr |
Expr.atan2(Expr e,
Expr e2) |
static Expr |
Expr.atanh(Expr e1,
Expr e2) |
static Expr |
Expr.avg(Expr... e) |
static Expr |
Expr.avg(Expr e) |
static Expr |
Expr.binarySize(Expr e) |
static Expr |
Expr.bsonSize(Expr e) |
Aggregator<T,R> |
AggregatorImpl.bucket(Expr groupBy,
List<Expr> boundaries,
Expr preset,
Map<String,Expr> output)
Categorizes incoming documents into groups, called buckets, based on a specified expression and
bucket boundaries and outputs a document per each bucket.
|
Aggregator<T,R> |
Aggregator.bucket(Expr groupBy,
List<Expr> boundaries,
Expr preset,
Map<String,Expr> output) |
Aggregator<T,R> |
AggregatorImpl.bucketAuto(Expr groupBy,
int numBuckets,
Map<String,Expr> output,
Aggregator.BucketGranularity granularity) |
Aggregator<T,R> |
Aggregator.bucketAuto(Expr groupBy,
int numBuckets,
Map<String,Expr> output,
Aggregator.BucketGranularity granularity) |
static Expr |
Expr.ceil(Expr e) |
static Expr |
Expr.cmp(Expr e1,
Expr e2) |
static Expr |
Expr.concat(Expr... e) |
static Expr |
Expr.concatArrays(Expr... arrays) |
static Expr |
Expr.cond(Expr condition,
Expr caseTrue,
Expr caseFalse) |
static Expr |
Expr.convert(Expr input,
Expr to) |
static Expr |
Expr.convert(Expr input,
Expr to,
Expr onError) |
static Expr |
Expr.convert(Expr input,
Expr to,
Expr onError,
Expr onNull) |
static Expr |
Expr.cos(Expr e) |
static Expr |
Expr.dateFromParts(Expr year) |
static Expr |
Expr.dateFromParts(Expr year,
Expr month) |
static Expr |
Expr.dateFromParts(Expr year,
Expr month,
Expr day,
Expr hour) |
static Expr |
Expr.dateFromParts(Expr year,
Expr month,
Expr day,
Expr hour,
Expr min,
Expr sec) |
static Expr |
Expr.dateFromParts(Expr year,
Expr month,
Expr day,
Expr hour,
Expr min,
Expr sec,
Expr ms) |
static Expr |
Expr.dateFromParts(Expr year,
Expr month,
Expr day,
Expr hour,
Expr min,
Expr sec,
Expr ms,
Expr timeZone) |
static Expr |
Expr.dateFromString(Expr dateString,
Expr format,
Expr timezone,
Expr onError,
Expr onNull) |
static Expr |
Expr.dateToParts(Expr date,
Expr timezone,
boolean iso8601) |
static Expr |
Expr.dateToString(Expr date,
Expr format,
Expr timezone,
Expr onNull) |
static Expr |
Expr.dayOfMonth(Expr date) |
static Expr |
Expr.dayOfWeek(Expr date) |
static Expr |
Expr.dayOfYear(Expr date) |
static Expr |
Expr.degreesToRadian(Expr e) |
static Expr |
Expr.divide(Expr divident,
Expr divisor) |
static Expr |
Expr.eq(Expr e1) |
static Expr |
Expr.eq(Expr e1,
Expr e2) |
static Expr |
Expr.exp(Expr e) |
static Expr |
Expr.expr(Expr expr) |
Group<T,R> |
Group.expr(String fld,
Expr e) |
static Expr |
Expr.filter(Expr inputArray,
String as,
Expr cond) |
static Expr |
Expr.first(Expr e) |
static Expr |
Expr.floor(Expr e) |
static Expr |
Expr.function(String code,
Expr args) |
static Expr |
Expr.function(String code,
Expr args,
String lang) |
Aggregator<T,R> |
AggregatorImpl.graphLookup(Class<?> type,
Expr startWith,
Enum connectFromField,
Enum connectToField,
String as,
Integer maxDepth,
String depthField,
Query restrictSearchWithMatch) |
Aggregator<T,R> |
Aggregator.graphLookup(Class<?> fromType,
Expr startWith,
Enum connectFromField,
Enum connectToField,
String as,
Integer maxDepth,
String depthField,
Query restrictSearchWithMatch) |
Aggregator<T,R> |
AggregatorImpl.graphLookup(Class<?> type,
Expr startWith,
String connectFromField,
String connectToField,
String as,
Integer maxDepth,
String depthField,
Query restrictSearchWithMatch) |
Aggregator<T,R> |
Aggregator.graphLookup(Class<?> fromType,
Expr startWith,
String connectFromField,
String connectToField,
String as,
Integer maxDepth,
String depthField,
Query restrictSearchWithMatch) |
Aggregator<T,R> |
AggregatorImpl.graphLookup(String fromCollection,
Expr startWith,
String connectFromField,
String connectToField,
String as,
Integer maxDepth,
String depthField,
Query restrictSearchWithMatch) |
Aggregator<T,R> |
Aggregator.graphLookup(String fromCollection,
Expr startWith,
String connectFromField,
String connectToField,
String as,
Integer maxDepth,
String depthField,
Query restrictSearchWithMatch) |
Group<T,R> |
AggregatorImpl.group(Expr id) |
Group<T,R> |
Aggregator.group(Expr id) |
static Expr |
Expr.gt(Expr e1) |
static Expr |
Expr.gt(Expr e1,
Expr e2) |
static Expr |
Expr.gte(Expr e1) |
static Expr |
Expr.gte(Expr e1,
Expr e2) |
static Expr |
Expr.hour(Expr date) |
static Expr |
Expr.ifNull(Expr toCheck,
Expr resultIfNull) |
static Expr |
Expr.in(Expr elem,
Expr array) |
static Expr |
Expr.indexOfArray(Expr array,
Expr search,
Expr start,
Expr end) |
static Expr |
Expr.indexOfBytes(Expr str,
Expr substr,
Expr start,
Expr end) |
static Expr |
Expr.indexOfCP(Expr str,
Expr substr,
Expr start,
Expr end) |
static Expr |
Expr.isArray(Expr array) |
static Expr |
Expr.isNumber(Expr e) |
static Expr |
Expr.isoDateFromParts(Expr isoWeekYear) |
static Expr |
Expr.isoDateFromParts(Expr isoWeekYear,
Expr isoWeek) |
static Expr |
Expr.isoDateFromParts(Expr isoWeekYear,
Expr isoWeek,
Expr isoDayOfWeek) |
static Expr |
Expr.isoDateFromParts(Expr isoWeekYear,
Expr isoWeek,
Expr isoDayOfWeek,
Expr hour) |
static Expr |
Expr.isoDateFromParts(Expr isoWeekYear,
Expr isoWeek,
Expr isoDayOfWeek,
Expr hour,
Expr min) |
static Expr |
Expr.isoDateFromParts(Expr isoWeekYear,
Expr isoWeek,
Expr isoDayOfWeek,
Expr hour,
Expr min,
Expr sec) |
static Expr |
Expr.isoDateFromParts(Expr isoWeekYear,
Expr isoWeek,
Expr isoDayOfWeek,
Expr hour,
Expr min,
Expr sec,
Expr ms) |
static Expr |
Expr.isoDateFromParts(Expr isoWeekYear,
Expr isoWeek,
Expr isoDayOfWeek,
Expr hour,
Expr min,
Expr sec,
Expr ms,
Expr timeZone) |
static Expr |
Expr.isoDayOfWeek(Expr date) |
static Expr |
Expr.isoWeek(Expr date) |
static Expr |
Expr.isoWeekYear(Expr date) |
static Expr |
Expr.last(Expr e) |
static Expr |
Expr.let(Map<String,Expr> vars,
Expr in) |
static Expr |
Expr.literal(Expr e) |
static Expr |
Expr.ln(Expr e) |
static Expr |
Expr.log(Expr num,
Expr base) |
static Expr |
Expr.log10(Expr e) |
static Expr |
Expr.lt(Expr e1) |
static Expr |
Expr.lt(Expr e1,
Expr e2) |
static Expr |
Expr.lte(Expr e1) |
static Expr |
Expr.lte(Expr e1,
Expr e2) |
static Expr |
Expr.ltrim(Expr str,
Expr charsToTrim) |
static Expr |
Expr.map(Expr inputArray,
Expr as,
Expr in) |
static Expr |
Expr.match(Expr expr) |
Aggregator<T,R> |
AggregatorImpl.match(Expr q) |
Aggregator<T,R> |
Aggregator.match(Expr q) |
static Expr |
Expr.max(Expr... e) |
static Expr |
Expr.max(Expr e) |
static Expr |
Expr.mergeObjects(Expr... docs) |
static Expr |
Expr.mergeObjects(Expr doc) |
static Expr |
Expr.millisecond(Expr date) |
static Expr |
Expr.min(Expr... e) |
static Expr |
Expr.min(Expr e) |
static Expr |
Expr.minute(Expr date) |
static Expr |
Expr.mod(Expr divident,
Expr divisor) |
static Expr |
Expr.month(Expr date) |
static Expr |
Expr.multiply(Expr e1,
Expr e2) |
static Expr |
Expr.ne(Expr e1) |
static Expr |
Expr.ne(Expr e1,
Expr e2) |
static Expr |
Expr.not(Expr expression) |
static Expr |
Expr.objectToArray(Expr obj) |
static Expr |
Expr.or(Expr... expressions) |
static Expr |
Expr.pow(Expr num,
Expr exponent) |
Aggregator<T,R> |
AggregatorImpl.project(String fld,
Expr e) |
Aggregator<T,R> |
Aggregator.project(String fld,
Expr e) |
static Expr |
Expr.push(Expr e) |
static Expr |
Expr.radiansToDegrees(Expr e) |
static Expr |
Expr.range(Expr start,
Expr end,
Expr step) |
Aggregator<T,R> |
AggregatorImpl.redact(Expr redact)
redact needs to resolve to $$DESCEND, $$PRUNE, or $$KEEP
System Variable Description
$$DESCEND $redact returns the fields at the current document level, excluding embedded documents.
|
Aggregator<T,R> |
Aggregator.redact(Expr expr)
see https://docs.mongodb.com/manual/reference/operator/aggregation/redact/
|
static Expr |
Expr.reduce(Expr inputArray,
Expr initValue,
Expr in) |
static Expr |
Expr.regex(Expr field,
Expr regex,
Expr options) |
static Expr |
Expr.regexFind(Expr input,
Expr regex,
Expr options) |
static Expr |
Expr.regexFindAll(Expr input,
Expr regex,
Expr options) |
static Expr |
Expr.regexMatch(Expr input,
Expr regex,
Expr options) |
static Expr |
Expr.replaceAll(Expr input,
Expr find,
Expr replacement) |
static Expr |
Expr.replaceOne(Expr input,
Expr find,
Expr replacement) |
Aggregator<T,R> |
AggregatorImpl.replaceRoot(Expr newRoot) |
Aggregator<T,R> |
Aggregator.replaceRoot(Expr newRoot) |
Aggregator<T,R> |
AggregatorImpl.replaceWith(Expr newDoc) |
Aggregator<T,R> |
Aggregator.replaceWith(Expr replacement)
Replaces the input document with the specified document.
|
static Expr |
Expr.reverseArray(Expr array) |
static Expr |
Expr.round(Expr e) |
static Expr |
Expr.rtrim(Expr str,
Expr charsToTrim) |
static Expr |
Expr.second(Expr date) |
static Expr |
Expr.setDifference(Expr e1,
Expr e2) |
static Expr |
Expr.setEquals(Expr... e) |
static Expr |
Expr.setIntersection(Expr... e) |
static Expr |
Expr.setIsSubset(Expr e1,
Expr e2) |
static Expr |
Expr.setUnion(Expr... e) |
static Expr |
Expr.sin(Expr e) |
static Expr |
Expr.size(Expr array) |
static Expr |
Expr.slice(Expr array,
Expr n) |
static Expr |
Expr.slice(Expr array,
Expr pos,
Expr n) |
Aggregator<T,R> |
AggregatorImpl.sortByCount(Expr sortby)
The $sortByCount stage is equivalent to the following $group + $sort sequence:
{ $group: { _id:
|
Aggregator<T,R> |
Aggregator.sortByCount(Expr countBy) |
static Expr |
Expr.split(Expr str,
Expr delimiter) |
static Expr |
Expr.sqrt(Expr e) |
static Expr |
Expr.stdDevPop(Expr... e) |
static Expr |
Expr.stdDevPop(Expr e) |
static Expr |
Expr.stdDevSamp(Expr... e) |
static Expr |
Expr.stdDevSamp(Expr e) |
static Expr |
Expr.strcasecmp(Expr e1,
Expr e2) |
static Expr |
Expr.strLenBytes(Expr str) |
static Expr |
Expr.strLenCP(Expr str) |
static Expr |
Expr.substr(Expr str,
Expr start,
Expr len) |
static Expr |
Expr.substrBytes(Expr str,
Expr index,
Expr count) |
static Expr |
Expr.substrCP(Expr str,
Expr cpIdx,
Expr cpCount) |
static Expr |
Expr.subtract(Expr e1,
Expr e2) |
static Expr |
Expr.sum(Expr... e) |
static Expr |
Expr.sum(Expr e) |
static Expr |
Expr.switchExpr(Map<Expr,Expr> branches,
Expr defaultCase) |
static Expr |
Expr.tan(Expr e) |
static Expr |
Expr.toBool(Expr e) |
static Expr |
Expr.toDate(Expr e) |
static Expr |
Expr.toDecimal(Expr e) |
static Expr |
Expr.toDouble(Expr e) |
static Expr |
Expr.toInt(Expr e) |
static Expr |
Expr.toLong(Expr e) |
static Expr |
Expr.toLower(Expr e) |
static Expr |
Expr.toObjectId(Expr e) |
static Expr |
Expr.toStr(Expr e) |
static Expr |
Expr.toUpper(Expr e) |
static Expr |
Expr.trim(Expr str,
Expr charsToTrim) |
static Expr |
Expr.trunc(Expr num,
Expr place) |
static Expr |
Expr.type(Expr e) |
Aggregator<T,R> |
AggregatorImpl.unwind(Expr listField) |
Aggregator<T,R> |
Aggregator.unwind(Expr listField) |
static Expr |
Expr.week(Expr date) |
static Expr |
Expr.year(Expr date) |
static Expr |
Expr.zip(List<Expr> inputs,
Expr useLongestLength,
Expr defaults) |
| Modifier and Type | Method and Description |
|---|---|
Aggregator<T,R> |
AggregatorImpl.bucket(Expr groupBy,
List<Expr> boundaries,
Expr preset,
Map<String,Expr> output)
Categorizes incoming documents into groups, called buckets, based on a specified expression and
bucket boundaries and outputs a document per each bucket.
|
Aggregator<T,R> |
AggregatorImpl.bucket(Expr groupBy,
List<Expr> boundaries,
Expr preset,
Map<String,Expr> output)
Categorizes incoming documents into groups, called buckets, based on a specified expression and
bucket boundaries and outputs a document per each bucket.
|
Aggregator<T,R> |
Aggregator.bucket(Expr groupBy,
List<Expr> boundaries,
Expr preset,
Map<String,Expr> output) |
Aggregator<T,R> |
Aggregator.bucket(Expr groupBy,
List<Expr> boundaries,
Expr preset,
Map<String,Expr> output) |
Aggregator<T,R> |
AggregatorImpl.bucketAuto(Expr groupBy,
int numBuckets,
Map<String,Expr> output,
Aggregator.BucketGranularity granularity) |
Aggregator<T,R> |
Aggregator.bucketAuto(Expr groupBy,
int numBuckets,
Map<String,Expr> output,
Aggregator.BucketGranularity granularity) |
Aggregator<T,R> |
AggregatorImpl.facetExpr(Map<String,Expr> facets) |
Aggregator<T,R> |
Aggregator.facetExpr(Map<String,Expr> param) |
static Expr |
Expr.let(Map<String,Expr> vars,
Expr in) |
Aggregator<T,R> |
AggregatorImpl.lookup(Class fromType,
Enum localField,
Enum foreignField,
String outputArray,
List<Expr> pipeline,
Map<String,Expr> let)
$lookup:
{
from:
|
Aggregator<T,R> |
AggregatorImpl.lookup(Class fromType,
Enum localField,
Enum foreignField,
String outputArray,
List<Expr> pipeline,
Map<String,Expr> let)
$lookup:
{
from:
|
Aggregator<T,R> |
Aggregator.lookup(Class fromType,
Enum localField,
Enum foreignField,
String outputArray,
List<Expr> pipeline,
Map<String,Expr> let) |
Aggregator<T,R> |
Aggregator.lookup(Class fromType,
Enum localField,
Enum foreignField,
String outputArray,
List<Expr> pipeline,
Map<String,Expr> let) |
Aggregator<T,R> |
AggregatorImpl.lookup(String fromCollection,
String localField,
String foreignField,
String outputArray,
List<Expr> pipeline,
Map<String,Expr> let) |
Aggregator<T,R> |
AggregatorImpl.lookup(String fromCollection,
String localField,
String foreignField,
String outputArray,
List<Expr> pipeline,
Map<String,Expr> let) |
Aggregator<T,R> |
Aggregator.lookup(String fromCollection,
String localField,
String foreignField,
String outputArray,
List<Expr> pipeline,
Map<String,Expr> let) |
Aggregator<T,R> |
Aggregator.lookup(String fromCollection,
String localField,
String foreignField,
String outputArray,
List<Expr> pipeline,
Map<String,Expr> let) |
static Expr |
Expr.mapExpr(Map<String,Expr> map) |
Aggregator<T,R> |
AggregatorImpl.merge(Class<?> intoCollection,
Map<String,Expr> let,
List<Map<String,Expr>> machedPipeline,
Aggregator.MergeActionWhenMatched matchAction,
Aggregator.MergeActionWhenNotMatched notMatchedAction,
String... onFields) |
Aggregator<T,R> |
AggregatorImpl.merge(Class<?> intoCollection,
Map<String,Expr> let,
List<Map<String,Expr>> machedPipeline,
Aggregator.MergeActionWhenMatched matchAction,
Aggregator.MergeActionWhenNotMatched notMatchedAction,
String... onFields) |
Aggregator<T,R> |
Aggregator.merge(Class<?> intoCollection,
Map<String,Expr> let,
List<Map<String,Expr>> machedPipeline,
Aggregator.MergeActionWhenMatched matchAction,
Aggregator.MergeActionWhenNotMatched notMatchedAction,
String... onFields) |
Aggregator<T,R> |
Aggregator.merge(Class<?> intoCollection,
Map<String,Expr> let,
List<Map<String,Expr>> machedPipeline,
Aggregator.MergeActionWhenMatched matchAction,
Aggregator.MergeActionWhenNotMatched notMatchedAction,
String... onFields) |
Aggregator<T,R> |
AggregatorImpl.merge(String intoCollection,
Map<String,Expr> let,
List<Map<String,Expr>> machedPipeline,
Aggregator.MergeActionWhenNotMatched notMatchedAction,
String... onFields) |
Aggregator<T,R> |
AggregatorImpl.merge(String intoCollection,
Map<String,Expr> let,
List<Map<String,Expr>> machedPipeline,
Aggregator.MergeActionWhenNotMatched notMatchedAction,
String... onFields) |
Aggregator<T,R> |
Aggregator.merge(String intoCollection,
Map<String,Expr> let,
List<Map<String,Expr>> machedPipeline,
Aggregator.MergeActionWhenNotMatched notMatchedAction,
String... onFields) |
Aggregator<T,R> |
Aggregator.merge(String intoCollection,
Map<String,Expr> let,
List<Map<String,Expr>> machedPipeline,
Aggregator.MergeActionWhenNotMatched notMatchedAction,
String... onFields) |
static Expr |
Expr.project(Map<String,Expr> expr) |
Aggregator<T,R> |
AggregatorImpl.set(Map<String,Expr> param)
Adds new fields to documents.
|
Aggregator<T,R> |
Aggregator.set(Map<String,Expr> param) |
static Expr |
Expr.switchExpr(Map<Expr,Expr> branches,
Expr defaultCase) |
static Expr |
Expr.switchExpr(Map<Expr,Expr> branches,
Expr defaultCase) |
static Expr |
Expr.zip(List<Expr> inputs,
Expr useLongestLength,
Expr defaults) |
| Constructor and Description |
|---|
Group(Aggregator<T,R> ag,
Expr id) |
| Modifier and Type | Method and Description |
|---|---|
Aggregator<T,R> |
InMemAggregator.bucket(Expr groupBy,
List<Expr> boundaries,
Expr preset,
Map<String,Expr> output)
Categorizes incoming documents into groups, called buckets, based on a specified expression and
bucket boundaries and outputs a document per each bucket.
|
Aggregator<T,R> |
InMemAggregator.bucketAuto(Expr groupBy,
int numBuckets,
Map<String,Expr> output,
Aggregator.BucketGranularity granularity) |
Aggregator<T,R> |
InMemAggregator.graphLookup(Class<?> type,
Expr startWith,
Enum connectFromField,
Enum connectToField,
String as,
Integer maxDepth,
String depthField,
Query restrictSearchWithMatch) |
Aggregator<T,R> |
InMemAggregator.graphLookup(Class<?> type,
Expr startWith,
String connectFromField,
String connectToField,
String as,
Integer maxDepth,
String depthField,
Query restrictSearchWithMatch) |
Aggregator<T,R> |
InMemAggregator.graphLookup(String fromCollection,
Expr startWith,
String connectFromField,
String connectToField,
String as,
Integer maxDepth,
String depthField,
Query restrictSearchWithMatch) |
Group<T,R> |
InMemAggregator.group(Expr id) |
Aggregator<T,R> |
InMemAggregator.match(Expr q) |
Aggregator<T,R> |
InMemAggregator.project(String fld,
Expr e) |
Aggregator<T,R> |
InMemAggregator.redact(Expr redact)
redact needs to resolve to $$DESCEND, $$PRUNE, or $$KEEP
System Variable Description
$$DESCEND $redact returns the fields at the current document level, excluding embedded documents.
|
Aggregator<T,R> |
InMemAggregator.replaceRoot(Expr newRoot) |
Aggregator<T,R> |
InMemAggregator.replaceWith(Expr newDoc) |
Aggregator<T,R> |
InMemAggregator.sortByCount(Expr sortby)
The $sortByCount stage is equivalent to the following $group + $sort sequence:
{ $group: { _id:
|
Aggregator<T,R> |
InMemAggregator.unwind(Expr field) |
| Modifier and Type | Method and Description |
|---|---|
Aggregator<T,R> |
InMemAggregator.bucket(Expr groupBy,
List<Expr> boundaries,
Expr preset,
Map<String,Expr> output)
Categorizes incoming documents into groups, called buckets, based on a specified expression and
bucket boundaries and outputs a document per each bucket.
|
Aggregator<T,R> |
InMemAggregator.bucket(Expr groupBy,
List<Expr> boundaries,
Expr preset,
Map<String,Expr> output)
Categorizes incoming documents into groups, called buckets, based on a specified expression and
bucket boundaries and outputs a document per each bucket.
|
Aggregator<T,R> |
InMemAggregator.bucketAuto(Expr groupBy,
int numBuckets,
Map<String,Expr> output,
Aggregator.BucketGranularity granularity) |
Aggregator<T,R> |
InMemAggregator.facetExpr(Map<String,Expr> facets) |
Aggregator<T,R> |
InMemAggregator.lookup(Class fromType,
Enum localField,
Enum foreignField,
String outputArray,
List<Expr> pipeline,
Map<String,Expr> let)
$lookup:
{
from:
|
Aggregator<T,R> |
InMemAggregator.lookup(Class fromType,
Enum localField,
Enum foreignField,
String outputArray,
List<Expr> pipeline,
Map<String,Expr> let)
$lookup:
{
from:
|
Aggregator<T,R> |
InMemAggregator.lookup(String fromCollection,
String localField,
String foreignField,
String outputArray,
List<Expr> pipeline,
Map<String,Expr> let) |
Aggregator<T,R> |
InMemAggregator.lookup(String fromCollection,
String localField,
String foreignField,
String outputArray,
List<Expr> pipeline,
Map<String,Expr> let) |
Aggregator<T,R> |
InMemAggregator.merge(Class<?> intoCollection,
Map<String,Expr> let,
List<Map<String,Expr>> machedPipeline,
Aggregator.MergeActionWhenMatched matchAction,
Aggregator.MergeActionWhenNotMatched notMatchedAction,
String... onFields) |
Aggregator<T,R> |
InMemAggregator.merge(Class<?> intoCollection,
Map<String,Expr> let,
List<Map<String,Expr>> machedPipeline,
Aggregator.MergeActionWhenMatched matchAction,
Aggregator.MergeActionWhenNotMatched notMatchedAction,
String... onFields) |
Aggregator<T,R> |
InMemAggregator.merge(String intoCollection,
Map<String,Expr> let,
List<Map<String,Expr>> machedPipeline,
Aggregator.MergeActionWhenNotMatched notMatchedAction,
String... onFields) |
Aggregator<T,R> |
InMemAggregator.merge(String intoCollection,
Map<String,Expr> let,
List<Map<String,Expr>> machedPipeline,
Aggregator.MergeActionWhenNotMatched notMatchedAction,
String... onFields) |
Aggregator<T,R> |
InMemAggregator.set(Map<String,Expr> param)
Adds new fields to documents.
|
| Modifier and Type | Method and Description |
|---|---|
Query<T> |
QueryImpl.expr(Expr exp) |
Query<T> |
Query.expr(Expr exp) |
void |
QueryImpl.pull(Enum field,
Expr value) |
void |
Query.pull(Enum field,
Expr value) |
void |
QueryImpl.pull(Enum field,
Expr value,
boolean upsert,
boolean multiple) |
void |
Query.pull(Enum field,
Expr value,
boolean upsert,
boolean multiple) |
void |
QueryImpl.pull(Enum field,
Expr value,
boolean upsert,
boolean multiple,
AsyncOperationCallback<T> cb) |
void |
Query.pull(Enum field,
Expr value,
boolean upsert,
boolean multiple,
AsyncOperationCallback<T> cb) |
Copyright © 2022. All rights reserved.