@Override public int hashCode() { int hash = Objects.hash(clustering(), primaryKeyLivenessInfo(), deletion()); for (ColumnData cd : this) hash += 31 * cd.hashCode(); return hash; } }
public String toString(CFMetaData metadata) { return toString(metadata, false); }
public void digest(MessageDigest digest) { digest(digest, Collections.emptySet()); }
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 boolean hasLiveData(int nowInSec) { if (primaryKeyLivenessInfo().isLive(nowInSec)) return true; return Iterables.any(cells(), cell -> cell.isLive(nowInSec)); }
public boolean isStatic() { return clustering() == Clustering.STATIC_CLUSTERING; }
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); }
@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 isStatic() { return clustering() == Clustering.STATIC_CLUSTERING; }
@Override public int hashCode() { int hash = Objects.hash(clustering(), primaryKeyLivenessInfo(), deletion()); for (ColumnData cd : this) hash += 31 * cd.hashCode(); return hash; } }
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); }
@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 String toString(CFMetaData metadata) { return toString(metadata, false); }
public boolean isStatic() { return clustering() == Clustering.STATIC_CLUSTERING; }
public void digest(MessageDigest digest) { digest(digest, Collections.emptySet()); }
@Override public int hashCode() { int hash = Objects.hash(clustering(), primaryKeyLivenessInfo(), deletion()); for (ColumnData cd : this) hash += 31 * cd.hashCode(); return hash; } }
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); }
@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 String toString(CFMetaData metadata, boolean fullDetails) { return toString(metadata, true, fullDetails); }
public boolean isStatic() { return clustering() == Clustering.STATIC_CLUSTERING; }