Class ParquetParser.Builder
- Enclosing class:
- ParquetParser
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder()Constructor, default settings.protectedBuilder(ParquetParser copyFrom) protectedBuilder(ParquetParser.Builder copyFrom) -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the object.copy()Copy creator.hashKey()Returns the hashkey of this builder.maxCount(int value) The maximum allowed wire-declared element count (file/row-group row counts, column-chunk value counts).maxDecompressedBytes(int value) The maximum allowed aggregate decompressed-byte total across every Parquet page read during a single parse.maxInputLength(int value) The maximum allowed size (in bytes) of the whole Parquet input buffered into memory before parsing.maxLength(int value) The maximum allowed wire-declared length (in bytes) for a single Parquet page (compressed or uncompressed).nullKeyString(String value) The string used when parsing Parquet MAP keys that representnull .Methods inherited from class org.apache.juneau.marshall.parser.Parser.Builder
autoCloseStreams, autoCloseStreams, consumes, debugOutputLines, getConsumes, getNulls, listener, nulls, trimStrings, trimStrings, unbuffered, unbufferedMethods inherited from class org.apache.juneau.marshall.MarshallingContextable.Builder
activeView, annotations, beanClassVisibility, beanConstructorVisibility, beanDictionary, beanFieldVisibility, beanInterceptor, beanMapPutReturnsOldValue, beanMethodVisibility, beanProperties, beanProperties, beanProperties, beanPropertiesExcludes, beanPropertiesExcludes, beanPropertiesExcludes, beanPropertiesReadOnly, beanPropertiesReadOnly, beanPropertiesReadOnly, beanPropertiesWriteOnly, beanPropertiesWriteOnly, beanPropertiesWriteOnly, beansRequireDefaultConstructor, beansRequireSerializable, beansRequireSettersForGetters, bigNumberFormat, binaryFormat, bitSetFormat, booleanFormat, calendarFormat, classFormat, classLoader, currencyFormat, dateFormat, debug, dictionaryOn, disableBeansRequireSomeProperties, disableDefaultViewInclusion, disableIgnoreMissingSetters, disableIgnoreTransientFields, disableIgnoreUnknownNullBeanProperties, disableInterfaceProxies, durationFormat, enumFormat, example, example, findFluentSetters, findFluentSetters, floatFormat, ignoreInvocationExceptionsOnGetters, ignoreInvocationExceptionsOnSetters, ignoreUnknownBeanProperties, ignoreUnknownEnumValues, implClass, implClasses, interfaceClass, interfaces, locale, localeFormat, marshallingContext, marshallingContext, marshallingContext, marshallingContext, mediaType, notBeanClasses, notBeanPackages, periodFormat, propertyNamer, propertyNamer, recordComponentOrder, stopClass, swap, swap, swaps, swaps, temporalFormat, timeZone, timeZoneFormat, typeName, typePropertyName, typePropertyName, unsortedProperties, unsortedProperties, useJavaBeanIntrospector, uuidFormat, validateSchema, validateSchemaMethods inherited from class org.apache.juneau.marshall.Context.Builder
annotations, apply, applyAnnotations, applyAnnotations, asSubtype, build, cache, canApply, copyOrNull, debug, getApplied, getType, impl, isDebug, registerBuilders, self, type
-
Constructor Details
-
Builder
protected Builder()Constructor, default settings. -
Builder
-
Builder
-
-
Method Details
-
nullKeyString
The string used when parsing Parquet MAP keys that representnull .Must match
ParquetSerializer.Builder.nullKeyString(String)for round-trip.- Parameters:
value- The placeholder string. Default is"<NULL>" .- Returns:
- This object.
-
maxLength
The maximum allowed wire-declared length (in bytes) for a single Parquet page (compressed or uncompressed).Guards against malformed or adversarial input where a small file declares a huge per-page byte size, which would otherwise trigger
OutOfMemoryError. Malformed page headers are reported as a clean parse error instead.- Parameters:
value- The maximum length in bytes. Default is 256 MiB. Values ≤ 0 disable the cap.- Returns:
- This object.
-
maxCount
The maximum allowed wire-declared element count (file/row-group row counts, column-chunk value counts).Guards against malformed or adversarial input where a small footer declares a huge row or value count, which would otherwise drive a huge
ArrayListpre-allocation. Malformed counts are reported as a clean parse error instead.- Parameters:
value- The maximum count. Default is 10 million. Values ≤ 0 disable the cap.- Returns:
- This object.
-
maxInputLength
The maximum allowed size (in bytes) of the whole Parquet input buffered into memory before parsing.Parquet's end-of-file footer and column-major layout require the entire input to be buffered before any record can be reconstructed. This cap rejects an oversized input with a clean parse error instead of buffering an unbounded body into memory.
- Parameters:
value- The maximum input size in bytes. Default is 256 MiB. Values ≤ 0 disable the cap.- Returns:
- This object.
-
maxDecompressedBytes
The maximum allowed aggregate decompressed-byte total across every Parquet page read during a single parse.Guards against a decompression bomb assembled from many pages that each individually pass the per-page
maxLength(int)cap: this ceiling charges every page's declared uncompressed size against a running per-parse total, so a chunk (or a whole file) whose pages sum past the ceiling is rejected with a clean parse error instead of buffering the excess.- Parameters:
value- The maximum aggregate decompressed-byte total. Default is 64 MiB. Values ≤ 0 disable the cap.- Returns:
- This object.
-
copy
Description copied from class:Context.BuilderCopy creator.- Specified by:
copyin classInputStreamParser.Builder<ParquetParser.Builder>- Returns:
- A new mutable copy of this builder.
-
build
Description copied from class:Context.BuilderBuild the object.- Overrides:
buildin classInputStreamParser.Builder<ParquetParser.Builder>- Returns:
- The built object.
-
hashKey
Description copied from class:Context.BuilderReturns the hashkey of this builder.Used to return previously instantiated context beans that have matching hashkeys. The
HashKeyobject is suitable for use as a hashmap key of a map of context beans. A context bean is considered equivalent if theHashKey.equals(Object)method is the same.- Overrides:
hashKeyin classParser.Builder<ParquetParser.Builder>- Returns:
- The hashkey of this builder.
-