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 int
addToOffset(long numBytesWritten)
int
bytesLeft()
void
close()
int
getCurrOffset()
int
getFileNum()
boolean
isOpen()
int
write(ByteBuffer buffer)
long
write(ByteBuffer[] srcs)
long
write(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:
write
in interfaceWritableByteChannel
- Throws:
IOException
-
write
public long write(ByteBuffer[] srcs, int offset, int length) throws IOException
- Specified by:
write
in interfaceGatheringByteChannel
- Throws:
IOException
-
write
public long write(ByteBuffer[] srcs) throws IOException
- Specified by:
write
in interfaceGatheringByteChannel
- Throws:
IOException
-
addToOffset
public int addToOffset(long numBytesWritten)
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-