/** * Convenience method to get the name buffer for the specified column and * decompose it into the name and timestamp. */ public static Pair<byte[], Long> decomposeName(Column column) { ByteBuffer nameBuffer; if (column.isSetName()) { nameBuffer = column.bufferForName(); } else { // the column buffer has not yet been set/cached // so we must fallback on the slowpath and force // the transform to bytes and wrap ourselves nameBuffer = ByteBuffer.wrap(column.getName()); } return decompose(nameBuffer); }
/** * Convenience method to get the name buffer for the specified column and * decompose it into the name and timestamp. */ public static Pair<byte[], Long> decomposeName(Column column) { ByteBuffer nameBuffer; if (column.isSetName()) { nameBuffer = column.bufferForName(); } else { // the column buffer has not yet been set/cached // so we must fallback on the slowpath and force // the transform to bytes and wrap ourselves nameBuffer = ByteBuffer.wrap(column.getName()); } return decompose(nameBuffer); }