Package io.deephaven.parquet.base
Class ColumnWriterImpl
java.lang.Object
io.deephaven.parquet.base.ColumnWriterImpl
- All Implemented Interfaces:
ColumnWriter,SafeCloseable,AutoCloseable
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddDictionaryPage(@NotNull Object dictionaryValues, int valuesCount) Add a dictionary page to the file.voidaddPage(@NotNull Object pageData, int valuesCount, @NotNull org.apache.parquet.column.statistics.Statistics<?> statistics) Add a page (potentially containing nulls) to the file.voidaddPageNoNulls(@NotNull Object pageData, int valuesCount, @NotNull org.apache.parquet.column.statistics.Statistics<?> statistics) Add a page with no nulls to the file.voidaddVectorPage(@NotNull Object pageData, @NotNull IntBuffer repeatCount, int nonNullValueCount, @NotNull org.apache.parquet.column.statistics.Statistics<?> statistics) Add a vector page to the file.voidclose()org.apache.parquet.column.ColumnDescriptororg.apache.parquet.column.statistics.Statistics<?>getStats()Return the current statistics.voidReset the statistics for this column.voidwritePageV2(int rowCount, int nullCount, int valueCount, org.apache.parquet.bytes.BytesInput repetitionLevels, org.apache.parquet.bytes.BytesInput definitionLevels, ByteBuffer data)
-
Method Details
-
addPageNoNulls
public void addPageNoNulls(@NotNull @NotNull Object pageData, int valuesCount, @NotNull @NotNull org.apache.parquet.column.statistics.Statistics<?> statistics) throws IOException Description copied from interface:ColumnWriterAdd a page with no nulls to the file.- Specified by:
addPageNoNullsin interfaceColumnWriter- Throws:
IOException
-
addDictionaryPage
public void addDictionaryPage(@NotNull @NotNull Object dictionaryValues, int valuesCount) throws IOException Description copied from interface:ColumnWriterAdd a dictionary page to the file.- Specified by:
addDictionaryPagein interfaceColumnWriter- Throws:
IOException
-
addPage
public void addPage(@NotNull @NotNull Object pageData, int valuesCount, @NotNull @NotNull org.apache.parquet.column.statistics.Statistics<?> statistics) throws IOException Description copied from interface:ColumnWriterAdd a page (potentially containing nulls) to the file.- Specified by:
addPagein interfaceColumnWriter- Throws:
IOException
-
addVectorPage
public void addVectorPage(@NotNull @NotNull Object pageData, @NotNull @NotNull IntBuffer repeatCount, int nonNullValueCount, @NotNull @NotNull org.apache.parquet.column.statistics.Statistics<?> statistics) throws IOException Description copied from interface:ColumnWriterAdd a vector page to the file.- Specified by:
addVectorPagein interfaceColumnWriter- Throws:
IOException
-
writePageV2
public void writePageV2(int rowCount, int nullCount, int valueCount, org.apache.parquet.bytes.BytesInput repetitionLevels, org.apache.parquet.bytes.BytesInput definitionLevels, ByteBuffer data) throws IOException - Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSafeCloseable
-
getColumn
public org.apache.parquet.column.ColumnDescriptor getColumn() -
resetStats
public void resetStats()Description copied from interface:ColumnWriterReset the statistics for this column. This must be called between each row group.- Specified by:
resetStatsin interfaceColumnWriter
-
getStats
public org.apache.parquet.column.statistics.Statistics<?> getStats()Description copied from interface:ColumnWriterReturn the current statistics.- Specified by:
getStatsin interfaceColumnWriter
-