public static class FieldSelector.FieldSelectorBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
fullyQualifiedFieldNames |
private String |
fullyQualifiedFieldReplacements |
| Modifier | Constructor and Description |
|---|---|
private |
FieldSelectorBuilder() |
| Modifier and Type | Method and Description |
|---|---|
FieldSelector |
build()
Builds the filter selector that returns the field filter for a given collection identifier, using the comma-separated
list of fully-qualified field names (for details, see
MongoDbConnectorConfig.FIELD_EXCLUDE_LIST) defining
which fields (if any) should be excluded, and using the comma-separated list of fully-qualified field replacements
(for details, see MongoDbConnectorConfig.FIELD_RENAMES) defining which fields (if any) should be
renamed. |
FieldSelector.FieldSelectorBuilder |
excludeFields(String fullyQualifiedFieldNames)
Specifies the comma-separated list of fully-qualified field names that should be included.
|
private void |
parse(String value,
Function<String,FieldSelector.Path> pathCreator,
List<FieldSelector.Path> result) |
private String[] |
parseIntoParts(String name,
String value,
Predicate<Integer> lengthPredicate,
Pattern delimiterPattern) |
FieldSelector.FieldSelectorBuilder |
renameFields(String fullyQualifiedFieldReplacements)
Specifies the comma-separated list of fully-qualified field replacements to rename fields.
|
private String[] |
selectFieldPartAsNodes(String[] expressionNodes) |
private Pattern |
selectNamespacePartAsPattern(String[] expressionNodes) |
private String |
toRegex(String value) |
private String fullyQualifiedFieldNames
private String fullyQualifiedFieldReplacements
public FieldSelector.FieldSelectorBuilder excludeFields(String fullyQualifiedFieldNames)
fullyQualifiedFieldNames - the comma-separated list of fully-qualified field names to exclude; may be
null or emptynullpublic FieldSelector.FieldSelectorBuilder renameFields(String fullyQualifiedFieldReplacements)
fullyQualifiedFieldReplacements - the comma-separated list of fully-qualified field replacements to rename
fields; may be null or emptynullpublic FieldSelector build()
MongoDbConnectorConfig.FIELD_EXCLUDE_LIST) defining
which fields (if any) should be excluded, and using the comma-separated list of fully-qualified field replacements
(for details, see MongoDbConnectorConfig.FIELD_RENAMES) defining which fields (if any) should be
renamed.private void parse(String value, Function<String,FieldSelector.Path> pathCreator, List<FieldSelector.Path> result)
private String[] parseIntoParts(String name, String value, Predicate<Integer> lengthPredicate, Pattern delimiterPattern)
Copyright © 2020 JBoss by Red Hat. All rights reserved.