Skip to content

Commit

Permalink
Remove useless PrimaryKeyIngestPosition.convert() (#33353)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu authored Oct 22, 2024
1 parent 1c76b9b commit 1a494de
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@ public interface PrimaryKeyIngestPosition<T> extends IngestPosition {
*/
T getEndValue();

/**
* Convert value.
* @param value value to be converted
* @return converted value
*/
T convert(String value);

/**
* Get type.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ public Long getEndValue() {
return endValue;
}

@Override
public Long convert(final String value) {
return Long.parseLong(value);
}

@Override
public char getType() {
return 'i';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ public StringPrimaryKeyIngestPosition(final String beginValue, final String endV
this.endValue = Strings.emptyToNull(endValue);
}

@Override
public String convert(final String value) {
return value;
}

@Override
public char getType() {
return 's';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ public Void getEndValue() {
return null;
}

@Override
public Void convert(final String value) {
throw new UnsupportedOperationException("");
}

@Override
public char getType() {
return 'u';
Expand Down

0 comments on commit 1a494de

Please sign in to comment.