Skip to content

Commit

Permalink
More removals
Browse files Browse the repository at this point in the history
  • Loading branch information
mineralntl committed Dec 4, 2024
1 parent 3818b3d commit e8fec78
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ private Document flatten(List<Document> documents) {
attribute.setColumnVisibility(entry.getValue().getColumnVisibility());
// Call copy() on the GroupingTypeAttribute to get a plain TypeAttribute instead of a GroupingTypeAttribute that is package protected and won't
// serialize.
flattened.put(entry.getKey() + "." + Integer.toHexString(context).toUpperCase(), (TypeAttribute) attribute.copy(), true, false);
flattened.put(entry.getKey() + "." + Integer.toHexString(context).toUpperCase(), (TypeAttribute) attribute.copy(), true);
}
// Increment the context by one.
context++;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public Map.Entry<Key,Document> apply(@Nullable Map.Entry<Key,Document> keyDocume
for (String mappedField : mappedFields) {
if (!mappedField.equals(baseField)) {
String newField = field.replace(baseField, mappedField);
document.put(newField, document.get(field), this.includeGroupingContext, this.reducedResponse);
document.put(newField, document.get(field), this.includeGroupingContext);
}
}
if (!mappedFields.contains(baseField)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1163,9 +1163,9 @@ public void addEntryTo(Document document) {
if (attributes.isEmpty()) {
throw new IllegalArgumentException("No attributes set for document entry");
} else if (attributes.size() == 1) {
document.put(fieldName, this.attributes.get(0), true, false);
document.put(fieldName, this.attributes.get(0), true);
} else {
document.put(fieldName, new Attributes(this.attributes, true), true, false);
document.put(fieldName, new Attributes(this.attributes, true), true);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ public void renameWithGroupingContextAndMultipleMappings() throws MarkingFunctio
fieldMap.add("field1=field6");

Document d = new Document();
d.put("field1.field.11", new Numeric("1", key, true), true, false);
d.put("field2.field.12", new Numeric("2", key, true), true, false);
d.put("field3.field.13", new Numeric("3", key, true), true, false);
d.put("field1.field.11", new Numeric("1", key, true), true);
d.put("field2.field.12", new Numeric("2", key, true), true);
d.put("field3.field.13", new Numeric("3", key, true), true);

DocumentTransform transformer = new FieldRenameTransform(fieldMap, true, false);

Expand Down

0 comments on commit e8fec78

Please sign in to comment.