Index
All Classes and Interfaces|All Packages
A
- adapt(Iterator) - Static method in interface uk.co.parnmatt.vector.util.Iterator
-
Return an iterator that reuses
iteratorif it is already one, otherwise wraps it - allocate() - Method in interface uk.co.parnmatt.vector.reader.Buffers
-
Allocate a buffer configured with this specification
- as(ElementType) - Method in class uk.co.parnmatt.vector.reader.VectorReader.Decoding
-
Read vectors of the given element type.
B
- Buffers - Interface in uk.co.parnmatt.vector.reader
-
A strategy for allocating the
ByteBufferinto which records are read - bytes() - Method in class uk.co.parnmatt.vector.reader.VectorReader.Decoding
-
Deprecated, for removal: This API element is subject to removal in a future version.
- bytes(byte[]) - Static method in interface uk.co.parnmatt.vector.reader.Source
-
An in-memory array of bytes.
- bytes(Path) - Static method in class uk.co.parnmatt.vector.reader.VectorFileIterators
-
Reads
bytevectors from a file - bytesToFloats(byte...) - Static method in class uk.co.parnmatt.vector.convert.VectorConverters
-
Converts a
bytevector into afloatvector
C
- channel(ReadableByteChannel) - Static method in interface uk.co.parnmatt.vector.reader.Source
-
An already-open channel, passed through unchanged.
- close() - Method in interface uk.co.parnmatt.vector.util.Resource
- CloseableIterator<E> - Interface in uk.co.parnmatt.vector.util
D
- direct(int, ByteOrder) - Static method in interface uk.co.parnmatt.vector.reader.Buffers
-
Specify a block-aligned direct buffer, rounding capacity up to whole blocks
- directFile(Path) - Static method in interface uk.co.parnmatt.vector.reader.Source
-
A file, read with direct IO where the operating system and file system support it, bypassing the page cache.
- doubles() - Method in class uk.co.parnmatt.vector.reader.VectorReader.Decoding
-
Deprecated, for removal: This API element is subject to removal in a future version.use
VectorReader.Decoding.as(ElementType)withElementType.FLOAT64instead - doubles(Path) - Static method in class uk.co.parnmatt.vector.reader.VectorFileIterators
-
Reads
doublevectors from a file - doublesToFloats(double...) - Static method in class uk.co.parnmatt.vector.convert.VectorConverters
-
Converts a
doublevector into afloatvector - dropWhile(Predicate) - Method in interface uk.co.parnmatt.vector.util.CloseableIterator
- dropWhile(Predicate) - Method in interface uk.co.parnmatt.vector.util.Iterator
-
Return an iterator over the elements after the leading elements that satisfy
predicate - dropWhile(Predicate) - Method in interface uk.co.parnmatt.vector.util.ResourceIterator
E
- ElementType<E> - Class in uk.co.parnmatt.vector.reader
-
The type of a vector's elements as stored in the file, and the array it decodes into.
F
- file(Path) - Static method in interface uk.co.parnmatt.vector.reader.Source
-
A file, read through the operating system's page cache.
- filter(Predicate) - Method in interface uk.co.parnmatt.vector.util.CloseableIterator
- filter(Predicate) - Method in interface uk.co.parnmatt.vector.util.Iterator
-
Return an iterator over the elements that satisfy
predicate - filter(Predicate) - Method in interface uk.co.parnmatt.vector.util.ResourceIterator
- fixed(Buffers) - Method in class uk.co.parnmatt.vector.reader.VectorReader.Buffering
-
Buffer into a fixed-capacity buffer shared across records, reading ahead.
- FLOAT32 - Static variable in class uk.co.parnmatt.vector.reader.ElementType
-
IEEE 754 binary32, single precision
- FLOAT64 - Static variable in class uk.co.parnmatt.vector.reader.ElementType
-
IEEE 754 binary64, double precision
- floats() - Method in class uk.co.parnmatt.vector.reader.VectorReader.Decoding
-
Deprecated, for removal: This API element is subject to removal in a future version.use
VectorReader.Decoding.as(ElementType)withElementType.FLOAT32instead - floats(Path) - Static method in class uk.co.parnmatt.vector.reader.VectorFileIterators
-
Reads
floatvectors from a file - from(Source) - Static method in class uk.co.parnmatt.vector.reader.VectorReader
-
Begin composing a reader over the given source.
G
- growable(ByteOrder) - Method in class uk.co.parnmatt.vector.reader.VectorReader.Buffering
-
Buffer each record exactly into a buffer that grows as records require.
H
- heap(int) - Static method in interface uk.co.parnmatt.vector.reader.Buffers
-
Specify a little endian heap buffer
- heap(int, ByteOrder) - Static method in interface uk.co.parnmatt.vector.reader.Buffers
-
Specify a heap buffer with the provided byte order
I
- INT16 - Static variable in class uk.co.parnmatt.vector.reader.ElementType
-
Signed 16-bit two's complement
- INT32 - Static variable in class uk.co.parnmatt.vector.reader.ElementType
-
Signed 32-bit two's complement
- INT64 - Static variable in class uk.co.parnmatt.vector.reader.ElementType
-
Signed 64-bit two's complement
- INT8 - Static variable in class uk.co.parnmatt.vector.reader.ElementType
-
Signed 8-bit two's complement
- ints() - Method in class uk.co.parnmatt.vector.reader.VectorReader.Decoding
-
Deprecated, for removal: This API element is subject to removal in a future version.use
VectorReader.Decoding.as(ElementType)withElementType.INT32instead - ints(Path) - Static method in class uk.co.parnmatt.vector.reader.VectorFileIterators
-
Reads
intvectors from a file - intsToFloats(int...) - Static method in class uk.co.parnmatt.vector.convert.VectorConverters
-
Converts an
intvector into afloatvector - Iterator<E> - Interface in uk.co.parnmatt.vector.util
-
A
Iteratorspecialized by this library
L
- limit(long) - Method in interface uk.co.parnmatt.vector.util.CloseableIterator
- limit(long) - Method in interface uk.co.parnmatt.vector.util.Iterator
-
Return an iterator over at most
limitelements - limit(long) - Method in interface uk.co.parnmatt.vector.util.ResourceIterator
- longs() - Method in class uk.co.parnmatt.vector.reader.VectorReader.Decoding
-
Deprecated, for removal: This API element is subject to removal in a future version.use
VectorReader.Decoding.as(ElementType)withElementType.INT64instead - longs(Path) - Static method in class uk.co.parnmatt.vector.reader.VectorFileIterators
-
Reads
longvectors from a file - longsToFloats(long...) - Static method in class uk.co.parnmatt.vector.convert.VectorConverters
-
Converts a
longvector into afloatvector
M
- map(Function) - Method in interface uk.co.parnmatt.vector.util.CloseableIterator
- map(Function) - Method in interface uk.co.parnmatt.vector.util.Iterator
-
Return an iterator that applies
mapperto each element - map(Function) - Method in interface uk.co.parnmatt.vector.util.ResourceIterator
O
- open() - Method in interface uk.co.parnmatt.vector.reader.Source
-
Open a channel over the bytes, positioned at the first.
P
- peek(Consumer) - Method in interface uk.co.parnmatt.vector.util.CloseableIterator
- peek(Consumer) - Method in interface uk.co.parnmatt.vector.util.Iterator
-
Return an iterator that applies
actionto each element as it is returned - peek(Consumer) - Method in interface uk.co.parnmatt.vector.util.ResourceIterator
R
- Resource<X> - Interface in uk.co.parnmatt.vector.util
-
Represents a resource which needs to be closed
- ResourceIterator<E,
X> - Interface in uk.co.parnmatt.vector.util
S
- shorts() - Method in class uk.co.parnmatt.vector.reader.VectorReader.Decoding
-
Deprecated, for removal: This API element is subject to removal in a future version.use
VectorReader.Decoding.as(ElementType)withElementType.INT16instead - shorts(Path) - Static method in class uk.co.parnmatt.vector.reader.VectorFileIterators
-
Reads
shortvectors from a file - shortsToFloats(short...) - Static method in class uk.co.parnmatt.vector.convert.VectorConverters
-
Converts a
shortvector into afloatvector - skip(long) - Method in interface uk.co.parnmatt.vector.util.CloseableIterator
- skip(long) - Method in interface uk.co.parnmatt.vector.util.Iterator
-
Return an iterator over the elements after the first
skip - skip(long) - Method in interface uk.co.parnmatt.vector.util.ResourceIterator
- Source - Interface in uk.co.parnmatt.vector.reader
-
A source of bytes, opened on demand into a channel to read from.
- stream(InputStream) - Static method in interface uk.co.parnmatt.vector.reader.Source
-
An input stream, adapted to a channel.
T
- takeWhile(Predicate) - Method in interface uk.co.parnmatt.vector.util.CloseableIterator
- takeWhile(Predicate) - Method in interface uk.co.parnmatt.vector.util.Iterator
-
Return an iterator over the leading elements that satisfy
predicate - takeWhile(Predicate) - Method in interface uk.co.parnmatt.vector.util.ResourceIterator
- toString() - Method in class uk.co.parnmatt.vector.reader.ElementType
U
- uk.co.parnmatt.vector - module uk.co.parnmatt.vector
-
Simple binary vector format reader.
- uk.co.parnmatt.vector.convert - package uk.co.parnmatt.vector.convert
-
Conversions between vector element representations.
- uk.co.parnmatt.vector.reader - package uk.co.parnmatt.vector.reader
-
Reads the supported binary vector formats into typed arrays.
- uk.co.parnmatt.vector.util - package uk.co.parnmatt.vector.util
-
Iterator and resource utilities used across the reader.
- unsignedBytesToShorts(byte...) - Static method in class uk.co.parnmatt.vector.convert.VectorConverters
-
Reinterprets each signed
byteas an unsigned value [0, 255] widened into ashort
V
- VectorConverters - Class in uk.co.parnmatt.vector.convert
-
Collection of converters between vector element types
- VectorFileIterators - Class in uk.co.parnmatt.vector.reader
-
Reads binary encoded vectors from files with default buffering.
- VectorReader - Class in uk.co.parnmatt.vector.reader
-
Composes a reader over binary encoded vectors, choosing a
Source, a buffering strategy, and the element type to decode. - VectorReader.Buffering - Class in uk.co.parnmatt.vector.reader
-
The choice of how bytes are buffered as records are read.
- VectorReader.Decoding - Class in uk.co.parnmatt.vector.reader
-
The choice of element type to decode each vector into.
All Classes and Interfaces|All Packages
VectorReader.Decoding.as(ElementType)withElementType.INT8instead