mirror of
https://github.com/apache/druid.git
synced 2025-02-17 07:25:02 +00:00
optimize FileWriteOutBytes to avoid high sys cpu -- remove IOException in writeOutBytes.size
This commit is contained in:
parent
149e08c091
commit
965f742148
@ -45,7 +45,7 @@ public abstract class WriteOutBytes extends OutputStream implements WritableByte
|
|||||||
/**
|
/**
|
||||||
* Returns the number of bytes written to this WriteOutBytes so far.
|
* Returns the number of bytes written to this WriteOutBytes so far.
|
||||||
*/
|
*/
|
||||||
public abstract long size() throws IOException;
|
public abstract long size();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Takes all bytes that are written to this WriteOutBytes so far and writes them into the given channel.
|
* Takes all bytes that are written to this WriteOutBytes so far and writes them into the given channel.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user