Index

A B C D E F G H I L M O P R S T U V 
All Classes and Interfaces|All Packages

A

adapt(Iterator) - Static method in interface uk.co.parnmatt.vector.util.Iterator
Return an iterator that reuses iterator if 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 ByteBuffer into 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 byte vectors from a file
bytesToFloats(byte...) - Static method in class uk.co.parnmatt.vector.convert.VectorConverters
Converts a byte vector into a float vector

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
Represents a ResourceIterator that is also Closeable, closing with an IOException

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.
doubles(Path) - Static method in class uk.co.parnmatt.vector.reader.VectorFileIterators
Reads double vectors from a file
doublesToFloats(double...) - Static method in class uk.co.parnmatt.vector.convert.VectorConverters
Converts a double vector into a float vector
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.
floats(Path) - Static method in class uk.co.parnmatt.vector.reader.VectorFileIterators
Reads float vectors 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.
ints(Path) - Static method in class uk.co.parnmatt.vector.reader.VectorFileIterators
Reads int vectors from a file
intsToFloats(int...) - Static method in class uk.co.parnmatt.vector.convert.VectorConverters
Converts an int vector into a float vector
Iterator<E> - Interface in uk.co.parnmatt.vector.util
A Iterator specialized 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 limit elements
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.
longs(Path) - Static method in class uk.co.parnmatt.vector.reader.VectorFileIterators
Reads long vectors from a file
longsToFloats(long...) - Static method in class uk.co.parnmatt.vector.convert.VectorConverters
Converts a long vector into a float vector

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 mapper to 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 action to 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
An Iterator that is also a Resource

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.
shorts(Path) - Static method in class uk.co.parnmatt.vector.reader.VectorFileIterators
Reads short vectors from a file
shortsToFloats(short...) - Static method in class uk.co.parnmatt.vector.convert.VectorConverters
Converts a short vector into a float vector
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 byte as an unsigned value [0, 255] widened into a short

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.
A B C D E F G H I L M O P R S T U V 
All Classes and Interfaces|All Packages