Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public void serialize(OutputStream outputStream) throws IOException {

for (Entry<String, Integer> stringIntegerEntry : deviceToIndex.entrySet()) {
String deviceName = stringIntegerEntry.getKey();
deviceName = cachedDevicePool.computeIfAbsent(deviceName, k -> k);
int index = stringIntegerEntry.getValue();
ReadWriteIOUtils.write(deviceName, outputStream);
ReadWriteIOUtils.write(index, outputStream);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public FileTimeIndex(Set<String> devices, long startTime, long endTime) {
public void serialize(OutputStream outputStream) throws IOException {
ReadWriteIOUtils.write(devices.size(), outputStream);
for (String device : devices) {
device = cachedDevicePool.computeIfAbsent(device, k -> k);
ReadWriteIOUtils.write(device, outputStream);
}
ReadWriteIOUtils.write(startTime, outputStream);
Expand Down