carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jackylk <...@git.apache.org>
Subject [GitHub] carbondata pull request #1146: [CARBONDATA-1286] Change Query related RDD to...
Date Tue, 11 Jul 2017 06:13:45 GMT
Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1146#discussion_r126603356
  
    --- Diff: core/src/main/java/org/apache/carbondata/core/metadata/schema/table/TableInfo.java
---
    @@ -206,4 +202,68 @@ public void setStorePath(String storePath) {
         }
         return true;
       }
    +
    +  /**
    +   * This method will return the table size. Default table block size will be considered
    +   * in case not specified by the user
    +   */
    +  int getTableBlockSizeInMB() {
    +    String tableBlockSize = null;
    +    // In case of old store there will not be any map for table properties so table properties
    +    // will be null
    +    Map<String, String> tableProperties = getFactTable().getTableProperties();
    +    if (null != tableProperties) {
    +      tableBlockSize = tableProperties.get(CarbonCommonConstants.TABLE_BLOCKSIZE);
    +    }
    +    if (null == tableBlockSize) {
    +      tableBlockSize = CarbonCommonConstants.BLOCK_SIZE_DEFAULT_VAL;
    +      LOGGER.info("Table block size not specified for " + getTableUniqueName()
    +          + ". Therefore considering the default value "
    +          + CarbonCommonConstants.BLOCK_SIZE_DEFAULT_VAL + " MB");
    +    }
    +    return Integer.parseInt(tableBlockSize);
    +  }
    +
    +  @Override
    +  public void write(DataOutput out) throws IOException {
    +    WritableUtil.writeString(out, databaseName);
    --- End diff --
    
    fixed


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message