Class PipesRequest
java.lang.Object
org.apache.tika.pipes.core.serialization.PipesRequest
The NEW_REQUEST envelope on the parent-to-child IPC: the tuple, plus the optional inline
document payload beside it. Bytes are data, not tuple state -- a
FetchEmitTuple and
its ParseContext are never serialized with content in them (FetchEmitTupleSerializer
refuses loudly if an InlineBytes slips through).
of(org.apache.tika.pipes.api.FetchEmitTuple) lifts the payload out of the caller's context on the parent;
applyTo(org.apache.tika.parser.ParseContext) plants it into the worker's merged context on the child, where
BytesFetcher reads it.
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(ParseContext mergedContext) Plants the payload into the worker's context for BytesFetcher; no-op without one.byte[]getTuple()static PipesRequestof(FetchEmitTuple t) Wrapstfor the wire, lifting anyInlineBytesout of its ParseContext.
-
Method Details
-
of
Wrapstfor the wire, lifting anyInlineBytesout of its ParseContext. The caller's live context is never mutated; the stripped copy exists only for serialization. -
applyTo
Plants the payload into the worker's context for BytesFetcher; no-op without one. -
getTuple
-
getInlineBytes
public byte[] getInlineBytes()
-