.. ################################################################################ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ################################################################################ ======== DataType ======== The :class:`~pyflink.dataframe.DataType` class provides factory methods for creating data types used in schema definitions, UDF return types, and other type specifications in the DataFrame API. Example: :: >>> from pyflink.dataframe import DataType >>> schema = {"id": DataType.int64(), "name": DataType.string(), "score": DataType.float64()} .. currentmodule:: pyflink.dataframe.datatype .. autosummary:: :toctree: api/ DataType DataType.not_null DataType.nullable DataType.int8 DataType.int16 DataType.int32 DataType.int64 DataType.float32 DataType.float64 DataType.decimal DataType.string DataType.fixed_size_string DataType.variant DataType.binary DataType.fixed_size_binary DataType.null DataType.bool DataType.date DataType.time DataType.timestamp DataType.timestamp_ltz DataType.list DataType.map DataType.struct DataType.tensor