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

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

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

import org.apache.accumulo.core.data.Key;
import org.apache.accumulo.core.data.Value;

public class KeyValuePair implements Comparable {
    private final Key key;
    private final Value value;

    public KeyValuePair(Key key, Value value) {
        this.key = key;
        this.value = value;
    }

    public Key getKey() {
        return key;
    }

    public Value getValue() {
        return value;
    }

    @Override
    public int compareTo(KeyValuePair o) {
        return getKey().compareTo(o.getKey());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy