Package biopb.tensor
Class DescribeOptions
java.lang.Object
biopb.tensor.DescribeOptions
Which optional parts a
TensorFlightClient.getDescriptor(String, DescribeOptions) response should fill.
The named-boolean face of the wire's TensorReadOption.fields mask,
as Python's get_descriptor(with_*=...) is: a mistyped path would be a
server-side refusal, where a mistyped method is a compile error. Every part
is opt-in except the pyramid, which the primary describe consumer reads.
Immutable; each with* returns a copy.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DescribeOptionsdefaults()The cheap describe: base descriptor plus the advertised pyramid.withMetadata(boolean wanted) Fillmetadata_json, the full OME tree (megabytes on a per-plane-annotated file).withPyramid(boolean wanted) Advertise the resolution pyramid.withReadPlan(boolean wanted) Enumerate the per-request chunk endpoints: O(chunks), which a describe has no use for.withResidency(boolean wanted) Ask whether the source's bytes are local right now, answered onis_resident.withUploadStatus(boolean wanted) Fillupload_statusfor a source backed by an upload.
-
Method Details
-
defaults
The cheap describe: base descriptor plus the advertised pyramid. -
withMetadata
Fillmetadata_json, the full OME tree (megabytes on a per-plane-annotated file). -
withPyramid
Advertise the resolution pyramid. Sizing a native one opens each level's store, so a cloud store pays network I/O per level. -
withReadPlan
Enumerate the per-request chunk endpoints: O(chunks), which a describe has no use for. -
withResidency
Ask whether the source's bytes are local right now, answered onis_resident. A bounded stat walk of the source: ask it for a source you are about to read, never in a loop over a listing (biopb/biopb#1048). -
withUploadStatus
Fillupload_statusfor a source backed by an upload. Cheap: an in-memory read.
-