Skip to content

Instantly share code, notes, and snippets.

@iht
Created May 24, 2020 17:26
Show Gist options
  • Save iht/f68cc010fa10f9da9a564c38201e7ab9 to your computer and use it in GitHub Desktop.
Save iht/f68cc010fa10f9da9a564c38201e7ab9 to your computer and use it in GitHub Desktop.
public static String transformKey(String key, Row record) {
/**
* TODO: Change the existing key here, by a new key
*
* <p>Here we just reverse the key, as a demo. Ideally, you should test different strategies,
* test the performance obtained with each key transform strategy, and then decide how you need
* to change the keys.
*/
return StringUtils.reverse(key);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment