Hi Owen, thanks for the feedback and recommendations .

In the current requirement it is a one shot deal, capture all records in the 
ORC file to be consumed individually by another phase down the solution's 
pipeline (read once).
I guess the seek/position is required even if the read operation is just going 
forward over the records?

Will try making the wrapper and watching out for your PositionedReadable 
extension.

Regards,
Ronald Matamoros

From: Owen O'Malley <[email protected]>
Sent: Thursday, February 20, 2020 2:18 PM
To: Matamoros, Ronald <[email protected]>
Cc: [email protected]; Sobrado Barquero, H. 
<[email protected]>; Ortega Ugalde, Ronny 
<[email protected]>
Subject: [External] Re: Creating a Reader from a Java InputStream

This message is from an EXTERNAL SENDER - be CAUTIOUS, particularly with links 
and attachments.
________________________________________

Just to be a little more clear, Java’s InputStream doesn’t provide the 
primitive methods that we need.  We’d always need a sub interface That provides 
positioned reads and there hasn’t been any consensus about which extension to 
use.

Effectively what we need is Hadoop’s PositionedReadable  with ByteBuffers. I’m 
actually currently defining the extension to PositionedReadable  to add an 
async read method with ByteBuffers.
https://urldefense.proofpoint.com/v2/url?u=https-3A__hadoop.apache.org_docs_current_api_org_apache_hadoop_fs_PositionedReadable.html&d=DwMFaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=tBsXSo4NJM19Wqjkx1fQL1JPREMPERjRQCgc40wLnzw&m=cizXgFgcv3-hG0M8l-YOTBDYsgkCaVzPEJ7Fwtd0CNU&s=SLTclrj_O57UHFpsX6GGvoQepTVhIPz3Uw2SfJ71I74&e=

.. Owen


On Feb 20, 2020, at 11:01, Matamoros, Ronald 
<mailto:[email protected]> wrote:

________________________________

This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise confidential information. If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the e-mail by you is prohibited. Where allowed by local law, electronic 
communications with Accenture and its affiliates, including e-mail and instant 
messaging (including content), may be scanned by our systems for the purposes 
of information security and assessment of internal compliance with Accenture 
policy. Your privacy is important to us. Accenture uses your personal data only 
in compliance with data protection laws. For further information on how 
Accenture processes your personal data, please see our privacy statement at 
https://www.accenture.com/us-en/privacy-policy.
______________________________________________________________________________________

www.accenture.com

Reply via email to