/** * Bytes * for this operation are read from the contained * input stream. * * @return the next four bytes of this input stream, interpreted as a * <code>float</code>. * @exception EOFException if this input stream reaches the end before * reading four bytes. * @exception IOException the stream has been closed and the contained * input stream does not support reading after close, or * another I/O error occurs. * @see java.lang.Float#intBitsToFloat(int) */ public final float readFloat() throws IOException { return Float.intBitsToFloat(readInt()); }
/** * Bytes * for this operation are read from the contained * input stream. * * @return the next four bytes of this input stream, interpreted as a * <code>float</code>. * @exception EOFException if this input stream reaches the end before * reading four bytes. * @exception IOException the stream has been closed and the contained * input stream does not support reading after close, or * another I/O error occurs. * @see java.lang.Float#intBitsToFloat(int) */ public final float readFloat() throws IOException { return Float.intBitsToFloat(readInt()); }
/** * Bytes * for this operation are read from the contained * input stream. * * @return the next four bytes of this input stream, interpreted as a * <code>float</code>. * @exception EOFException if this input stream reaches the end before * reading four bytes. * @exception IOException the stream has been closed and the contained * input stream does not support reading after close, or * another I/O error occurs. * @see java.lang.Float#intBitsToFloat(int) */ public final float readFloat() throws IOException { return Float.intBitsToFloat(readInt()); }
@Override public int readInteger() { try { return in.readInt(); } catch (IOException e) { throw new ParquetDecodingException("could not read int", e); } }
@Override public int readInteger() { try { return in.readInt(); } catch (IOException e) { throw new ParquetDecodingException("could not read int", e); } } }
@Override public Binary readBytes() { try { byte[] value = new byte[in.readInt()]; in.readFully(value); // TODO: we don't need to read to an array. return Binary.fromByteArray(value); } catch (IOException e) { throw new ParquetDecodingException("could not read bytes", e); } }