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

com.microsoft.azure.kusto.data.Results Maven / Gradle / Ivy

There is a newer version: 5.2.0
Show newest version
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

package com.microsoft.azure.kusto.data;

import java.util.ArrayList;
import java.util.HashMap;

public class Results {
    private HashMap columnNameToIndex;
    private HashMap columnNameToType;
    private ArrayList> values;
    private String exceptionsMessages;

    public Results(HashMap columnNameToIndex, HashMap columnNameToType,
            ArrayList> values, String exceptionsMessages) {
        this.columnNameToIndex = columnNameToIndex;
        this.columnNameToType = columnNameToType;
        this.values = values;
        this.exceptionsMessages = exceptionsMessages;
    }

    public HashMap getColumnNameToIndex() {
        return columnNameToIndex;
    }

    public HashMap getColumnNameToType() {
        return columnNameToType;
    }

    public Integer getIndexByColumnName(String columnName) {
        return columnNameToIndex.get(columnName);
    }

    public String getTypeByColumnName(String columnName) {
        return columnNameToType.get(columnName);
    }

    public ArrayList> getValues() {
        return values;
    }

    public String getExceptions() {
        return exceptionsMessages;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy