src/java/org/apache/cassandra/io/compress/CompressionMetadata.java
/**
     * Create metadata about given compressed file including uncompressed data length, chunk size
     * and list of the chunk offsets of the compressed data.
     *
     * This is an expensive operation! Don't create more than one for each
     * sstable.
     *
     * @param dataFilePath Path to the compressed file
     *
     * @return metadata about given compressed file.
     */
Create metadata about given compressed file including uncompressed data length, chunk size
and list of the chunk offsets of the compressed data.

This is an expensive operation. Don't create more than one for each
sstable.

@param dataFilePath Path to the compressed file

@return metadata about given compressed file.
Create metadata about given compressed file including uncompressed data length chunk size and list of the chunk offsets of the compressed data . This is an expensive operation . Don ' t create more than one for each sstable . @param dataFilePath Path to the compressed file @return metadata about given compressed file .
public static CompressionMetadata create(String dataFilePath)
    {
        Descriptor desc = Descriptor.fromFilename(dataFilePath);
        try
        {
            return new CompressionMetadata(desc.filenameFor(Component.COMPRESSION_INFO), new File(dataFilePath).length());
        }
        catch (IOException e)
        {
            throw new IOError(e);
        }
    }
public static CompressionMetadata create ( String dataFilePath ) { Descriptor desc = Descriptor . fromFilename ( dataFilePath ) ; try { return new CompressionMetadata ( desc . filenameFor ( Component . COMPRESSION_INFO ) , new File ( dataFilePath ) . length ( ) ) ; } catch ( IOException e ) { throw new IOError ( e ) ; } }
Create metadata about given compressed file including uncompressed data length, chunk size
 and list of the chunk offsets of the compressed data.
Create metadata about given compressed file including uncompressed data length chunk size and list of the chunk offsets of the compressed data .