Package cellmate.accumulo.cell

Examples of cellmate.accumulo.cell.SecurityStringValueCell


        byte [] valueBytes = dbItem.getValue().get();
        String value = valueBytes.length > 0 ? new String(valueBytes) : Defaults.defaultValue(String.class);
        String colVis = dbItem.getKey().getColumnVisibility().toString();
        String colFam = dbItem.getKey().getColumnFamily().toString();
        long timestamp = dbItem.getKey().getTimestamp();
        SecurityStringValueCell cell;
        if(recordCF & recordTsAndColVis) {
            cell = new SecurityStringValueCell(label, value, timestamp, colVis, colFam);
        } else if (recordCF) {
            cell = new SecurityStringValueCell(label, value, colFam);
        } else if (recordTsAndColVis) {
            cell = new SecurityStringValueCell(label, value, timestamp, colVis);
        } else {
            cell = new SecurityStringValueCell(label, value);
        }
        cellGroup.addCell(cell);
        return cellGroup;
    }
View Full Code Here


                    reader.read(localParams, AccumuloCellTransformers.stringValueQualtoLabel());
            assertNotNull(items);
            assertEquals(items.size(), 1);

            SingleMultiValueCellExtractor extractor = new SingleMultiValueCellExtractor();
            SecurityStringValueCell cell = extractor.getSingleCellByLabel(items.get(0).getInternalList(), "name");
            String value = CellReflector.getValueAsString(cell);
            assertNotNull(value);
            assertEquals(value, "brian");

        } catch (Exception e){
View Full Code Here

            assertEquals(items.get(1).getInternalList().size(), 3);

            SingleMultiValueCellExtractor extractor = new SingleMultiValueCellExtractor();
            CommonAuxiliaryFieldsCellExtractor auxExtractor = new CommonAuxiliaryFieldsCellExtractor();

            SecurityStringValueCell cell = extractor.getSingleCellByLabel(items.get(0).getInternalList(), "name");

            String value = CellReflector.getValueAsString(cell);
            assertNotNull(value);
            assertEquals(value, "brian");
            assertEquals(CellReflector.getColFam(cell), INFO_CF.toString());
View Full Code Here

            assertEquals(items.get(1).getInternalList().size(), 1);

            SingleMultiValueCellExtractor extractor = new SingleMultiValueCellExtractor();
            CommonAuxiliaryFieldsCellExtractor auxExtractor = new CommonAuxiliaryFieldsCellExtractor();

            SecurityStringValueCell cell = extractor.getSingleCellByLabel(items.get(0).getInternalList(), "name");

            String value = CellReflector.getValueAsString(cell);
            assertNotNull(value);
            assertEquals(value, "brian");
            assertEquals(CellReflector.getColFam(cell), INFO_CF.toString());
View Full Code Here

TOP

Related Classes of cellmate.accumulo.cell.SecurityStringValueCell

Copyright © 2018 www.massapicom. 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.