/** * Creates an immutable partition update that contains a single row update. * * @param metadata the metadata for the created update. * @param key the partition key for the partition to update. * @param row the row for the update (may be static). * * @return the newly created partition update containing only {@code row}. */ public static PartitionUpdate singleRowUpdate(CFMetaData metadata, DecoratedKey key, Row row) { return singleRowUpdate(metadata, key, row.isStatic() ? null : row, row.isStatic() ? row : null); }
public void serializeStaticRow(Row row, SerializationHeader header, DataOutputPlus out, int version) throws IOException { assert row.isStatic(); serialize(row, header, out, 0, version); }
public void serializeStaticRow(Row row, SerializationHeader header, DataOutputPlus out, int version) throws IOException { assert row.isStatic(); serialize(row, header, out, 0, version); }
private boolean isStatic(Unfiltered unfiltered) { return unfiltered.isRow() && ((Row)unfiltered).isStatic(); }
private boolean isStatic(Unfiltered unfiltered) { return unfiltered.isRow() && ((Row)unfiltered).isStatic(); }
public void serializeStaticRow(Row row, SerializationHeader header, DataOutputPlus out, int version) throws IOException { assert row.isStatic(); serialize(row, header, out, 0, version); }
public boolean nextIsStatic() throws IOException { return nextIsRow() && ((Row)next).isStatic(); }
public boolean nextIsStatic() throws IOException { return nextIsRow() && ((Row)next).isStatic(); }
private boolean isStatic(Unfiltered unfiltered) { return unfiltered.isRow() && ((Row)unfiltered).isStatic(); }
public void serializeStaticRow(Row row, SerializationHeader header, DataOutputPlus out, int version) throws IOException { assert row.isStatic(); serialize(row, header, out, 0, version); }
public boolean nextIsStatic() throws IOException { return nextIsRow() && ((Row)next).isStatic(); }
public boolean nextIsStatic() throws IOException { return nextIsRow() && ((Row)next).isStatic(); }
public static boolean hasExtendedFlags(Row row) { return row.isStatic() || row.deletion().isShadowable(); } }
public static boolean hasExtendedFlags(Row row) { return row.isStatic() || row.deletion().isShadowable(); } }
public static boolean hasExtendedFlags(Row row) { return row.isStatic() || row.deletion().isShadowable(); } }
public static boolean hasExtendedFlags(Row row) { return row.isStatic() || row.deletion().isShadowable(); } }
private long serializedSize(Row row, SerializationHeader header, long previousUnfilteredSize, int version) { long size = 1; // flags if (hasExtendedFlags(row)) size += 1; // extended flags if (!row.isStatic()) size += Clustering.serializer.serializedSize(row.clustering(), version, header.clusteringTypes()); return size + serializedRowBodySize(row, header, previousUnfilteredSize, version); }
private long serializedSize(Row row, SerializationHeader header, long previousUnfilteredSize, int version) { long size = 1; // flags if (hasExtendedFlags(row)) size += 1; // extended flags if (!row.isStatic()) size += Clustering.serializer.serializedSize(row.clustering(), version, header.clusteringTypes()); return size + serializedRowBodySize(row, header, previousUnfilteredSize, version); }
private long serializedSize(Row row, SerializationHeader header, long previousUnfilteredSize, int version) { long size = 1; // flags if (hasExtendedFlags(row)) size += 1; // extended flags if (!row.isStatic()) size += Clustering.serializer.serializedSize(row.clustering(), version, header.clusteringTypes()); return size + serializedRowBodySize(row, header, previousUnfilteredSize, version); }
private long serializedSize(Row row, SerializationHeader header, long previousUnfilteredSize, int version) { long size = 1; // flags if (hasExtendedFlags(row)) size += 1; // extended flags if (!row.isStatic()) size += Clustering.serializer.serializedSize(row.clustering(), version, header.clusteringTypes()); return size + serializedRowBodySize(row, header, previousUnfilteredSize, version); }