You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Adam Antal (JIRA)" <ji...@apache.org> on 2019/06/13 11:20:00 UTC
[jira] [Updated] (HDFS-14203) Refactor OIV Delimited output entry
building mechanism
[ https://issues.apache.org/jira/browse/HDFS-14203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Antal updated HDFS-14203:
------------------------------
Attachment: HDFS-14203.002.patch
> Refactor OIV Delimited output entry building mechanism
> ------------------------------------------------------
>
> Key: HDFS-14203
> URL: https://issues.apache.org/jira/browse/HDFS-14203
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: tools
> Affects Versions: 3.2.0
> Reporter: Adam Antal
> Assignee: Adam Antal
> Priority: Minor
> Attachments: HDFS-14203.001.patch, HDFS-14203.002.patch
>
>
> As of some recent improvements in the OIV tool, fields are getting added. For sustainability I propose to introduce a Builder pattern in {{PBImageDelimitedTextWriter}}, which is also prettier than constructing entries like this:
> {code:java}
> case SYMLINK:
> INodeSymlink s = inode.getSymlink();
> p = getPermission(s.getPermission());
> append(buffer, 0); // Replication
> append(buffer, formatDate(s.getModificationTime()));
> append(buffer, formatDate(s.getAccessTime()));
> append(buffer, 0); // Block size.
> append(buffer, 0); // Num blocks.
> append(buffer, 0); // Num bytes.
> append(buffer, 0); // NS_QUOTA
> append(buffer, 0); // DS_QUOTA
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org