Class ParquetSerializerSession
- All Implemented Interfaces:
BeanSession,ConverterSession,ArrayRecordWritable,RecordWritable
ParquetSerializer.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for serializer sessions.static classSimple bean for wrapping non-bean values (Map is not convertible to BeanMap).Nested classes/interfaces inherited from class org.apache.juneau.marshall.serializer.OutputStreamSerializerSession
OutputStreamSerializerSession.DefaultBuilder -
Field Summary
Fields inherited from class org.apache.juneau.marshall.MarshallingTraverseSession
indentFields inherited from class org.apache.juneau.marshall.MarshallingSession
NAME_PROPERTY_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptioncreate(ParquetSerializer ctx) Creates a new session builder.protected voiddoWrite(SerializerPipe pipe, Object o) Serializes a POJO to the specified pipe.booleanReturns whether this binary serializer has a native byte-array wire type.booleanThe Parquet array-record writer is buffered/RecordAdapter-backed, not O(1) streaming.booleanThe Parquet record writer is buffered/RecordAdapter-backed, not O(1) streaming.writeArrayRecords(Object output) Buffered array-elementRecordWriterfor Parquet, bound to this live session.writeRecords(Object output) Opens a whole-value push generator targeting Parquet output, bound to this live session.Methods inherited from class org.apache.juneau.marshall.serializer.OutputStreamSerializerSession
create, createPipe, getBinaryFormat, isWriterSerializer, write, writeToStringMethods inherited from class org.apache.juneau.marshall.serializer.SerializerSession
addVarBean, canIgnoreValue, canIgnoreValue, create, createBeanTypeNameProperty, createDefaultVarResolverSession, forEachEntry, forEachEntry, forEachStreamableEntry, generalize, getBeanTypeName, getCalendarFormat, getDateFormat, getDurationFormat, getExpectedRootType, getJavaMethod, getListener, getListener, getLocaleFormat, getPeriodFormat, getResponseHeaders, getSchema, getTemporalFormat, getTimeZoneFormat, getUriContext, getUriRelativity, getUriResolution, getUriResolver, getVarResolver, handleThrown, isAddBeanTypes, isAddRootType, isKeepNullProperties, isNonDefault, isSortCollections, isSortMaps, isTrimEmptyCollections, isTrimEmptyMaps, isTrimStrings, onBeanGetterException, onError, properties, push2, relativizeUri, resolve, resolveUri, sort, sort, sort, swap, toList, toListFromStreamable, toString, trim, unwrapSupplier, write, writeCalendar, writeDate, writeDuration, writePeriod, writeTemporalMethods inherited from class org.apache.juneau.marshall.MarshallingTraverseSession
getInitialDepth, getLastLocation, getMaxDepth, getOptionalType, getOptionalValue, getStack, isDetectRecursions, isIgnoreRecursions, isOptional, isRoot, pop, push, setCurrentClass, setCurrentProperty, willExceedDepth, willRecurseMethods inherited from class org.apache.juneau.marshall.MarshallingSession
addWarning, convertToMemberType, convertToMemberType, convertToMemberType, convertToType, convertToType, convertToType, convertToType, create, get, getActiveView, getAnnotationProvider, getArgsClassMeta, getBeanClassVisibility, getBeanConstructorVisibility, getBeanDictionary, getBeanFieldVisibility, getBeanMeta, getBeanMethodVisibility, getBeanRegistry, getBeanTypePropertyName, getBeanTypePropertyName, getClassLoader, getClassMeta, getClassMeta, getClassMetaForObject, getClassMetaForObject, getLocale, getMarshallingContext, getMediaType, getNotBeanClasses, getNotBeanPackagesNames, getPropertyNamer, getSwaps, getTimeZone, getTimeZoneId, isBean, isBean, isBeanMapPutReturnsOldValue, isBeansRequireDefaultConstructor, isBeansRequireSerializable, isBeansRequireSettersForGetters, isBeansRequireSomeProperties, isFindFluentSetters, isIgnoreInvocationExceptionsOnGetters, isIgnoreInvocationExceptionsOnSetters, isIgnoreMissingSetters, isIgnoreUnknownBeanProperties, isIgnoreUnknownNullBeanProperties, isPropertyInActiveView, isRecordComponentOrder, isUnsortedProperties, isUseInterfaceProxies, isUseJavaBeanIntrospector, isValidateSchema, newBean, newBean, newBeanMap, newBeanMap, newGenericList, newGenericMap, newGenericMap, object, parseToList, parseToMap, string, toArray, toBeanMap, toBeanMap, toBeanMapMethods inherited from class org.apache.juneau.marshall.ContextSession
checkForWarnings, getContext, getSessionProperties, getWarnings, isDebug, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.juneau.marshall.stream.ArrayRecordWritable
writeArrayRecordsMethods inherited from interface org.apache.juneau.commons.conversion.ConverterSession
get
-
Constructor Details
-
ParquetSerializerSession
-
-
Method Details
-
create
Creates a new session builder.- Parameters:
ctx- The serializer context.
Cannot benull .- Returns:
- A new builder.
-
writeRecords
Opens a whole-value push generator targeting Parquet output, bound to this live session.write(Object)delegates toSerializerSession.write(Object, Object).- Specified by:
writeRecordsin interfaceRecordWritable- Parameters:
output- The output.- Returns:
- A new
RecordWriter. - Throws:
IOException- If a problem occurred opening the underlying output.
-
writeArrayRecords
Buffered array-elementRecordWriterfor Parquet, bound to this live session. Buffers eachwrite(...)and emits the whole list onclose().- Specified by:
writeArrayRecordsin interfaceArrayRecordWritable- Parameters:
output- The output.- Returns:
- A new
RecordWriter. - Throws:
IOException- If a problem occurred opening the underlying output.
-
isRecordStreaming
The Parquet record writer is buffered/RecordAdapter-backed, not O(1) streaming.- Specified by:
isRecordStreamingin interfaceRecordWritable- Returns:
- Always
false .
-
isArrayRecordStreaming
The Parquet array-record writer is buffered/RecordAdapter-backed, not O(1) streaming.- Specified by:
isArrayRecordStreamingin interfaceArrayRecordWritable- Returns:
- Always
false .
-
hasNativeBytes
Description copied from class:OutputStreamSerializerSessionReturns whether this binary serializer has a native byte-array wire type.When
true,byte[]payloads bypass the configuredBinaryFormatdispatch inBinarySwapand the variant binary swap installed byMarshalledPropertyPostProcessor, and are written as raw bytes through the serializer's native binary opcode (e.g. MsgPackbinfamily, CBOR byte-string major type 2, BSON binary subtype0x05). Whenfalse, the configuredBinaryFormatfires for non-NOT_SETformats and produces a text wire form (HEX / BASE64 / etc.) that the serializer emits as a string in its native string column / literal type — used by serializers whose wire format has no native byte-array primitive (Parquet column writer, binary RDF formats).Defaults to
true. Subclasses without a native byte-array wire type (e.g.ParquetSerializerSessionand the binary RDF sessions) override and returnfalse.- Overrides:
hasNativeBytesin classOutputStreamSerializerSession- Returns:
trueif this serializer has a native byte-array wire type.
-
doWrite
Description copied from class:SerializerSessionSerializes a POJO to the specified pipe.This method should NOT close the context object.
The default implementation of this method simply calls
Serializer.doWrite(SerializerSession,SerializerPipe,Object).- Overrides:
doWritein classSerializerSession- Parameters:
pipe- Where to send the output from the serializer.o- The object to serialize.- Throws:
IOException- Thrown by underlying stream.SerializeException- Problem occurred trying to serialize object.
-