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 voidadd(Blob blob)voidclose()longfileSize()voidfinish()longfooterSize()longlength()Returns the length of this file.Metricsmetrics()ReturnsMetricsfor 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:
 addin interfaceFileAppender<Blob>
 
- 
metrics
public Metrics metrics()
Description copied from interface:FileAppenderReturnsMetricsfor this file. Only valid after the file is closed.- Specified by:
 metricsin interfaceFileAppender<Blob>
 
- 
length
public long length()
Description copied from interface:FileAppenderReturns the length of this file.- Specified by:
 lengthin interfaceFileAppender<Blob>
 
- 
close
public void close() throws java.io.IOException- Specified by:
 closein interfacejava.lang.AutoCloseable- Specified by:
 closein 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()
 
 - 
 
 -