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

io.tarantool.driver.metadata.ProxyTarantoolSpaceMetadataContainer Maven / Gradle / Ivy

Go to download

Tarantool Cartridge driver for Tarantool versions 1.10+ based on Netty framework

There is a newer version: 0.14.0
Show newest version
package io.tarantool.driver.metadata;

import java.util.HashMap;
import java.util.Map;

/**
 * This class is not part of the public API.
 *
 * @author Sergey Volgin
 */
public class ProxyTarantoolSpaceMetadataContainer {

    private final Map spaceMetadata = new HashMap<>();
    private final Map> indexMetadata = new HashMap<>();

    public ProxyTarantoolSpaceMetadataContainer() {
    }

    public Map getSpaceMetadata() {
        return spaceMetadata;
    }

    public Map> getIndexMetadata() {
        return indexMetadata;
    }

    public void addSpace(TarantoolSpaceMetadata metadata) {
        spaceMetadata.put(metadata.getSpaceName(), metadata);
    }

    public void addIndexes(String spaceName, Map indexMetadataMap) {
        indexMetadata.put(spaceName, indexMetadataMap);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy