cool-core/src/main/java/com/nus/cool/loader/DataLoader.java
private ChunkWS switchChunk(DataOutputStream out, ChunkWS chunk) throws IOException {
        offset += chunk.writeTo(out);
        chunkOffsets.add(offset - Ints.BYTES);
        return ChunkWS.newChunk(tableSchema, metaFields, offset);
    }
/**
     * Change to a new chunk
     * @param out The output stream tied to the current cublet
     * @param chunk The current chunk to finalize
     * @return a new chunk to write data
     * @throws IOException
     */
Change to a new chunk
@param out The output stream tied to the current cublet
@param chunk The current chunk to finalize
@return a new chunk to write data
@throws IOException
Change to a new chunk @param out The output stream tied to the current cublet @param chunk The current chunk to finalize @return a new chunk to write data @throws IOException
private ChunkWS switchChunk(DataOutputStream out, ChunkWS chunk) throws IOException {
        offset += chunk.writeTo(out);
        chunkOffsets.add(offset - Ints.BYTES);
        return ChunkWS.newChunk(tableSchema, metaFields, offset);
    }
private ChunkWS switchChunk ( DataOutputStream out , ChunkWS chunk ) throws IOException { offset += chunk . writeTo ( out ) ; chunkOffsets . add ( offset - Ints . BYTES ) ; return ChunkWS . newChunk ( tableSchema , metaFields , offset ) ; }
Change to a new chunk
 @param out The output stream tied to the current cublet
 @param chunk The current chunk to finalize
 @return a new chunk to write data
 @throws IOException
Change to a new chunk @param out The output stream tied to the current cublet @param chunk The current chunk to finalize @return a new chunk to write data @throws IOException