carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ravipesala <>
Subject [GitHub] carbondata pull request #971: [CARBONDATA-1015] Extract interface in data lo...
Date Fri, 02 Jun 2017 08:05:59 GMT
Github user ravipesala commented on a diff in the pull request:
    --- Diff: core/src/main/java/org/apache/carbondata/core/util/ ---
    @@ -670,4 +671,23 @@ public static int putBytes(byte[] tgtBytes, int tgtOffset, byte[]
srcBytes, int
         System.arraycopy(srcBytes, srcOffset, tgtBytes, tgtOffset, srcLength);
         return tgtOffset + srcLength;
    +  /**
    +   * flatten the byte[][] to byte[] and return data after applying compression by compressor
    +   * @param compressor compressor to use
    +   * @return compressed data
    +   */
    +  public static byte[] flattenAndCompress(Compressor compressor, byte[][] byteArrayData)
    --- End diff --
    Since it is ByteUtil, better use only flatten  not compress, compress can be done in caller

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message