/** * Converts the float argument to an <code>int</code> using the * <code>floatToIntBits</code> method in class <code>Float</code>, * and then writes that <code>int</code> value to the underlying * output stream as a 4-byte quantity, low byte first. If no * exception is thrown, the counter <code>written</code> is * incremented by <code>4</code>. * * @param v a <code>float</code> value to be written. * @exception IOException if an I/O error occurs. * @see java.io.FilterOutputStream#out * @see java.lang.Float#floatToIntBits(float) */ public final void writeFloat(float v) throws IOException { writeInt(Float.floatToIntBits(v)); }
/** * Converts the float argument to an <code>int</code> using the * <code>floatToIntBits</code> method in class <code>Float</code>, * and then writes that <code>int</code> value to the underlying * output stream as a 4-byte quantity, low byte first. If no * exception is thrown, the counter <code>written</code> is * incremented by <code>4</code>. * * @param v a <code>float</code> value to be written. * @exception IOException if an I/O error occurs. * @see java.io.FilterOutputStream#out * @see java.lang.Float#floatToIntBits(float) */ public final void writeFloat(float v) throws IOException { writeInt(Float.floatToIntBits(v)); }
@Override public final void writeInteger(int v) { try { out.writeInt(v); } catch (IOException e) { throw new ParquetEncodingException("could not write int", e); } }
@Override public final void writeInteger(int v) { try { out.writeInt(v); } catch (IOException e) { throw new ParquetEncodingException("could not write int", e); } }
@Override public final void writeBytes(Binary v) { try { out.writeInt(v.length()); v.writeTo(out); } catch (IOException e) { throw new ParquetEncodingException("could not write bytes", e); } }
@Override public final void writeBytes(Binary v) { try { out.writeInt(v.length()); v.writeTo(out); } catch (IOException e) { throw new ParquetEncodingException("could not write bytes", e); } }