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
ConstructorsConstructorDescriptionDeprecated.Required forExternalizable.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 TypeMethodDescriptionvoidclose()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>cursor()Deprecated.longdimension(int d) Deprecated.voiddimensions(long[] dimensions) Deprecated.Deprecated.Return the immutable Flight v2 handle this adapter carries.Deprecated.net.imglib2.Cursor<T>Deprecated.longmax(int d) Deprecated.voidmax(long[] max) Deprecated.longmin(int d) Deprecated.voidmin(long[] min) Deprecated.intDeprecated.net.imglib2.RandomAccess<T>Deprecated.net.imglib2.RandomAccess<T>randomAccess(net.imglib2.Interval interval) Deprecated.voidreadExternal(ObjectInput input) Deprecated.longsize()Deprecated.voidwriteExternal(ObjectOutput output) Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.imglib2.Dimensions
dimensions, dimensionsAsLongArray, dimensionsAsPointMethods inherited from interface net.imglib2.Interval
max, maxAsLongArray, maxAsPoint, min, minAsLongArray, minAsPoint, realMax, realMinMethods inherited from interface net.imglib2.IterableInterval
localizingSpliterator, spliteratorMethods inherited from interface net.imglib2.IterableRealInterval
firstElement, getType, iterator, parallelStream, streamMethods inherited from interface net.imglib2.RandomAccessible
getAt, getAt, getAtMethods inherited from interface net.imglib2.RandomAccessibleInterval
viewMethods inherited from interface net.imglib2.RealInterval
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMin, realMin
-
Constructor Details
-
SerializableTensorImg
public SerializableTensorImg()Deprecated.Required forExternalizable. -
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
Deprecated.Return the immutable Flight v2 handle this adapter carries. -
writeExternal
Deprecated.- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
Deprecated.- Specified by:
readExternalin interfaceExternalizable- 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 isAutoCloseableand callers may already wrap it.- Specified by:
closein interfaceAutoCloseable
-
min
public long min(int d) Deprecated.- Specified by:
minin interfacenet.imglib2.Interval
-
max
public long max(int d) Deprecated.- Specified by:
maxin interfacenet.imglib2.Interval
-
numDimensions
public int numDimensions()Deprecated.- Specified by:
numDimensionsin interfacenet.imglib2.EuclideanSpace
-
size
public long size()Deprecated. -
randomAccess
Deprecated. -
randomAccess
Deprecated. -
cursor
Deprecated.- Specified by:
cursorin interfacenet.imglib2.IterableInterval<T extends net.imglib2.type.NativeType<T> & net.imglib2.type.numeric.RealType<T>>- Specified by:
cursorin interfacenet.imglib2.IterableRealInterval<T extends net.imglib2.type.NativeType<T> & net.imglib2.type.numeric.RealType<T>>- Specified by:
cursorin interfacenet.imglib2.RandomAccessibleInterval<T extends net.imglib2.type.NativeType<T> & net.imglib2.type.numeric.RealType<T>>
-
localizingCursor
Deprecated.- Specified by:
localizingCursorin interfacenet.imglib2.IterableInterval<T extends net.imglib2.type.NativeType<T> & net.imglib2.type.numeric.RealType<T>>- Specified by:
localizingCursorin interfacenet.imglib2.IterableRealInterval<T extends net.imglib2.type.NativeType<T> & net.imglib2.type.numeric.RealType<T>>- Specified by:
localizingCursorin interfacenet.imglib2.RandomAccessibleInterval<T extends net.imglib2.type.NativeType<T> & net.imglib2.type.numeric.RealType<T>>
-
iterationOrder
Deprecated.- Specified by:
iterationOrderin interfacenet.imglib2.IterableRealInterval<T extends net.imglib2.type.NativeType<T> & net.imglib2.type.numeric.RealType<T>>- Specified by:
iterationOrderin interfacenet.imglib2.RandomAccessibleInterval<T extends net.imglib2.type.NativeType<T> & net.imglib2.type.numeric.RealType<T>>
-
dimension
public long dimension(int d) Deprecated.- Specified by:
dimensionin interfacenet.imglib2.Dimensions- Specified by:
dimensionin interfacenet.imglib2.Interval
-
min
public void min(long[] min) Deprecated.- Specified by:
minin interfacenet.imglib2.Interval
-
max
public void max(long[] max) Deprecated.- Specified by:
maxin interfacenet.imglib2.Interval
-
dimensions
public void dimensions(long[] dimensions) Deprecated.- Specified by:
dimensionsin interfacenet.imglib2.Dimensions
-