public enum RedactOption extends Enum<RedactOption>
$redact
condition within the Aggregate
pipeline.Enum Constant and Description |
---|
DESCEND
Option for the redact to descend into the sub-documents of the current
document.
|
KEEP
Option to keep the current document and not inspect the sub-documents.
|
PRUNE
Option to prune the current document.
|
Modifier and Type | Method and Description |
---|---|
String |
getToken()
Returns the token for the option.
|
static RedactOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RedactOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RedactOption DESCEND
public static final RedactOption KEEP
public static final RedactOption PRUNE
public static RedactOption[] values()
for (RedactOption c : RedactOption.values()) System.out.println(c);
public static RedactOption valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic String getToken()
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.