Package biopb.tensor

Class SerializableTensorImg<T extends net.imglib2.type.NativeType<T> & net.imglib2.type.numeric.RealType<T>>

java.lang.Object
biopb.tensor.SerializableTensorImg<T>
All Implemented Interfaces:
Externalizable, Serializable, AutoCloseable, Iterable<T>, net.imglib2.Dimensions, net.imglib2.EuclideanSpace, net.imglib2.Interval, net.imglib2.IterableInterval<T>, net.imglib2.IterableRealInterval<T>, net.imglib2.RandomAccessible<T>, net.imglib2.RandomAccessibleInterval<T>, net.imglib2.RealInterval, net.imglib2.Typed<T>

@Deprecated public class SerializableTensorImg<T extends net.imglib2.type.NativeType<T> & net.imglib2.type.numeric.RealType<T>> extends Object implements net.imglib2.RandomAccessibleInterval<T>, Externalizable, AutoCloseable
Deprecated.
Compatibility adapter for Java serialization of a lazy tensor image.

The sole cross-process handle is SerializedTensor. This class is only an imglib2 adapter: its externalized state is exactly a SerializedTensor protobuf and a local cache budget. It never serializes source IDs, read options, descriptors, or a second bespoke ticket format. New cross-process APIs should pass SerializedTensor directly.

Its Flight connection comes from FlightSessions, shared per (location, token) across every image in the process, so reconstructing many tensors from one server costs one channel rather than one each.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Required for Externalizable.
    SerializableTensorImg(SerializedTensor serializedTensor, long cacheBytes, net.imglib2.RandomAccessibleInterval<T> delegate)
    Deprecated.
    Wrap a Flight v2 handle and an optional already-created local image.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    Drops this image's reference to its connection, which the shared cache owns; the connection itself stays open for the next image on the same server.
    net.imglib2.Cursor<T>
    Deprecated.
     
    long
    dimension(int d)
    Deprecated.
     
    void
    dimensions(long[] dimensions)
    Deprecated.
     
    Deprecated.
    Return the immutable Flight v2 handle this adapter carries.
    Deprecated.
     
    net.imglib2.Cursor<T>
    Deprecated.
     
    long
    max(int d)
    Deprecated.
     
    void
    max(long[] max)
    Deprecated.
     
    long
    min(int d)
    Deprecated.
     
    void
    min(long[] min)
    Deprecated.
     
    int
    Deprecated.
     
    net.imglib2.RandomAccess<T>
    Deprecated.
     
    net.imglib2.RandomAccess<T>
    randomAccess(net.imglib2.Interval interval)
    Deprecated.
     
    void
    Deprecated.
     
    long
    Deprecated.
     
    void
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.imglib2.Dimensions

    dimensions, dimensionsAsLongArray, dimensionsAsPoint

    Methods inherited from interface net.imglib2.Interval

    max, maxAsLongArray, maxAsPoint, min, minAsLongArray, minAsPoint, realMax, realMin

    Methods inherited from interface java.lang.Iterable

    forEach

    Methods inherited from interface net.imglib2.IterableInterval

    localizingSpliterator, spliterator

    Methods inherited from interface net.imglib2.IterableRealInterval

    firstElement, getType, iterator, parallelStream, stream

    Methods inherited from interface net.imglib2.RandomAccessible

    getAt, getAt, getAt

    Methods inherited from interface net.imglib2.RandomAccessibleInterval

    view

    Methods inherited from interface net.imglib2.RealInterval

    maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMin, realMin
  • Constructor Details

    • SerializableTensorImg

      public SerializableTensorImg()
      Deprecated.
      Required for Externalizable.
    • SerializableTensorImg

      public SerializableTensorImg(SerializedTensor serializedTensor, long cacheBytes, net.imglib2.RandomAccessibleInterval<T> delegate)
      Deprecated.
      Wrap a Flight v2 handle and an optional already-created local image.
  • Method Details

    • getSerializedTensor

      public SerializedTensor getSerializedTensor()
      Deprecated.
      Return the immutable Flight v2 handle this adapter carries.
    • writeExternal

      public void writeExternal(ObjectOutput output) throws IOException
      Deprecated.
      Specified by:
      writeExternal in interface Externalizable
      Throws:
      IOException
    • readExternal

      public void readExternal(ObjectInput input) throws IOException
      Deprecated.
      Specified by:
      readExternal in interface Externalizable
      Throws:
      IOException
    • close

      public void close()
      Deprecated.
      Drops this image's reference to its connection, which the shared cache owns; the connection itself stays open for the next image on the same server. Retained because the class is AutoCloseable and callers may already wrap it.
      Specified by:
      close in interface AutoCloseable
    • min

      public long min(int d)
      Deprecated.
      Specified by:
      min in interface net.imglib2.Interval
    • max

      public long max(int d)
      Deprecated.
      Specified by:
      max in interface net.imglib2.Interval
    • numDimensions

      public int numDimensions()
      Deprecated.
      Specified by:
      numDimensions in interface net.imglib2.EuclideanSpace
    • size

      public long size()
      Deprecated.
      Specified by:
      size in interface net.imglib2.IterableRealInterval<T extends net.imglib2.type.NativeType<T> & net.imglib2.type.numeric.RealType<T>>
      Specified by:
      size in interface net.imglib2.RandomAccessibleInterval<T extends net.imglib2.type.NativeType<T> & net.imglib2.type.numeric.RealType<T>>
    • randomAccess

      public net.imglib2.RandomAccess<T> randomAccess()
      Deprecated.
      Specified by:
      randomAccess in interface net.imglib2.RandomAccessible<T extends net.imglib2.type.NativeType<T> & net.imglib2.type.numeric.RealType<T>>
    • randomAccess

      public net.imglib2.RandomAccess<T> randomAccess(net.imglib2.Interval interval)
      Deprecated.
      Specified by:
      randomAccess in interface net.imglib2.RandomAccessible<T extends net.imglib2.type.NativeType<T> & net.imglib2.type.numeric.RealType<T>>
    • cursor

      public net.imglib2.Cursor<T> cursor()
      Deprecated.
      Specified by:
      cursor in interface net.imglib2.IterableInterval<T extends net.imglib2.type.NativeType<T> & net.imglib2.type.numeric.RealType<T>>
      Specified by:
      cursor in interface net.imglib2.IterableRealInterval<T extends net.imglib2.type.NativeType<T> & net.imglib2.type.numeric.RealType<T>>
      Specified by:
      cursor in interface net.imglib2.RandomAccessibleInterval<T extends net.imglib2.type.NativeType<T> & net.imglib2.type.numeric.RealType<T>>
    • localizingCursor

      public net.imglib2.Cursor<T> localizingCursor()
      Deprecated.
      Specified by:
      localizingCursor in interface net.imglib2.IterableInterval<T extends net.imglib2.type.NativeType<T> & net.imglib2.type.numeric.RealType<T>>
      Specified by:
      localizingCursor in interface net.imglib2.IterableRealInterval<T extends net.imglib2.type.NativeType<T> & net.imglib2.type.numeric.RealType<T>>
      Specified by:
      localizingCursor in interface net.imglib2.RandomAccessibleInterval<T extends net.imglib2.type.NativeType<T> & net.imglib2.type.numeric.RealType<T>>
    • iterationOrder

      public Object iterationOrder()
      Deprecated.
      Specified by:
      iterationOrder in interface net.imglib2.IterableRealInterval<T extends net.imglib2.type.NativeType<T> & net.imglib2.type.numeric.RealType<T>>
      Specified by:
      iterationOrder in interface net.imglib2.RandomAccessibleInterval<T extends net.imglib2.type.NativeType<T> & net.imglib2.type.numeric.RealType<T>>
    • dimension

      public long dimension(int d)
      Deprecated.
      Specified by:
      dimension in interface net.imglib2.Dimensions
      Specified by:
      dimension in interface net.imglib2.Interval
    • min

      public void min(long[] min)
      Deprecated.
      Specified by:
      min in interface net.imglib2.Interval
    • max

      public void max(long[] max)
      Deprecated.
      Specified by:
      max in interface net.imglib2.Interval
    • dimensions

      public void dimensions(long[] dimensions)
      Deprecated.
      Specified by:
      dimensions in interface net.imglib2.Dimensions