[ 
https://issues.apache.org/jira/browse/HAWQ-44?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15002785#comment-15002785
 ] 

ASF GitHub Bot commented on HAWQ-44:
------------------------------------

Github user shivzone commented on a diff in the pull request:

    https://github.com/apache/incubator-hawq/pull/92#discussion_r44705929
  
    --- Diff: 
pxf/pxf-api/src/main/java/org/apache/hawq/pxf/api/FragmentsStats.java ---
    @@ -0,0 +1,226 @@
    +package org.apache.hawq.pxf.api;
    +
    +import org.apache.commons.logging.Log;
    +import org.apache.commons.logging.LogFactory;
    +import org.codehaus.jackson.map.ObjectMapper;
    +
    +import java.io.IOException;
    +
    +/**
    + * FragmentsStats holds statistics for a given path.
    + */
    +public class FragmentsStats {
    +
    +    /**
    +     * Default fragment size. Assuming a fragment is equivalent to a block 
in
    +     * HDFS, we guess a full fragment size is 64MB.
    +     */
    +    public static final long DEFAULT_FRAGMENT_SIZE = 67108864L;
    +
    +    private static Log Log = LogFactory.getLog(FragmentsStats.class);
    +
    +    // number of fragments
    +    private long fragmentsNumber;
    +    // first fragment size
    +    private SizeAndUnit firstFragmentSize;
    +    // total fragments size
    +    private SizeAndUnit totalSize;
    +
    +    /**
    +     * Enum to represent unit (Bytes/MB/GB/TB)
    +     */
    +    public enum SizeUnit {
    --- End diff --
    
    Good job with the handling of large size


> Advanced statistics for PXF tables
> ----------------------------------
>
>                 Key: HAWQ-44
>                 URL: https://issues.apache.org/jira/browse/HAWQ-44
>             Project: Apache HAWQ
>          Issue Type: New Feature
>          Components: PXF
>            Reporter: Noa Horn
>            Assignee: Noa Horn
>              Labels: Performance
>
> PXF will get full statistics on a table using sampling.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to