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

org.vertexium.accumulo.StreamingPropertyValueTableDataRef 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 StreamingPropertyValueTableDataRef extends StreamingPropertyValueRef {
    private static final long serialVersionUID = 576719549332292361L;
    private final String dataRowKey;
    private final Class valueType;
    private final Long length;

    // here for serialization
    protected StreamingPropertyValueTableDataRef() {
        dataRowKey = null;
        valueType = null;
        length = null;
    }

    public StreamingPropertyValueTableDataRef(String dataRowKey, StreamingPropertyValue propertyValue, long length) {
        super(propertyValue);
        this.dataRowKey = dataRowKey;
        this.valueType = propertyValue.getValueType();
        this.length = length;
    }

    @Override
    public StreamingPropertyValue toStreamingPropertyValue(AccumuloGraph graph, long timestamp) {
        return new StreamingPropertyValueTableData(graph, dataRowKey, valueType, length, timestamp);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy