Tabnine Logo
Cell.isLive
Code IndexAdd Tabnine to your IDE (free)

How to use
isLive
method
in
org.apache.cassandra.db.rows.Cell

Best Java code snippets using org.apache.cassandra.db.rows.Cell.isLive (Showing top 20 results out of 315)

origin: org.apache.cassandra/cassandra-all

private boolean isLive(Cell cell)
{
  return cell != null && cell.isLive(nowInSec);
}
origin: org.apache.cassandra/cassandra-all

private void removeCell(Clustering clustering, Cell cell)
{
  if (cell == null || !cell.isLive(nowInSec))
    return;
  delete(key.getKey(), clustering, cell, opGroup, nowInSec);
}
origin: jsevellec/cassandra-unit

private void removeCell(Clustering clustering, Cell cell)
{
  if (cell == null || !cell.isLive(nowInSec))
    return;
  delete(key.getKey(), clustering, cell, opGroup, nowInSec);
}
origin: org.apache.cassandra/cassandra-all

public boolean isStale(Row data, ByteBuffer indexValue, int nowInSec)
{
  Cell cell = data.getCell(indexedColumn, CellPath.create(indexValue));
  return cell == null || !cell.isLive(nowInSec);
}
origin: jsevellec/cassandra-unit

public void onCell(int i, Clustering clustering, Cell merged, Cell original)
{
  if (original != null && (merged == null || !merged.isLive(nowInSec)))
    getBuilder(i, clustering).addCell(original);
}
origin: jsevellec/cassandra-unit

public boolean isStale(Row data, ByteBuffer indexValue, int nowInSec)
{
  Cell cell = data.getCell(indexedColumn, CellPath.create(indexValue));
  return cell == null || !cell.isLive(nowInSec);
}
origin: com.strapdata.cassandra/cassandra-all

public boolean isStale(Row data, ByteBuffer indexValue, int nowInSec)
{
  Cell cell = data.getCell(indexedColumn, CellPath.create(indexValue));
  return cell == null || !cell.isLive(nowInSec);
}
origin: org.apache.cassandra/cassandra-all

public void onCell(int i, Clustering clustering, Cell merged, Cell original)
{
  if (original != null && (merged == null || !merged.isLive(nowInSec)))
    getBuilder(i, clustering).addCell(original);
}
origin: org.apache.cassandra/cassandra-all

@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));
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

public boolean hasLiveData(int nowInSec)
{
  if (primaryKeyLivenessInfo().isLive(nowInSec))
    return true;
  return Iterables.any(cells(), cell -> cell.isLive(nowInSec));
}
origin: com.strapdata.cassandra/cassandra-all

  public boolean isStale(Row row, ByteBuffer indexValue, int nowInSec)
  {
    if (row == null)
      return true;

    Cell cell = row.getCell(indexedColumn);

    return (cell == null
       || !cell.isLive(nowInSec)
       || indexedColumn.type.compare(indexValue, cell.value()) != 0);
  }
}
origin: org.apache.cassandra/cassandra-all

  public boolean isStale(Row data, ByteBuffer indexValue, int nowInSec)
  {
    Cell cell = data.getCell(indexedColumn);
    return cell == null
      || !cell.isLive(nowInSec)
      || indexedColumn.type.compare(indexValue, cell.value()) != 0;
  }
}
origin: jsevellec/cassandra-unit

  public boolean isStale(Row data, ByteBuffer indexValue, int nowInSec)
  {
    Cell cell = data.getCell(indexedColumn);
    return cell == null
      || !cell.isLive(nowInSec)
      || indexedColumn.type.compare(indexValue, cell.value()) != 0;
  }
}
origin: jsevellec/cassandra-unit

  public boolean isStale(Row row, ByteBuffer indexValue, int nowInSec)
  {
    if (row == null)
      return true;

    Cell cell = row.getCell(indexedColumn);

    return (cell == null
       || !cell.isLive(nowInSec)
       || indexedColumn.type.compare(indexValue, cell.value()) != 0);
  }
}
origin: org.apache.cassandra/cassandra-all

  public boolean isStale(Row row, ByteBuffer indexValue, int nowInSec)
  {
    if (row == null)
      return true;

    Cell cell = row.getCell(indexedColumn);

    return (cell == null
       || !cell.isLive(nowInSec)
       || indexedColumn.type.compare(indexValue, cell.value()) != 0);
  }
}
origin: jsevellec/cassandra-unit

@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));
}
origin: org.apache.cassandra/cassandra-all

private void indexCell(Clustering clustering, Cell cell)
{
  if (cell == null || !cell.isLive(nowInSec))
    return;
  insert(key.getKey(),
      clustering,
      cell,
      LivenessInfo.withExpirationTime(cell.timestamp(), cell.ttl(), cell.localDeletionTime()),
      opGroup);
}
origin: com.strapdata.cassandra/cassandra-all

private void indexCell(Clustering clustering, Cell cell)
{
  if (cell == null || !cell.isLive(nowInSec))
    return;
  insert(key.getKey(),
      clustering,
      cell,
      LivenessInfo.withExpirationTime(cell.timestamp(), cell.ttl(), cell.localDeletionTime()),
      opGroup);
}
origin: jsevellec/cassandra-unit

private void indexCell(Clustering clustering, Cell cell)
{
  if (cell == null || !cell.isLive(nowInSec))
    return;
  insert(key.getKey(),
      clustering,
      cell,
      LivenessInfo.withExpirationTime(cell.timestamp(), cell.ttl(), cell.localDeletionTime()),
      opGroup);
}
origin: org.apache.cassandra/cassandra-all

  public boolean isStale(Row data, ByteBuffer indexValue, int nowInSec)
  {
    ByteBuffer[] components = ((CompositeType)functions.getIndexedValueType(indexedColumn)).split(indexValue);
    ByteBuffer mapKey = components[0];
    ByteBuffer mapValue = components[1];

    ColumnDefinition columnDef = indexedColumn;
    Cell cell = data.getCell(columnDef, CellPath.create(mapKey));
    if (cell == null || !cell.isLive(nowInSec))
      return true;

    AbstractType<?> valueComparator = ((CollectionType)columnDef.type).valueComparator();
    return valueComparator.compare(mapValue, cell.value()) != 0;
  }
}
org.apache.cassandra.db.rowsCellisLive

Javadoc

Whether the cell is live or not given the current time.

Popular methods of Cell

  • column
  • localDeletionTime
    The cell local deletion time.
  • path
    For cells belonging to complex types (non-frozen collection and UDT), the path to the cell.
  • value
    The cell value.
  • copy
  • dataSize
  • digest
  • isCounterCell
    Whether the cell is a counter cell or not.
  • isExpiring
    Whether the cell is an expiring one or not. Note that this only correspond to whether the cell liven
  • isTombstone
    Whether the cell is a tombstone or not.
  • purge
  • timestamp
    The cell timestamp.
  • purge,
  • timestamp,
  • ttl,
  • unsharedHeapSizeExcludingData,
  • updateAllTimestamp,
  • validate,
  • withUpdatedValue,
  • maxTimestamp,
  • withUpdatedColumn

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • getApplicationContext (Context)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now