Permalink
Browse files

Reintroducing UnionDataSchema#getType() to ease the migration to Unio…

…nDataSchema#getTypeByMemberKey().
  • Loading branch information...
saponniah committed Jul 17, 2017
1 parent c2d44a8 commit 09242287e255b383f378d0bf1c6f76191a098619
Showing with 24 additions and 1 deletion.
  1. +7 −0 CHANGELOG
  2. +16 −0 data/src/main/java/com/linkedin/data/schema/UnionDataSchema.java
  3. +1 −1 gradle.properties
View
@@ -1,8 +1,15 @@
12.0.3
------
12.0.2
------
(RB=1005059)
Logs a warning if maxResponseSize greater than max int is set to the HttpNettyChannelPoolFactory
(RB=1042879)
Reintroducing UnionDataSchema#getType() to ease the migration to UnionDataSchema#getTypeByMemberKey().
12.0.1
------
(RB=1034793)
@@ -354,6 +354,22 @@ public boolean contains(String memberKey)
return _memberKeyToIndexMap.containsKey(memberKey);
}
/**
* Returns the {@link DataSchema} for a member identified by its member key returned
* from {@link Member#getUnionMemberKey()}.
*
* @param memberKey Union member key of the member.
* @return the {@link DataSchema} if type is a member of the union, else return null.
*
* @deprecated Replaced by {@link #getTypeByMemberKey(String)}. This method exists only to help during the
* migration phase. It will be removed in the later versions and SHOULD NOT be used for any new use cases.
*/
@Deprecated
public DataSchema getType(String memberKey)
{
return getTypeByMemberKey(memberKey);
}
/**
* Returns the {@link DataSchema} for a member identified by its member key returned
* from {@link Member#getUnionMemberKey()}.
View
@@ -1,4 +1,4 @@
version=12.0.1
version=12.0.2
sonatypeUsername=please_set_in_home_dir_if_uploading_to_maven_central
sonatypePassword=please_set_in_home_dir_if_uploading_to_maven_central

0 comments on commit 0924228

Please sign in to comment.