Class ByteTransfer
java.lang.Object
com.illumon.iris.db.v2.parquet.transfer.ByteTransfer
- All Implemented Interfaces:
TransferObject<IntBuffer>,SafeCloseable,AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidfetchData(OrderedKeys rs) Copy the data from the upstreamColumnSourceinto this object in preparation for writingGet the buffer suitable for writing to a Parquet fileintrowCount()Get the number of rows contained within the current transfer set to be written<T extends Comparable<T>>
voidupdateStatistics(org.apache.parquet.column.statistics.Statistics<T> stats) After a sequence of calls toTransferObject.fetchData(OrderedKeys)this may be called to append statistic information into the Parquet footer for readers.
-
Constructor Details
-
ByteTransfer
-
-
Method Details
-
getBuffer
Description copied from interface:TransferObjectGet the buffer suitable for writing to a Parquet file- Specified by:
getBufferin interfaceTransferObject<IntBuffer>- Returns:
- the buffer
-
rowCount
public int rowCount()Description copied from interface:TransferObjectGet the number of rows contained within the current transfer set to be written- Specified by:
rowCountin interfaceTransferObject<IntBuffer>- Returns:
- the number of rows that are ready to write to the Parquet file
-
fetchData
Description copied from interface:TransferObjectCopy the data from the upstreamColumnSourceinto this object in preparation for writing- Specified by:
fetchDatain interfaceTransferObject<IntBuffer>- Parameters:
rs- theOrderedKeysto copy
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSafeCloseable
-
updateStatistics
public <T extends Comparable<T>> void updateStatistics(@NotNull org.apache.parquet.column.statistics.Statistics<T> stats) Description copied from interface:TransferObjectAfter a sequence of calls toTransferObject.fetchData(OrderedKeys)this may be called to append statistic information into the Parquet footer for readers.- Specified by:
updateStatisticsin interfaceTransferObject<IntBuffer>
-