Skip to content

Commit

Permalink
SOLR-15582: Remove deprecated APIs in solrj Tuple class. (apache#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpoerschke authored Jun 22, 2024
1 parent 2193374 commit 79cd576
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions solr/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ Other Changes

* SOLR-17279: Introduce SecurityJson.java file to Test Framework to consolidate setting up authentication in tests. (Rudy Seitz via Eric Pugh)

* SOLR-15582: Remove deprecated APIs in solrj Tuple class. (Christine Poerschke via Eric Pugh)

================== 9.7.0 ==================
New Features
---------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,13 @@ public class Tuple implements Cloneable, MapWriter {
*/
public boolean EXCEPTION;

/** Tuple fields. */
private final Map<String, Object> fields = CollectionUtil.newHashMap(2);

/** External serializable field names. */
private List<String> fieldNames;

/** Mapping of external field names to internal tuple field names. */
private Map<String, String> fieldLabels;

public Tuple() {
Expand Down Expand Up @@ -242,7 +247,7 @@ public void setFieldLabels(Map<String, String> fieldLabels) {

/**
* A list of field names to serialize. This list (together with the mapping in {@link
* #getFieldLabels()} determines what tuple values are serialized and their external (serialized)
* #getFieldLabels()}) determines what tuple values are serialized and their external (serialized)
* names.
*
* @return list of external field names or null
Expand Down Expand Up @@ -279,8 +284,9 @@ public Tuple clone() {
}

/**
* The other tuples fields and fieldLabels will be putAll'd directly to this's fields and
* fieldLabels while other's fieldNames will be added such that duplicates aren't present.
* The other tuples fields and fieldLabels will be merged via putAll directly into this Tuple's
* fields and fieldLabels while other's fieldNames will be added such that duplicates aren't
* present.
*
* @param other Tuple to be merged into this.
*/
Expand Down

0 comments on commit 79cd576

Please sign in to comment.