ByteSequenceProvider

public class ByteSequenceProvider

Produces sequence of bytes to be stored in a ByteSequenceTensorBuffer.

Public Constructors

ByteSequenceProvider(NdArray<T> source, Function<T, byte[]> byteExtractor)
Constructor

Public Methods

Iterator<byte[]>

Inherited Methods

boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
abstract void
forEach(Consumer<? super T> arg0)
abstract Iterator<byte[]>
iterator()
abstract Spliterator<byte[]>
spliterator()

Public Constructors

public ByteSequenceProvider (NdArray<T> source, Function<T, byte[]> byteExtractor)

Constructor

Parameters
source source of data
byteExtractor method that converts one value of the source into a sequence of bytes

Public Methods

public Iterator<byte[]> iterator ()