Examples of timeStamp()


Examples of org.apache.cassandra.db.IColumn.timestamp()

                    columnorsupercolumn = new ColumnOrSuperColumn();
                }
                else
                {
                    columnorsupercolumn = col instanceof org.apache.cassandra.db.Column
                                          ? newColumnOrSuperColumn(newColumn(col.name(), col.value(), col.timestamp()))
                                          : newColumnOrSuperColumn(newSuperColumn(col.name(), avronateSubColumns(col.getSubColumns())));
                }

            }
            columnFamiliesMap.put(command.key, columnorsupercolumn);
View Full Code Here

Examples of org.apache.cassandra.db.OnDiskAtom.timestamp()

                }

                int deletionTime = atom.getLocalDeletionTime();
                if (deletionTime < Integer.MAX_VALUE)
                    tombstones.update(deletionTime);
                minTimestamp = Math.min(minTimestamp, atom.timestamp());
                maxTimestamp = Math.max(maxTimestamp, atom.timestamp());
                minColumnNames = ColumnNameHelper.minComponents(minColumnNames, atom.name(), metadata.comparator);
                maxColumnNames = ColumnNameHelper.maxComponents(maxColumnNames, atom.name(), metadata.comparator);
                maxLocalDeletionTime = Math.max(maxLocalDeletionTime, atom.getLocalDeletionTime());
View Full Code Here

Examples of org.apache.cassandra.db.OnDiskAtom.timestamp()

                int deletionTime = atom.getLocalDeletionTime();
                if (deletionTime < Integer.MAX_VALUE)
                    tombstones.update(deletionTime);
                minTimestamp = Math.min(minTimestamp, atom.timestamp());
                maxTimestamp = Math.max(maxTimestamp, atom.timestamp());
                minColumnNames = ColumnNameHelper.minComponents(minColumnNames, atom.name(), metadata.comparator);
                maxColumnNames = ColumnNameHelper.maxComponents(maxColumnNames, atom.name(), metadata.comparator);
                maxLocalDeletionTime = Math.max(maxLocalDeletionTime, atom.getLocalDeletionTime());

                columnIndexer.add(atom); // This write the atom on disk too
View Full Code Here

Examples of org.apache.cassandra.db.RangeTombstone.timestamp()

        Iterator<RangeTombstone> rangeTombstoneIterator = cf.deletionInfo().rangeIterator();
        while (rangeTombstoneIterator.hasNext())
        {
            RangeTombstone rangeTombstone = rangeTombstoneIterator.next();
            tombstones.update(rangeTombstone.getLocalDeletionTime());
            minTimestamp = Math.min(minTimestamp, rangeTombstone.timestamp());
            maxTimestamp = Math.max(maxTimestamp, rangeTombstone.timestamp());

            minColumnNames = ColumnNameHelper.minComponents(minColumnNames, rangeTombstone.min, metadata.comparator);
            maxColumnNames = ColumnNameHelper.maxComponents(maxColumnNames, rangeTombstone.max, metadata.comparator);
        }
View Full Code Here

Examples of org.apache.cassandra.db.RangeTombstone.timestamp()

        while (rangeTombstoneIterator.hasNext())
        {
            RangeTombstone rangeTombstone = rangeTombstoneIterator.next();
            tombstones.update(rangeTombstone.getLocalDeletionTime());
            minTimestamp = Math.min(minTimestamp, rangeTombstone.timestamp());
            maxTimestamp = Math.max(maxTimestamp, rangeTombstone.timestamp());

            minColumnNames = ColumnNameHelper.minComponents(minColumnNames, rangeTombstone.min, metadata.comparator);
            maxColumnNames = ColumnNameHelper.maxComponents(maxColumnNames, rangeTombstone.max, metadata.comparator);
        }
View Full Code Here

Examples of org.apache.hadoop.metrics2.MetricsRecord.timestamp()

    expect(configuration.getString("databaseUrl")).andReturn("url");

    expect(record.context()).andReturn("context");
    expect(record.name()).andReturn("typeName");
    expect(record.tags()).andReturn(new HashSet<MetricsTag>());
    expect(record.timestamp()).andReturn(9999L);

    expect(record.metrics()).andReturn(Collections.singleton(metric));

    expect(metric.name()).andReturn("name").anyTimes();
    expect(metric.value()).andReturn(1234);
View Full Code Here

Examples of org.dbwiki.data.query.condition.TimestampEvaluationResult.timestamp()

 
  public boolean eval(QueryNodeSet nodeSet) {
   
    TimestampEvaluationResult evalResult = this.getEvalResult(nodeSet);
    if (evalResult != null) {
      if (evalResult.timestamp() != null) {
        boolean emptyResult = evalResult.timestamp().isEmpty();
        if (_negated) {
          return emptyResult;
        } else
          return !emptyResult;
View Full Code Here

Examples of org.dbwiki.data.query.condition.TimestampEvaluationResult.timestamp()

  public boolean eval(QueryNodeSet nodeSet) {
   
    TimestampEvaluationResult evalResult = this.getEvalResult(nodeSet);
    if (evalResult != null) {
      if (evalResult.timestamp() != null) {
        boolean emptyResult = evalResult.timestamp().isEmpty();
        if (_negated) {
          return emptyResult;
        } else
          return !emptyResult;
      } else {
View Full Code Here

Examples of org.dbwiki.data.query.condition.TimestampEvaluationResult.timestamp()

 
  public TimeSequence evalTimestamp(QueryNodeSet nodeSet) {
   
    TimestampEvaluationResult evalResult = this.getEvalResult(nodeSet);
    if (evalResult != null) {
      if (evalResult.timestamp() != null) {
        return evalResult.timestamp();
      } else {
        return null;
      }
    } else {
View Full Code Here

Examples of org.dbwiki.data.query.condition.TimestampEvaluationResult.timestamp()

  public TimeSequence evalTimestamp(QueryNodeSet nodeSet) {
   
    TimestampEvaluationResult evalResult = this.getEvalResult(nodeSet);
    if (evalResult != null) {
      if (evalResult.timestamp() != null) {
        return evalResult.timestamp();
      } else {
        return null;
      }
    } else {
      return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.