Class VectorReader.Decoding
java.lang.Object
uk.co.parnmatt.vector.reader.VectorReader.Decoding
- Enclosing class:
VectorReader
The choice of element type to decode each vector into.
- Since:
- 0.4.0
-
Method Summary
Modifier and TypeMethodDescription<E> CloseableIterator<E> as(ElementType<E> type) Read vectors of the given element type.CloseableIterator<byte[]> bytes()Deprecated, for removal: This API element is subject to removal in a future version.CloseableIterator<double[]> doubles()Deprecated, for removal: This API element is subject to removal in a future version.useas(ElementType)withElementType.FLOAT64insteadCloseableIterator<float[]> floats()Deprecated, for removal: This API element is subject to removal in a future version.useas(ElementType)withElementType.FLOAT32insteadCloseableIterator<int[]> ints()Deprecated, for removal: This API element is subject to removal in a future version.useas(ElementType)withElementType.INT32insteadCloseableIterator<long[]> longs()Deprecated, for removal: This API element is subject to removal in a future version.useas(ElementType)withElementType.INT64insteadCloseableIterator<short[]> shorts()Deprecated, for removal: This API element is subject to removal in a future version.useas(ElementType)withElementType.INT16instead
-
Method Details
-
as
Read vectors of the given element type.- Type Parameters:
E- the array type a vector decodes into- Parameters:
type- the element type the source was written with- Returns:
- a closeable iterator over the source's vectors
- Throws:
IOException- Since:
- 1.1.0
-
bytes
@Deprecated(since="1.1.0", forRemoval=true) @MustBeClosed public CloseableIterator<byte[]> bytes() throws IOExceptionDeprecated, for removal: This API element is subject to removal in a future version.useas(ElementType)withElementType.INT8insteadReadbytevectors.- Returns:
- a closeable iterator over the source's
bytevectors - Throws:
IOException
-
shorts
@Deprecated(since="1.1.0", forRemoval=true) @MustBeClosed public CloseableIterator<short[]> shorts() throws IOExceptionDeprecated, for removal: This API element is subject to removal in a future version.useas(ElementType)withElementType.INT16insteadReadshortvectors.- Returns:
- a closeable iterator over the source's
shortvectors - Throws:
IOException
-
ints
@Deprecated(since="1.1.0", forRemoval=true) @MustBeClosed public CloseableIterator<int[]> ints() throws IOExceptionDeprecated, for removal: This API element is subject to removal in a future version.useas(ElementType)withElementType.INT32insteadReadintvectors.- Returns:
- a closeable iterator over the source's
intvectors - Throws:
IOException
-
longs
@Deprecated(since="1.1.0", forRemoval=true) @MustBeClosed public CloseableIterator<long[]> longs() throws IOExceptionDeprecated, for removal: This API element is subject to removal in a future version.useas(ElementType)withElementType.INT64insteadReadlongvectors.- Returns:
- a closeable iterator over the source's
longvectors - Throws:
IOException
-
floats
@Deprecated(since="1.1.0", forRemoval=true) @MustBeClosed public CloseableIterator<float[]> floats() throws IOExceptionDeprecated, for removal: This API element is subject to removal in a future version.useas(ElementType)withElementType.FLOAT32insteadReadfloatvectors.- Returns:
- a closeable iterator over the source's
floatvectors - Throws:
IOException
-
doubles
@Deprecated(since="1.1.0", forRemoval=true) @MustBeClosed public CloseableIterator<double[]> doubles() throws IOExceptionDeprecated, for removal: This API element is subject to removal in a future version.useas(ElementType)withElementType.FLOAT64insteadReaddoublevectors.- Returns:
- a closeable iterator over the source's
doublevectors - Throws:
IOException
-
as(ElementType)withElementType.INT8instead