-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bugs in BinarySearcherOverPlainSource where the record offset a…
…nd record header cache could go out of sync
- Loading branch information
Showing
5 changed files
with
60 additions
and
13 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...sw-commons-io-buffers/src/main/java/org/aksw/commons/io/input/ReadableChannelTracker.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.aksw.commons.io.input; | ||
|
||
import java.io.IOException; | ||
|
||
public class ReadableChannelTracker<A, X extends ReadableChannel<A>> | ||
extends ReadableChannelDecoratorBase<A, X> | ||
{ | ||
protected long totalReadBytes; | ||
protected long totalReadDuration; | ||
|
||
public ReadableChannelTracker(X delegate) { | ||
super(delegate); | ||
} | ||
|
||
// TODO Track number of bytes read + time spent | ||
// On close add the amount to the source - so stats are best accessed on the source. | ||
// @Override | ||
// public int read(A array, int position, int length) throws IOException { | ||
// } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters