private static void validateColumnNames(Iterable<CellName> columns) throws InvalidRequestException { for (CellName name : columns) { if (name.dataSize() > org.apache.cassandra.db.Cell.MAX_NAME_LENGTH) throw new InvalidRequestException(String.format("column name is too long (%s > %s)", name.dataSize(), org.apache.cassandra.db.Cell.MAX_NAME_LENGTH)); if (name.isEmpty()) throw new InvalidRequestException("zero-length column name"); } }
public Reclaimer reclaimImmediately(Cell cell) { onHeap().released(cell.name().dataSize() + cell.value().remaining()); return this; }
public int cellDataSize() { return name().dataSize() + value().remaining() + TypeSizes.NATIVE.sizeof(timestamp()); }