File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
src/main/java/com/cinchapi/etl Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments