public long serializedSize(CellPath path) { return ByteBufferUtil.serializedSizeWithVIntLength(path.get(0)); }
public long serializedSize(CellPath path) { return ByteBufferUtil.serializedSizeWithVIntLength(path.get(0)); }
public long serializedSize(CellPath path) { return ByteBufferUtil.serializedSizeWithVIntLength(path.get(0)); }
public long serializedSize(CellPath path) { return ByteBufferUtil.serializedSizeWithVIntLength(path.get(0)); }
private long sizeofColumnsWithTypes(Map<ByteBuffer, AbstractType<?>> columns) { long size = TypeSizes.sizeofUnsignedVInt(columns.size()); for (Map.Entry<ByteBuffer, AbstractType<?>> entry : columns.entrySet()) { size += ByteBufferUtil.serializedSizeWithVIntLength(entry.getKey()); size += sizeofType(entry.getValue()); } return size; }
private long sizeofColumnsWithTypes(Map<ByteBuffer, AbstractType<?>> columns) { long size = TypeSizes.sizeofUnsignedVInt(columns.size()); for (Map.Entry<ByteBuffer, AbstractType<?>> entry : columns.entrySet()) { size += ByteBufferUtil.serializedSizeWithVIntLength(entry.getKey()); size += sizeofType(entry.getValue()); } return size; }
private long sizeofColumnsWithTypes(Map<ByteBuffer, AbstractType<?>> columns) { long size = TypeSizes.sizeofUnsignedVInt(columns.size()); for (Map.Entry<ByteBuffer, AbstractType<?>> entry : columns.entrySet()) { size += ByteBufferUtil.serializedSizeWithVIntLength(entry.getKey()); size += sizeofType(entry.getValue()); } return size; }
private long sizeofColumnsWithTypes(Map<ByteBuffer, AbstractType<?>> columns) { long size = TypeSizes.sizeofUnsignedVInt(columns.size()); for (Map.Entry<ByteBuffer, AbstractType<?>> entry : columns.entrySet()) { size += ByteBufferUtil.serializedSizeWithVIntLength(entry.getKey()); size += sizeofType(entry.getValue()); } return size; }
public long serializedSize(Columns columns) { long size = TypeSizes.sizeofUnsignedVInt(columns.size()); for (ColumnDefinition column : columns) size += ByteBufferUtil.serializedSizeWithVIntLength(column.name.bytes); return size; }
public long serializedSize(Columns columns) { long size = TypeSizes.sizeofUnsignedVInt(columns.size()); for (ColumnDefinition column : columns) size += ByteBufferUtil.serializedSizeWithVIntLength(column.name.bytes); return size; }
private int sizeofType(AbstractType<?> type) { return ByteBufferUtil.serializedSizeWithVIntLength(UTF8Type.instance.decompose(type.toString())); } }
private int sizeofType(AbstractType<?> type) { return ByteBufferUtil.serializedSizeWithVIntLength(UTF8Type.instance.decompose(type.toString())); } }
private int sizeofType(AbstractType<?> type) { return ByteBufferUtil.serializedSizeWithVIntLength(UTF8Type.instance.decompose(type.toString())); } }
public long serializedSize(Columns columns) { long size = TypeSizes.sizeofUnsignedVInt(columns.size()); for (ColumnDefinition column : columns) size += ByteBufferUtil.serializedSizeWithVIntLength(column.name.bytes); return size; }
public long serializedSize(Columns columns) { long size = TypeSizes.sizeofUnsignedVInt(columns.size()); for (ColumnDefinition column : columns) size += ByteBufferUtil.serializedSizeWithVIntLength(column.name.bytes); return size; }
private int sizeofType(AbstractType<?> type) { return ByteBufferUtil.serializedSizeWithVIntLength(UTF8Type.instance.decompose(type.toString())); } }
public int serializedSize(ProtocolVersion protocolVersion) { assert rowMark == null || protocolVersion == rowMark.protocolVersion; ByteBuffer pk = partitionKey == null ? ByteBufferUtil.EMPTY_BYTE_BUFFER : partitionKey; ByteBuffer mark = rowMark == null ? ByteBufferUtil.EMPTY_BYTE_BUFFER : rowMark.mark; if (protocolVersion.isSmallerOrEqualTo(ProtocolVersion.V3)) { return ByteBufferUtil.serializedSizeWithShortLength(pk) + ByteBufferUtil.serializedSizeWithShortLength(mark) + 8; // remaining & remainingInPartition } else { return ByteBufferUtil.serializedSizeWithVIntLength(pk) + ByteBufferUtil.serializedSizeWithVIntLength(mark) + TypeSizes.sizeofUnsignedVInt(remaining) + TypeSizes.sizeofUnsignedVInt(remainingInPartition); } }
public int serializedSize(ProtocolVersion protocolVersion) { assert rowMark == null || protocolVersion == rowMark.protocolVersion; ByteBuffer pk = partitionKey == null ? ByteBufferUtil.EMPTY_BYTE_BUFFER : partitionKey; ByteBuffer mark = rowMark == null ? ByteBufferUtil.EMPTY_BYTE_BUFFER : rowMark.mark; if (protocolVersion.isSmallerOrEqualTo(ProtocolVersion.V3)) { return ByteBufferUtil.serializedSizeWithShortLength(pk) + ByteBufferUtil.serializedSizeWithShortLength(mark) + 8; // remaining & remainingInPartition } else { return ByteBufferUtil.serializedSizeWithVIntLength(pk) + ByteBufferUtil.serializedSizeWithVIntLength(mark) + TypeSizes.sizeofUnsignedVInt(remaining) + TypeSizes.sizeofUnsignedVInt(remainingInPartition); } }
public long serializedSize(GroupingState state, int version, ClusteringComparator comparator) { boolean hasPartitionKey = state.partitionKey != null; long size = TypeSizes.sizeof(hasPartitionKey); if (hasPartitionKey) { size += ByteBufferUtil.serializedSizeWithVIntLength(state.partitionKey); boolean hasClustering = state.hasClustering(); size += TypeSizes.sizeof(hasClustering); if (hasClustering) { size += Clustering.serializer.serializedSize(state.clustering, version, comparator.subtypes()); } } return size; } }
public long serializedSize(GroupingState state, int version, ClusteringComparator comparator) { boolean hasPartitionKey = state.partitionKey != null; long size = TypeSizes.sizeof(hasPartitionKey); if (hasPartitionKey) { size += ByteBufferUtil.serializedSizeWithVIntLength(state.partitionKey); boolean hasClustering = state.hasClustering(); size += TypeSizes.sizeof(hasClustering); if (hasClustering) { size += Clustering.serializer.serializedSize(state.clustering, version, comparator.subtypes()); } } return size; } }