Package biopb.tensor

Class DescribeOptions

java.lang.Object
biopb.tensor.DescribeOptions

public final class DescribeOptions extends Object
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 Details

    • defaults

      public static DescribeOptions defaults()
      The cheap describe: base descriptor plus the advertised pyramid.
    • withMetadata

      public DescribeOptions withMetadata(boolean wanted)
      Fill metadata_json, the full OME tree (megabytes on a per-plane-annotated file).
    • withPyramid

      public DescribeOptions withPyramid(boolean wanted)
      Advertise the resolution pyramid. Sizing a native one opens each level's store, so a cloud store pays network I/O per level.
    • withReadPlan

      public DescribeOptions withReadPlan(boolean wanted)
      Enumerate the per-request chunk endpoints: O(chunks), which a describe has no use for.
    • withResidency

      public DescribeOptions withResidency(boolean wanted)
      Ask whether the source's bytes are local right now, answered on is_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

      public DescribeOptions withUploadStatus(boolean wanted)
      Fill upload_status for a source backed by an upload. Cheap: an in-memory read.