private long size(RowColumn rowCol) { Column col = rowCol.getColumn(); return (long) rowCol.getRow().length() + col.getFamily().length() + col.getQualifier().length() + col.getVisibility().length(); }
private static RowColumn buildRowColumn(KeyBuilder key) { if (key.infinite || key.row.equals(Bytes.EMPTY)) { return RowColumn.EMPTY; } else if (key.cf.equals(Bytes.EMPTY)) { return new RowColumn(key.row); } else if (key.cq.equals(Bytes.EMPTY)) { return new RowColumn(key.row, new Column(key.cf)); } else if (key.cv.equals(Bytes.EMPTY)) { return new RowColumn(key.row, new Column(key.cf, key.cq)); } return new RowColumn(key.row, new Column(key.cf, key.cq, key.cv)); }
/** * Get the column family as a string using UTF-8 encoding. */ public String getsQualifier() { return getQualifier().toString(); }
/** * Get the column visibility as a string using UTF-8 encoding. */ public String getsVisibility() { return getVisibility().toString(); }
private long size(RowColumn rowCol) { Column col = rowCol.getColumn(); return (long) rowCol.getRow().length() + col.getFamily().length() + col.getQualifier().length() + col.getVisibility().length(); }
private static RowColumn buildRowColumn(KeyBuilder key) { if (key.infinite || key.row.equals(Bytes.EMPTY)) { return RowColumn.EMPTY; } else if (key.cf.equals(Bytes.EMPTY)) { return new RowColumn(key.row); } else if (key.cq.equals(Bytes.EMPTY)) { return new RowColumn(key.row, new Column(key.cf)); } else if (key.cv.equals(Bytes.EMPTY)) { return new RowColumn(key.row, new Column(key.cf, key.cq)); } return new RowColumn(key.row, new Column(key.cf, key.cq, key.cv)); }