cool-core/src/main/java/com/nus/cool/loader/DataLoader.java
private void closeCublet(DataOutputStream out) throws IOException {
        int headOffset = offset;
        out.writeInt(IntegerUtil.toNativeByteOrder(chunkOffsets.size()));
        for(int chunkOff : chunkOffsets) {
            out.writeInt(IntegerUtil.toNativeByteOrder(chunkOff));
        }
        out.writeInt(IntegerUtil.toNativeByteOrder(headOffset));
        out.flush();
        out.close();
    }
/**
     * Close current cublet. Write chunk header offsets and header offset
     *  into the cublet
     * @param out The output stream tied to the current cublet
     * @throws IOException
     */
Close current cublet. Write chunk header offsets and header offset
into the cublet
@param out The output stream tied to the current cublet
@throws IOException
Close current cublet . Write chunk header offsets and header offset into the cublet @param out The output stream tied to the current cublet @throws IOException
private void closeCublet(DataOutputStream out) throws IOException {
        int headOffset = offset;
        out.writeInt(IntegerUtil.toNativeByteOrder(chunkOffsets.size()));
        for(int chunkOff : chunkOffsets) {
            out.writeInt(IntegerUtil.toNativeByteOrder(chunkOff));
        }
        out.writeInt(IntegerUtil.toNativeByteOrder(headOffset));
        out.flush();
        out.close();
    }
private void closeCublet ( DataOutputStream out ) throws IOException { int headOffset = offset ; out . writeInt ( IntegerUtil . toNativeByteOrder ( chunkOffsets . size ( ) ) ) ; for ( int chunkOff : chunkOffsets ) { out . writeInt ( IntegerUtil . toNativeByteOrder ( chunkOff ) ) ; } out . writeInt ( IntegerUtil . toNativeByteOrder ( headOffset ) ) ; out . flush ( ) ; out . close ( ) ; }
Close current cublet.
Close current cublet .