Class RdfThriftSerializer
- All Implemented Interfaces:
Function<Object,,byte[]> ThrowingFunction<Object,,byte[]> RdfMetaProvider,XmlMetaProvider
Serializes POJOs to compact binary RDF using Apache Thrift encoding, ideal for efficient storage and network transfer. Semantically equivalent to RDF/XML and other RDF text formats.
Examples:
Output is binary (
Notes:
- This class is thread safe and reusable.
See Also:
- {doc jmr.RdfDetails}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.juneau.marshall.jena.RdfStreamSerializer
RdfStreamSerializer.Builder<SELF extends RdfStreamSerializer.Builder<SELF>>, RdfStreamSerializer.DefaultBuilderNested classes/interfaces inherited from class org.apache.juneau.marshall.serializer.Serializer
Serializer.Null -
Field Summary
FieldsFields inherited from class org.apache.juneau.marshall.serializer.Serializer
accept, addBeanTypes, addRootType, keepNullProperties, listener, nonDefault, produces, sortCollections, sortMaps, trimEmptyCollections, trimEmptyMaps, trimStringsFields inherited from class org.apache.juneau.marshall.MarshallingContextable
marshallingContextFields inherited from class org.apache.juneau.marshall.Context
CONTEXT_APPLY_FILTER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RdfStreamSerializer.Builder<?>create()Creates a new builder.Methods inherited from class org.apache.juneau.marshall.jena.RdfStreamSerializer
copy, createSession, getCollectionFormat, getJuneauBpNs, getJuneauNs, getLanguage, getNamespaces, getRdfBeanMeta, getRdfBeanPropertyMeta, getRdfClassMeta, getRdfSerializer, getXmlBeanMeta, getXmlBeanPropertyMeta, getXmlClassMeta, isAddBeanTypes, isAddLiteralTypes, isAddRootProp, isAutoDetectNamespaces, isLooseCollections, isUseXmlNamespacesMethods inherited from class org.apache.juneau.marshall.serializer.OutputStreamSerializer
applyThrows, getBinaryFormat, getSession, isWriterSerializer, writeMethods inherited from class org.apache.juneau.marshall.serializer.Serializer
createSerializerBuilder, doWrite, forEachAcceptMediaType, getListener, getMediaTypeRanges, getPrimaryMediaType, getResponseContentType, getResponseHeaders, getUriContext, getUriRelativity, getUriResolution, isAddRootType, isKeepNullProperties, isNonDefault, isSortCollections, isSortMaps, isTrimEmptyCollections, isTrimEmptyMaps, isTrimStrings, properties, write, writeToStringMethods inherited from class org.apache.juneau.marshall.MarshallingTraverseContext
getDetectRecursions, getIgnoreRecursions, getInitialDepth, getMaxDepth, isDetectRecursions, isIgnoreRecursions, shouldDetectRecursionsMethods inherited from class org.apache.juneau.marshall.MarshallingContextable
getDurationFormat, getMarshallingContext, getPeriodFormatMethods inherited from class org.apache.juneau.marshall.Context
createBuilder, getAnnotationProvider, init, isDebug, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.juneau.commons.function.ThrowingFunction
apply
-
Field Details
-
DEFAULT
Default RDF/THRIFT serializer.
-
-
Constructor Details
-
RdfThriftSerializer
Constructor.- Parameters:
builder- The builder.
Cannot benull .
-
-
Method Details
-
create
Creates a new builder.- Returns:
- A new builder.
-