Package com.jerolba.carpet
Class CarpetParquetReader.Builder<T>
java.lang.Object
org.apache.parquet.hadoop.ParquetReader.Builder<T>
com.jerolba.carpet.CarpetParquetReader.Builder<T>
- Enclosing class:
- CarpetParquetReader
public static class CarpetParquetReader.Builder<T>
extends org.apache.parquet.hadoop.ParquetReader.Builder<T>
-
Field Summary
Fields inherited from class org.apache.parquet.hadoop.ParquetReader.Builder
conf
-
Method Summary
Modifier and TypeMethodDescriptionfailNarrowingPrimitiveConversion
(boolean failNarrowingPrimitiveConversion) Feature that determines whether coercion from one number type to other number type with less resolutions is allowed or not.failOnMissingColumn
(boolean failOnMissingColumn) Feature that determines whether encountering of missed parquet column should result in a failure (by throwing a RecordTypeConversionException) or not.failOnNullForPrimitives
(boolean failOnNullForPrimitives) Feature that determines whether encountering null is an error when deserializing into Java primitive types (like 'int' or 'double').fieldMatchingStrategy
(FieldMatchingStrategy fieldMatchingStrategy) protected org.apache.parquet.hadoop.api.ReadSupport<T>
Methods inherited from class org.apache.parquet.hadoop.ParquetReader.Builder
build, set, useBloomFilter, useBloomFilter, useColumnIndexFilter, useColumnIndexFilter, useDictionaryFilter, useDictionaryFilter, usePageChecksumVerification, usePageChecksumVerification, useRecordFilter, useRecordFilter, useSignedStringMinMax, useSignedStringMinMax, useStatsFilter, useStatsFilter, withCodecFactory, withConf, withDecryption, withFileRange, withFilter
-
Method Details
-
failOnMissingColumn
Feature that determines whether encountering of missed parquet column should result in a failure (by throwing a RecordTypeConversionException) or not. Feature is enabled by default.- Parameters:
failOnMissingColumn
-- Returns:
- Carpet Reader Builder
-
failOnNullForPrimitives
Feature that determines whether encountering null is an error when deserializing into Java primitive types (like 'int' or 'double'). If it is, a RecordTypeConversionException is thrown to indicate this; if not, default value is used (0 for 'int', 0.0 for double, same defaulting as what JVM uses). Feature is disabled by default.- Parameters:
failOnNullForPrimitives
-- Returns:
- Carpet Reader Builder
-
failNarrowingPrimitiveConversion
public CarpetParquetReader.Builder<T> failNarrowingPrimitiveConversion(boolean failNarrowingPrimitiveConversion) Feature that determines whether coercion from one number type to other number type with less resolutions is allowed or not. If disabled, coercion truncates value. A narrowing primitive conversion may lose information about the overall magnitude of a numeric value and may also lose precision and range. Narrowing follows Java Language Specification Feature is disabled by default.- Parameters:
failNarrowingPrimitiveConversion
-- Returns:
- Carpet Reader Builder
-
fieldMatchingStrategy
public CarpetParquetReader.Builder<T> fieldMatchingStrategy(FieldMatchingStrategy fieldMatchingStrategy) -
getReadSupport
- Overrides:
getReadSupport
in classorg.apache.parquet.hadoop.ParquetReader.Builder<T>
-