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
-
Method Summary
Modifier and TypeMethodDescriptionintaddToOffset(long numBytesWritten) intvoidclose()intintbooleanisOpen()intwrite(ByteBuffer buffer) longwrite(ByteBuffer[] srcs) longwrite(ByteBuffer[] srcs, int offset, int length)
-
Method Details
-
getFileNum
public int getFileNum() -
getCurrOffset
public int getCurrOffset() -
bytesLeft
public int bytesLeft() -
write
- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
write
- Specified by:
writein interfaceGatheringByteChannel- Throws:
IOException
-
write
- Specified by:
writein interfaceGatheringByteChannel- Throws:
IOException
-
addToOffset
public int addToOffset(long numBytesWritten) -
isOpen
public boolean isOpen() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-