Class FileSmoosher.Outer
- java.lang.Object
-
- org.apache.druid.java.util.common.io.smoosh.FileSmoosher.Outer
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,GatheringByteChannel,WritableByteChannel,SmooshedWriter
- Enclosing class:
- FileSmoosher
public static class FileSmoosher.Outer extends Object implements SmooshedWriter
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddToOffset(long numBytesWritten)intbytesLeft()voidclose()intgetCurrOffset()intgetFileNum()booleanisOpen()intwrite(ByteBuffer buffer)longwrite(ByteBuffer[] srcs)longwrite(ByteBuffer[] srcs, int offset, int length)
-
-
-
Method Detail
-
getFileNum
public int getFileNum()
-
getCurrOffset
public int getCurrOffset()
-
bytesLeft
public int bytesLeft()
-
write
public int write(ByteBuffer buffer) throws IOException
- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
write
public long write(ByteBuffer[] srcs, int offset, int length) throws IOException
- Specified by:
writein interfaceGatheringByteChannel- Throws:
IOException
-
write
public long write(ByteBuffer[] srcs) throws IOException
- Specified by:
writein interfaceGatheringByteChannel- Throws:
IOException
-
addToOffset
public int addToOffset(long numBytesWritten)
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-