Example usage for org.apache.spark.sql.types DataTypes createMapType

List of usage examples for org.apache.spark.sql.types DataTypes createMapType

Introduction

In this page you can find the example usage for org.apache.spark.sql.types DataTypes createMapType.

Prototype

public static MapType createMapType(DataType keyType, DataType valueType, boolean valueContainsNull) 

Source Link

Document

Creates a MapType by specifying the data type of keys ( keyType ), the data type of values ( keyType ), and whether values contain any null value ( valueContainsNull ).

Usage

From source file:uk.gov.gchq.gaffer.spark.operation.dataframe.converter.property.impl.FreqMapConverter.java

License:Apache License

@Override
public DataType convertedType() {
    return DataTypes.createMapType(DataTypes.StringType, DataTypes.LongType, true);
}