Examples of IntValueCell


Examples of cellmate.cell.IntValueCell

                        byte[] valBytes = dbItem.getValue().get();
                        if(valBytes.length > 0)
                            aggValue += ByteBuffer.wrap(valBytes).asIntBuffer().get();
                    }
                } else { //null dbItem is final signal and reader to write aggValue as cell
                    IntValueCell cell = new IntValueCell(qual, aggValue);
                    group.addCell(cell);
                }
                return group;
            }
        };
View Full Code Here

Examples of cellmate.cell.IntValueCell

                                qualAggs.put(qual, qualAggs.get(qual) + ByteBuffer.wrap(valBytes).asIntBuffer().get());
                        }
                    }
                } else {
                    for(Map.Entry<String,Integer> agg : qualAggs.entrySet()) {
                        IntValueCell cell = new IntValueCell(agg.getKey(), agg.getValue());
                        group.addCell(cell);
                    }
                }
                return group;
            }
View Full Code Here

Examples of cellmate.cell.IntValueCell

            public CellGroup<IntValueCell> apply(Map.Entry<Key, Value> dbItem, CellGroup<IntValueCell> group)
                    throws CellExtractorException {
                if(dbItem != null) {
                    totalCount++;
                } else {
                    IntValueCell cell = new IntValueCell(LABEL, totalCount);
                    group.addCell(cell);
                }
                return group;
            }
        };
View Full Code Here

Examples of cellmate.cell.IntValueCell

                    if(prevLabel != null && !prevLabel.equals(dbItem.getKey().getRow().toString())) {
                        totalCount++;
                    }
                    prevLabel = dbItem.getKey().getRow().toString();
                } else {
                    IntValueCell cell = new IntValueCell(LABEL, totalCount+1); //first transition will be ignored. offset by one to account for this.
                    group.addCell(cell);
                }
                return group;
            }
        };
View Full Code Here

Examples of cellmate.cell.IntValueCell

    public void missingColFam() {

        ImmutableList<CellGroup<IntValueCell>> missingColFamGroup;
        ImmutableList.Builder<CellGroup<IntValueCell>> builder3 = ImmutableList.builder();
        CellGroup<IntValueCell> row5 = new CellGroup<IntValueCell>("row5");
        row5.addCell(new IntValueCell("l",1));
        builder3.add(row5);
        missingColFamGroup = builder3.build();

        assertEquals(missingColFamGroup.size(), 1);
        assertEquals(missingColFamGroup.get(0).getInternalList().size(), 1);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.