Package io.deephaven.parquet.base
Class ColumnWriterImpl
java.lang.Object
io.deephaven.parquet.base.ColumnWriterImpl
- All Implemented Interfaces:
SafeCloseable,ColumnWriter,AutoCloseable
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddDictionaryPage(@NotNull Object dictionaryValues, int valuesCount) Add a page of dictionary data to the column.voidAdd a page of values which may contain null values.voidaddPageNoNulls(@NotNull Object pageData, int valuesCount) Add a page of data that does not contain null values.voidaddVectorPage(@NotNull Object pageData, @NotNull IntBuffer repeatCount, int nonNullValueCount) Encode a page of vector values.voidclose()org.apache.parquet.column.ColumnDescriptororg.apache.parquet.internal.column.columnindex.OffsetIndex@NotNull org.apache.parquet.column.statistics.Statistics<?>Get theStatisticsobject into which to encode min/max/null count information for the footer.voidwriteDictionaryPage(ByteBuffer dictionaryBuffer, int valuesCount)
-
Method Details
-
addPageNoNulls
Description copied from interface:ColumnWriterAdd a page of data that does not contain null values.- Specified by:
addPageNoNullsin interfaceColumnWriter- Parameters:
pageData- the raw page datavaluesCount- the count of values in the page.- Throws:
IOException- if there is an error writing values.
-
addDictionaryPage
public void addDictionaryPage(@NotNull @NotNull Object dictionaryValues, int valuesCount) throws IOException Description copied from interface:ColumnWriterAdd a page of dictionary data to the column.- Specified by:
addDictionaryPagein interfaceColumnWriter- Parameters:
dictionaryValues- the values in the dictionaryvaluesCount- the count of values- Throws:
IOException- if there is an error writing dictionary values.
-
writeDictionaryPage
- Throws:
IOException
-
addPage
Description copied from interface:ColumnWriterAdd a page of values which may contain null values.- Specified by:
addPagein interfaceColumnWriter- Parameters:
pageData- the raw page data.valuesCount- the total count of items- Throws:
IOException- if there is an error writing values.
-
addVectorPage
public void addVectorPage(@NotNull @NotNull Object pageData, @NotNull @NotNull IntBuffer repeatCount, int nonNullValueCount) throws IOException Description copied from interface:ColumnWriterEncode a page of vector values.- Specified by:
addVectorPagein interfaceColumnWriter- Parameters:
pageData- the raw flattened page datarepeatCount- an int buffer where each int is the length of a single source vector.nonNullValueCount- the total number of vectors to encode- Throws:
IOException- if there is an error writing values.
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSafeCloseable
-
getColumn
public org.apache.parquet.column.ColumnDescriptor getColumn() -
getOffsetIndex
public org.apache.parquet.internal.column.columnindex.OffsetIndex getOffsetIndex() -
getStatistics
@NotNull public @NotNull org.apache.parquet.column.statistics.Statistics<?> getStatistics()Description copied from interface:ColumnWriterGet theStatisticsobject into which to encode min/max/null count information for the footer.- Specified by:
getStatisticsin interfaceColumnWriter- Returns:
- the statistics object
-