@Override public int hashCode() { int hash = Objects.hash(clustering(), primaryKeyLivenessInfo(), deletion()); for (ColumnData cd : this) hash += 31 * cd.hashCode(); return hash; } }
@Override public int hashCode() { int hash = Objects.hash(clustering(), primaryKeyLivenessInfo(), deletion()); for (ColumnData cd : this) hash += 31 * cd.hashCode(); return hash; } }
@Override public int hashCode() { int hash = Objects.hash(clustering(), primaryKeyLivenessInfo(), deletion()); for (ColumnData cd : this) hash += 31 * cd.hashCode(); return hash; } }
@Override public int hashCode() { int hash = Objects.hash(clustering(), primaryKeyLivenessInfo(), deletion()); for (ColumnData cd : this) hash += 31 * cd.hashCode(); return hash; } }
@Override public boolean hasLiveData(int nowInSec, boolean enforceStrictLiveness) { if (primaryKeyLivenessInfo().isLive(nowInSec)) return true; else if (enforceStrictLiveness) return false; return Iterables.any(cells(), cell -> cell.isLive(nowInSec)); }
public boolean hasLiveData(int nowInSec) { if (primaryKeyLivenessInfo().isLive(nowInSec)) return true; return Iterables.any(cells(), cell -> cell.isLive(nowInSec)); }
@Override public boolean hasLiveData(int nowInSec, boolean enforceStrictLiveness) { if (primaryKeyLivenessInfo().isLive(nowInSec)) return true; else if (enforceStrictLiveness) return false; return Iterables.any(cells(), cell -> cell.isLive(nowInSec)); }
@Override public boolean hasLiveData(int nowInSec, boolean enforceStrictLiveness) { if (primaryKeyLivenessInfo().isLive(nowInSec)) return true; else if (enforceStrictLiveness) return false; return Iterables.any(cells(), cell -> cell.isLive(nowInSec)); }
@Override public boolean equals(Object other) { if(!(other instanceof Row)) return false; Row that = (Row)other; if (!this.clustering().equals(that.clustering()) || !this.primaryKeyLivenessInfo().equals(that.primaryKeyLivenessInfo()) || !this.deletion().equals(that.deletion())) return false; return Iterables.elementsEqual(this, that); }
@Override public boolean equals(Object other) { if(!(other instanceof Row)) return false; Row that = (Row)other; if (!this.clustering().equals(that.clustering()) || !this.primaryKeyLivenessInfo().equals(that.primaryKeyLivenessInfo()) || !this.deletion().equals(that.deletion())) return false; return Iterables.elementsEqual(this, that); }
@Override public boolean equals(Object other) { if(!(other instanceof Row)) return false; Row that = (Row)other; if (!this.clustering().equals(that.clustering()) || !this.primaryKeyLivenessInfo().equals(that.primaryKeyLivenessInfo()) || !this.deletion().equals(that.deletion())) return false; return Iterables.elementsEqual(this, that); }
@Override public boolean equals(Object other) { if(!(other instanceof Row)) return false; Row that = (Row)other; if (!this.clustering().equals(that.clustering()) || !this.primaryKeyLivenessInfo().equals(that.primaryKeyLivenessInfo()) || !this.deletion().equals(that.deletion())) return false; return Iterables.elementsEqual(this, that); }
public void digest(MessageDigest digest, Set<ByteBuffer> columnsToExclude) { FBUtilities.updateWithByte(digest, kind().ordinal()); clustering().digest(digest); deletion().digest(digest); primaryKeyLivenessInfo().digest(digest); for (ColumnData cd : this) if (!columnsToExclude.contains(cd.column.name.bytes)) cd.digest(digest); }
public void digest(MessageDigest digest, Set<ByteBuffer> columnsToExclude) { FBUtilities.updateWithByte(digest, kind().ordinal()); clustering().digest(digest); deletion().digest(digest); primaryKeyLivenessInfo().digest(digest); for (ColumnData cd : this) if (!columnsToExclude.contains(cd.column.name.bytes)) cd.digest(digest); }
public void digest(MessageDigest digest, Set<ByteBuffer> columnsToExclude) { FBUtilities.updateWithByte(digest, kind().ordinal()); clustering().digest(digest); deletion().digest(digest); primaryKeyLivenessInfo().digest(digest); for (ColumnData cd : this) if (!columnsToExclude.contains(cd.column.name.bytes)) cd.digest(digest); }
public void digest(MessageDigest digest) { FBUtilities.updateWithByte(digest, kind().ordinal()); clustering().digest(digest); deletion().digest(digest); primaryKeyLivenessInfo().digest(digest); for (ColumnData cd : this) cd.digest(digest); }
public void validateData(CFMetaData metadata) { Clustering clustering = clustering(); for (int i = 0; i < clustering.size(); i++) { ByteBuffer value = clustering.get(i); if (value != null) metadata.comparator.subtype(i).validate(value); } primaryKeyLivenessInfo().validate(); if (deletion().time().localDeletionTime() < 0) throw new MarshalException("A local deletion time should not be negative"); for (ColumnData cd : this) cd.validate(); }
public void validateData(CFMetaData metadata) { Clustering clustering = clustering(); for (int i = 0; i < clustering.size(); i++) { ByteBuffer value = clustering.get(i); if (value != null) metadata.comparator.subtype(i).validate(value); } primaryKeyLivenessInfo().validate(); if (deletion().time().localDeletionTime() < 0) throw new MarshalException("A local deletion time should not be negative"); for (ColumnData cd : this) cd.validate(); }
public void validateData(CFMetaData metadata) { Clustering clustering = clustering(); for (int i = 0; i < clustering.size(); i++) { ByteBuffer value = clustering.get(i); if (value != null) metadata.comparator.subtype(i).validate(value); } primaryKeyLivenessInfo().validate(); if (deletion().time().localDeletionTime() < 0) throw new MarshalException("A local deletion time should not be negative"); for (ColumnData cd : this) cd.validate(); }
public void validateData(CFMetaData metadata) { Clustering clustering = clustering(); for (int i = 0; i < clustering.size(); i++) { ByteBuffer value = clustering.get(i); if (value != null) metadata.comparator.subtype(i).validate(value); } primaryKeyLivenessInfo().validate(); if (deletion().time().localDeletionTime() < 0) throw new MarshalException("A local deletion time should not be negative"); for (ColumnData cd : this) cd.validate(); }