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

org.vertexium.accumulo.StreamingPropertyValueTableRef Maven / Gradle / Ivy

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

import org.vertexium.property.StreamingPropertyValue;
import org.vertexium.property.StreamingPropertyValueRef;

public class StreamingPropertyValueTableRef extends StreamingPropertyValueRef {
    private final String dataRowKey;
    private transient byte[] data;

    // here for serialization
    protected StreamingPropertyValueTableRef() {
        this.dataRowKey = null;
    }

    public StreamingPropertyValueTableRef(String dataRowKey, StreamingPropertyValue propertyValue, byte[] data) {
        super(propertyValue);
        this.dataRowKey = dataRowKey;
        this.data = data;
    }

    public String getDataRowKey() {
        return dataRowKey;
    }

    public byte[] getData() {
        return data;
    }

    @Override
    public StreamingPropertyValue toStreamingPropertyValue(AccumuloGraph graph, long timestamp) {
        return new StreamingPropertyValueTable(graph, getDataRowKey(), this, timestamp);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy