src/java/org/apache/cassandra/io/sstable/SSTableWriter.java
/**
         * Closes the index and bloomfilter, making the public state of this writer valid for consumption.
         */
Closes the index and bloomfilter, making the public state of this writer valid for consumption.
Closes the index and bloomfilter making the public state of this writer valid for consumption .
@Override
        public void close() throws IOException
        {
            FileOutputStream fos = new FileOutputStream(descriptor.filenameFor(SSTable.COMPONENT_FILTER));
            DataOutputStream stream = new DataOutputStream(fos);
            BloomFilter.serializer().serialize(bf, stream);
            stream.flush();
            fos.getFD().sync();
            stream.close();
            long position = indexFile.getFilePointer();
            indexFile.close(); 
            FileUtils.truncate(indexFile.getPath(), position);
            summary.complete();
        }
@ Override public void close ( ) throws IOException { FileOutputStream fos = new FileOutputStream ( descriptor . filenameFor ( SSTable . COMPONENT_FILTER ) ) ; DataOutputStream stream = new DataOutputStream ( fos ) ; BloomFilter . serializer ( ) . serialize ( bf , stream ) ; stream . flush ( ) ; fos . getFD ( ) . sync ( ) ; stream . close ( ) ; long position = indexFile . getFilePointer ( ) ; indexFile . close ( ) ; FileUtils . truncate ( indexFile . getPath ( ) , position ) ; summary . complete ( ) ; }
Closes the index and bloomfilter, making the public state of this writer valid for consumption.
Closes the index and bloomfilter making the public state of this writer valid for consumption .
// bloom filter // index // calls force // finalize in-memory index state