Skip to content

Commit 33ab428

Browse files
committed
one more deprecation
1 parent 4a19714 commit 33ab428

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* `keyStripInvalidChars` is deprecated in favor of `keyRemoveInvalidChars`
77
* `keyValueStripQuotes` is deprecated in favor of `keyValueRemoveQuotes`
88
* `removeValuesThatAre` is deprecated in favor of `valueRemoveIf`
9+
* `valueSplitOnDelimiter` is deprecated in favor of `valueStringSplitOnDelimiter`
910
* Added some factories for common `Transformers`
1011
* `keyEnsureCaseFormat` can be used to conver ALL keys to a particular case format.
1112
* `keyWhitespaceToUnderscore` replace all whitespace characters with underscores in ALL keys

src/main/java/com/cinchapi/etl/Transformers.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,9 +694,26 @@ public static Transformer valueNullifyIfEmpty(Empty empty) {
694694
* @param delimiter the character on which to split the String
695695
* @param options the optional {@link SplitOption SplitOptions}
696696
* @return the {@link Transformer}
697+
* @deprecated use
698+
* {@link #valueStringSplitOnDelimiter(char, SplitOption...)}
699+
* instead
697700
*/
701+
@Deprecated
698702
public static Transformer valueSplitOnDelimiter(char delimiter,
699703
SplitOption... options) {
704+
return valueStringSplitOnDelimiter(delimiter, options);
705+
}
706+
707+
/**
708+
* Return a {@link Transformer} that splits a String value into multiple
709+
* strings that are all mapped from the original key.
710+
*
711+
* @param delimiter the character on which to split the String
712+
* @param options the optional {@link SplitOption SplitOptions}
713+
* @return the {@link Transformer}
714+
*/
715+
public static Transformer valueStringSplitOnDelimiter(char delimiter,
716+
SplitOption... options) {
700717
return (key, value) -> {
701718
if(value instanceof String) {
702719
StringSplitter splitter = new StringSplitter((String) value,

0 commit comments

Comments
 (0)