Java Code Examples for org.apache.cassandra.utils.FBUtilities#updateWithLong()

The following examples show how to use org.apache.cassandra.utils.FBUtilities#updateWithLong() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractCell.java    From stratio-cassandra with Apache License 2.0 5 votes vote down vote up
public void updateDigest(MessageDigest digest)
{
    digest.update(name().toByteBuffer().duplicate());
    digest.update(value().duplicate());

    FBUtilities.updateWithLong(digest, timestamp());
    FBUtilities.updateWithByte(digest, serializationFlags());
}
 
Example 2
Source File: NativeDeletedCell.java    From stratio-cassandra with Apache License 2.0 5 votes vote down vote up
@Override
public void updateDigest(MessageDigest digest)
{
    updateWithName(digest);
    FBUtilities.updateWithLong(digest, timestamp());
    FBUtilities.updateWithByte(digest, serializationFlags());
}
 
Example 3
Source File: BufferCounterCell.java    From stratio-cassandra with Apache License 2.0 5 votes vote down vote up
@Override
public void updateDigest(MessageDigest digest)
{
    digest.update(name().toByteBuffer().duplicate());
    // We don't take the deltas into account in a digest
    contextManager.updateDigest(digest, value());

    FBUtilities.updateWithLong(digest, timestamp);
    FBUtilities.updateWithByte(digest, serializationFlags());
    FBUtilities.updateWithLong(digest, timestampOfLastDelete);
}
 
Example 4
Source File: NativeCell.java    From stratio-cassandra with Apache License 2.0 5 votes vote down vote up
@Override
public void updateDigest(MessageDigest digest)
{
    updateWithName(digest);  // name
    updateWithValue(digest); // value

    FBUtilities.updateWithLong(digest, timestamp());
    FBUtilities.updateWithByte(digest, serializationFlags());
}
 
Example 5
Source File: BufferDeletedCell.java    From stratio-cassandra with Apache License 2.0 5 votes vote down vote up
@Override
public void updateDigest(MessageDigest digest)
{
    digest.update(name().toByteBuffer().duplicate());

    FBUtilities.updateWithLong(digest, timestamp());
    FBUtilities.updateWithByte(digest, serializationFlags());
}
 
Example 6
Source File: NativeCounterCell.java    From stratio-cassandra with Apache License 2.0 5 votes vote down vote up
@Override
public void updateDigest(MessageDigest digest)
{
    updateWithName(digest);

    // We don't take the deltas into account in a digest
    contextManager.updateDigest(digest, value());

    FBUtilities.updateWithLong(digest, timestamp());
    FBUtilities.updateWithByte(digest, serializationFlags());
    FBUtilities.updateWithLong(digest, timestampOfLastDelete());
}