Skip to content

Commit

Permalink
Removed methods for simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
dlmarion committed Jan 8, 2025
1 parent 5d0ff7f commit acfa49f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ private static class GSonData {

public String toJson() {
GSonData jData = new GSonData();
jData.inputs = jobFiles.stream().map(stf -> stf.toTabletFileCqMetadataGson()).collect(toList());
jData.inputs =
jobFiles.stream().map(stf -> new TabletFileCqMetadataGson(stf)).collect(toList());
jData.tmp = new TabletFileCqMetadataGson(compactTmpName);
jData.compactor = compactorId;
jData.kind = kind.name();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,17 +315,4 @@ StoredTabletFile toStoredTabletFile() {
}
}

static StoredTabletFile fomTabletFileCqMetadataGson(String serialized) {
return new StoredTabletFile(deserialize(serialized));
}

TabletFileCqMetadataGson toTabletFileCqMetadataGson() {
requireKeyExtentDataRange(range);
final TabletFileCqMetadataGson metadata = new TabletFileCqMetadataGson();
metadata.path = Objects.requireNonNull(path).toString();
metadata.startRow = encodeRow(range.getStartKey());
metadata.endRow = encodeRow(range.getEndKey());
return metadata;
}

}

0 comments on commit acfa49f

Please sign in to comment.