Class StringTransfer
java.lang.Object
com.illumon.iris.db.v2.parquet.transfer.StringTransfer
- All Implemented Interfaces:
TransferObject<org.apache.parquet.io.api.Binary[]>
,SafeCloseable
,AutoCloseable
public class StringTransfer
extends Object
implements TransferObject<org.apache.parquet.io.api.Binary[]>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
fetchData
(OrderedKeys rs) Copy the data from the upstreamColumnSource
into this object in preparation for writingorg.apache.parquet.io.api.Binary[]
Get the buffer suitable for writing to a Parquet fileint
rowCount()
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
-
StringTransfer
-
-
Method Details
-
getBuffer
public org.apache.parquet.io.api.Binary[] getBuffer()Description copied from interface:TransferObject
Get the buffer suitable for writing to a Parquet file- Specified by:
getBuffer
in interfaceTransferObject<org.apache.parquet.io.api.Binary[]>
- Returns:
- the buffer
-
rowCount
public int rowCount()Description copied from interface:TransferObject
Get the number of rows contained within the current transfer set to be written- Specified by:
rowCount
in interfaceTransferObject<org.apache.parquet.io.api.Binary[]>
- Returns:
- the number of rows that are ready to write to the Parquet file
-
fetchData
Description copied from interface:TransferObject
Copy the data from the upstreamColumnSource
into this object in preparation for writing- Specified by:
fetchData
in interfaceTransferObject<org.apache.parquet.io.api.Binary[]>
- Parameters:
rs
- theOrderedKeys
to copy
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSafeCloseable
-
updateStatistics
public <T extends Comparable<T>> void updateStatistics(@NotNull org.apache.parquet.column.statistics.Statistics<T> stats) Description copied from interface:TransferObject
After a sequence of calls toTransferObject.fetchData(OrderedKeys)
this may be called to append statistic information into the Parquet footer for readers.- Specified by:
updateStatistics
in interfaceTransferObject<org.apache.parquet.io.api.Binary[]>
-