public Binary toBinary() { ByteBuffer buf = ByteBuffer.allocate(12); buf.order(ByteOrder.LITTLE_ENDIAN); buf.putLong(timeOfDayNanos); buf.putInt(julianDay); buf.flip(); return Binary.fromConstantByteBuffer(buf); }
public Binary toBinary() { ByteBuffer buf = ByteBuffer.allocate(12); buf.order(ByteOrder.LITTLE_ENDIAN); buf.putLong(timeOfDayNanos); buf.putInt(julianDay); buf.flip(); return Binary.fromConstantByteBuffer(buf); }
@Override public Binary readBytes() { try { return Binary.fromConstantByteBuffer(in.slice(length)); } catch (IOException | RuntimeException e) { throw new ParquetDecodingException("could not read bytes at offset " + in.position(), e); } }
@Override public Binary readBytes() { int length = lengthReader.readInteger(); try { return Binary.fromConstantByteBuffer(in.slice(length)); } catch (IOException e) { throw new ParquetDecodingException("Failed to read " + length + " bytes"); } }
@Override public Binary readBytes() { try { return Binary.fromConstantByteBuffer(in.slice(length)); } catch (IOException | RuntimeException e) { throw new ParquetDecodingException("could not read bytes at offset " + in.position(), e); } }
@Override public Binary readBytes() { int length = lengthReader.readInteger(); try { return Binary.fromConstantByteBuffer(in.slice(length)); } catch (IOException e) { throw new ParquetDecodingException("Failed to read " + length + " bytes"); } }
binaryDictionaryContent[i] = Binary.fromConstantByteBuffer(dictionaryBytes, offset, len); for (int i = 0; i < binaryDictionaryContent.length; i++) { binaryDictionaryContent[i] = Binary.fromConstantByteBuffer( dictionaryBytes, offset, length);
binaryDictionaryContent[i] = Binary.fromConstantByteBuffer(dictionaryBytes, offset, len); for (int i = 0; i < binaryDictionaryContent.length; i++) { binaryDictionaryContent[i] = Binary.fromConstantByteBuffer( dictionaryBytes, offset, length);
@Override public Binary readBytes() { try { int length = BytesUtils.readIntLittleEndian(in); return Binary.fromConstantByteBuffer(in.slice(length)); } catch (IOException e) { throw new ParquetDecodingException("could not read bytes at offset " + in.position(), e); } catch (RuntimeException e) { throw new ParquetDecodingException("could not read bytes at offset " + in.position(), e); } }
@Override public Binary readBytes() { try { int length = BytesUtils.readIntLittleEndian(in); return Binary.fromConstantByteBuffer(in.slice(length)); } catch (IOException e) { throw new ParquetDecodingException("could not read bytes at offset " + in.position(), e); } catch (RuntimeException e) { throw new ParquetDecodingException("could not read bytes at offset " + in.position(), e); } }