All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.vertexium.mutation.ExtendedDataMutation Maven / Gradle / Ivy

There is a newer version: 4.10.0
Show newest version
package org.vertexium.mutation;

import org.vertexium.Visibility;
import org.vertexium.util.IncreasingTime;

public class ExtendedDataMutation extends ExtendedDataMutationBase {
    private final Object value;
    private final long timestamp;

    public ExtendedDataMutation(
        String tableName,
        String row,
        String columnName,
        String key,
        Object value,
        Long timestamp,
        Visibility visibility
    ) {
        super(tableName, row, columnName, key, visibility);
        this.value = value;
        this.timestamp = timestamp == null ? IncreasingTime.currentTimeMillis() : timestamp;
    }

    public Object getValue() {
        return value;
    }

    public long getTimestamp() {
        return timestamp;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy