private void appendGeneralBloomfilter(final Cell cell) throws IOException { if (this.generalBloomFilterWriter != null) { /* * http://2.bp.blogspot.com/_Cib_A77V54U/StZMrzaKufI/AAAAAAAAADo/ZhK7bGoJdMQ/s400/KeyValue.png * Key = RowLen + Row + FamilyLen + Column [Family + Qualifier] + Timestamp * * 4 Types of Filtering: * 1. Row = Row * 2. RowCol = Row + Qualifier * 3. RowPrefixFixedLength = Fixed Length Row Prefix * 4. RowPrefixDelimiter = Delimited Row Prefix */ bloomContext.writeBloom(cell); } }
private void appendDeleteFamilyBloomFilter(final Cell cell) throws IOException { if (!PrivateCellUtil.isDeleteFamily(cell) && !PrivateCellUtil.isDeleteFamilyVersion(cell)) { return; } // increase the number of delete family in the store file deleteFamilyCnt++; if (this.deleteFamilyBloomFilterWriter != null) { deleteFamilyBloomContext.writeBloom(cell); } }