public boolean isStale(Row data, ByteBuffer indexValue, int nowInSec) { return !data.hasLiveData(nowInSec, enforceStrictLiveness); } }
public boolean isStale(Row data, ByteBuffer indexValue, int nowInSec) { return !data.hasLiveData(nowInSec, enforceStrictLiveness); } }
public boolean isStale(Row data, ByteBuffer indexValue, int nowInSec) { return !data.hasLiveData(nowInSec, enforceStrictLiveness); } }
public boolean isStale(Row data, ByteBuffer indexValue, int nowInSec) { return !data.hasLiveData(nowInSec, enforceStrictLiveness); } }
public boolean isStale(Row data, ByteBuffer indexValue, int nowInSec) { return !data.hasLiveData(nowInSec, enforceStrictLiveness); } }
protected boolean isLive(Row row) { return assumeLiveData || row.hasLiveData(nowInSec, enforceStrictLiveness); }
public boolean isStale(Row data, ByteBuffer indexValue, int nowInSec) { return !data.hasLiveData(nowInSec, enforceStrictLiveness); } }
protected boolean isLive(Row row) { return assumeLiveData || row.hasLiveData(nowInSec, enforceStrictLiveness); }
protected boolean isLive(Row row) { return assumeLiveData || row.hasLiveData(nowInSec, enforceStrictLiveness); }
@Override public Unfiltered next() { Unfiltered unfiltered = super.next(); if (unfiltered.isRow()) { Row row = (Row) unfiltered; if (row.hasLiveData(nowInSec(), enforceStrictLiveness)) rowsCounted++; } return unfiltered; } };
@Override public Unfiltered next() { Unfiltered unfiltered = super.next(); if (unfiltered.isRow()) { Row row = (Row) unfiltered; if (row.hasLiveData(nowInSec(), enforceStrictLiveness)) rowsCounted++; } return unfiltered; } };
@Override public Unfiltered next() { Unfiltered unfiltered = super.next(); if (unfiltered.isRow()) { Row row = (Row) unfiltered; if (row.hasLiveData(nowInSec(), enforceStrictLiveness)) rowsCounted++; } return unfiltered; } };
@Override public void collect(Row inRow, Row outRow) { try { if (logger.isTraceEnabled()) { if (inRow != null) logger.trace("indexer={} newRowData={} clustering={} static={} hasLiveData={}", WideRowcumentIndexer.this.hashCode(), inRow, inRow.clustering(), inRow.isStatic(), inRow.hasLiveData(nowInSec, baseCfs.metadata.enforceStrictLiveness())); if (outRow != null) logger.trace("indexer={} oldRowData={} clustering={} static={} hasLiveData={}", WideRowcumentIndexer.this.hashCode(), outRow, outRow.clustering(), outRow.isStatic(), outRow.hasLiveData(nowInSec, baseCfs.metadata.enforceStrictLiveness())); } if (inRow.isStatic()) { inStaticRow = inRow; outStaticRow = outRow; } else { clusterings.add(inRow.clustering()); rowcuments.put(inRow.clustering(), new WideRowcument(inRow, outRow)); } } catch(Throwable t) { logger.error("Unexpected error", t); } }
boolean existingHasLiveData = existingBaseRow != null && existingBaseRow.hasLiveData(nowInSec, baseEnforceStrictLiveness); boolean mergedHasLiveData = mergedBaseRow.hasLiveData(nowInSec, baseEnforceStrictLiveness); return existingHasLiveData ? (mergedHasLiveData ? UpdateAction.UPDATE_EXISTING : UpdateAction.DELETE_OLD)
boolean existingHasLiveData = existingBaseRow != null && existingBaseRow.hasLiveData(nowInSec, baseEnforceStrictLiveness); boolean mergedHasLiveData = mergedBaseRow.hasLiveData(nowInSec, baseEnforceStrictLiveness); return existingHasLiveData ? (mergedHasLiveData ? UpdateAction.UPDATE_EXISTING : UpdateAction.DELETE_OLD)
Row row = inRow != null ? inRow : outRow; this.isStatic = row.isStatic(); this.hasLiveData = inRow != null && inRow.hasLiveData(nowInSec, baseCfs.metadata.enforceStrictLiveness());
if (row.hasLiveData(nowInSec)) ++cachedLiveRows;
if (row.hasLiveData(nowInSec, enforceStrictLiveness)) ++cachedLiveRows;
if (row.hasLiveData(nowInSec, enforceStrictLiveness)) ++cachedLiveRows;
if (row.hasLiveData(nowInSec, enforceStrictLiveness)) ++cachedLiveRows;