Package org.apache.iceberg.puffin
Class PuffinWriter
- java.lang.Object
-
- org.apache.iceberg.puffin.PuffinWriter
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,FileAppender<Blob>
public class PuffinWriter extends java.lang.Object implements FileAppender<Blob>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Blob blob)
void
close()
long
fileSize()
void
finish()
long
footerSize()
long
length()
Returns the length of this file.Metrics
metrics()
ReturnsMetrics
for this file.java.util.List<BlobMetadata>
writtenBlobsMetadata()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.iceberg.io.FileAppender
addAll, addAll, splitOffsets
-
-
-
-
Method Detail
-
add
public void add(Blob blob)
- Specified by:
add
in interfaceFileAppender<Blob>
-
metrics
public Metrics metrics()
Description copied from interface:FileAppender
ReturnsMetrics
for this file. Only valid after the file is closed.- Specified by:
metrics
in interfaceFileAppender<Blob>
-
length
public long length()
Description copied from interface:FileAppender
Returns the length of this file.- Specified by:
length
in interfaceFileAppender<Blob>
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
finish
public void finish() throws java.io.IOException
- Throws:
java.io.IOException
-
footerSize
public long footerSize()
-
fileSize
public long fileSize()
-
writtenBlobsMetadata
public java.util.List<BlobMetadata> writtenBlobsMetadata()
-
-