pub struct Context { /* fields omitted */ }
Context structure to represent a Hadoop job context.
This acts as an arbitrarily-typed bag, allowing for easy storage
of random types between iterations of the stage. See the module
documentation for further details and examples.
Retrieves a potential reference to a Contextual
type.
Retrieves a potential mutable reference to a Contextual
type.
Inserts a Contextual
type into the context.
Takes a Contextual
type from the context.
Writes a key/value pair to the stage output.
Writes a key/value formatted pair to the stage output.
This is a simple sugar API around write
which allows callers to
provide a type which implements Display
to serialize automatically.
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static