format/src/main/java/com/github/sadikovi/riff/Riff.java
/**
     * Select HDFS buffer size.
     * @param conf configuration
     * @return HDFS buffer size when open or create file
     */
Select HDFS buffer size.
@param conf configuration
@return HDFS buffer size when open or create file
Select HDFS buffer size . @param conf configuration @return HDFS buffer size when open or create file
static int hdfsBufferSize(Configuration conf) {
      int pageSize = 4096;
      int bytes = conf.getInt(HDFS_BUFFER_SIZE, HDFS_BUFFER_SIZE_DEFAULT);
      if (bytes > HDFS_BUFFER_SIZE_DEFAULT && bytes % pageSize == 0) return bytes;
      return HDFS_BUFFER_SIZE_DEFAULT;
    }
static int hdfsBufferSize ( Configuration conf ) { int pageSize = 4096 ; int bytes = conf . getInt ( HDFS_BUFFER_SIZE , HDFS_BUFFER_SIZE_DEFAULT ) ; if ( bytes > HDFS_BUFFER_SIZE_DEFAULT && bytes % pageSize == 0 ) return bytes ; return HDFS_BUFFER_SIZE_DEFAULT ; }
Select HDFS buffer size.
Select HDFS buffer size .
// bytes should be multiple of hardware pages 4096 // otherwise return default size