{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Glue.Types.ColumnStatisticsType
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Glue.Types.ColumnStatisticsType
  ( ColumnStatisticsType
      ( ..,
        ColumnStatisticsType_BINARY,
        ColumnStatisticsType_BOOLEAN,
        ColumnStatisticsType_DATE,
        ColumnStatisticsType_DECIMAL,
        ColumnStatisticsType_DOUBLE,
        ColumnStatisticsType_LONG,
        ColumnStatisticsType_STRING
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

newtype ColumnStatisticsType = ColumnStatisticsType'
  { ColumnStatisticsType -> Text
fromColumnStatisticsType ::
      Core.Text
  }
  deriving stock
    ( Int -> ColumnStatisticsType -> ShowS
[ColumnStatisticsType] -> ShowS
ColumnStatisticsType -> String
(Int -> ColumnStatisticsType -> ShowS)
-> (ColumnStatisticsType -> String)
-> ([ColumnStatisticsType] -> ShowS)
-> Show ColumnStatisticsType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ColumnStatisticsType] -> ShowS
$cshowList :: [ColumnStatisticsType] -> ShowS
show :: ColumnStatisticsType -> String
$cshow :: ColumnStatisticsType -> String
showsPrec :: Int -> ColumnStatisticsType -> ShowS
$cshowsPrec :: Int -> ColumnStatisticsType -> ShowS
Prelude.Show,
      ReadPrec [ColumnStatisticsType]
ReadPrec ColumnStatisticsType
Int -> ReadS ColumnStatisticsType
ReadS [ColumnStatisticsType]
(Int -> ReadS ColumnStatisticsType)
-> ReadS [ColumnStatisticsType]
-> ReadPrec ColumnStatisticsType
-> ReadPrec [ColumnStatisticsType]
-> Read ColumnStatisticsType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ColumnStatisticsType]
$creadListPrec :: ReadPrec [ColumnStatisticsType]
readPrec :: ReadPrec ColumnStatisticsType
$creadPrec :: ReadPrec ColumnStatisticsType
readList :: ReadS [ColumnStatisticsType]
$creadList :: ReadS [ColumnStatisticsType]
readsPrec :: Int -> ReadS ColumnStatisticsType
$creadsPrec :: Int -> ReadS ColumnStatisticsType
Prelude.Read,
      ColumnStatisticsType -> ColumnStatisticsType -> Bool
(ColumnStatisticsType -> ColumnStatisticsType -> Bool)
-> (ColumnStatisticsType -> ColumnStatisticsType -> Bool)
-> Eq ColumnStatisticsType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ColumnStatisticsType -> ColumnStatisticsType -> Bool
$c/= :: ColumnStatisticsType -> ColumnStatisticsType -> Bool
== :: ColumnStatisticsType -> ColumnStatisticsType -> Bool
$c== :: ColumnStatisticsType -> ColumnStatisticsType -> Bool
Prelude.Eq,
      Eq ColumnStatisticsType
Eq ColumnStatisticsType
-> (ColumnStatisticsType -> ColumnStatisticsType -> Ordering)
-> (ColumnStatisticsType -> ColumnStatisticsType -> Bool)
-> (ColumnStatisticsType -> ColumnStatisticsType -> Bool)
-> (ColumnStatisticsType -> ColumnStatisticsType -> Bool)
-> (ColumnStatisticsType -> ColumnStatisticsType -> Bool)
-> (ColumnStatisticsType
    -> ColumnStatisticsType -> ColumnStatisticsType)
-> (ColumnStatisticsType
    -> ColumnStatisticsType -> ColumnStatisticsType)
-> Ord ColumnStatisticsType
ColumnStatisticsType -> ColumnStatisticsType -> Bool
ColumnStatisticsType -> ColumnStatisticsType -> Ordering
ColumnStatisticsType
-> ColumnStatisticsType -> ColumnStatisticsType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ColumnStatisticsType
-> ColumnStatisticsType -> ColumnStatisticsType
$cmin :: ColumnStatisticsType
-> ColumnStatisticsType -> ColumnStatisticsType
max :: ColumnStatisticsType
-> ColumnStatisticsType -> ColumnStatisticsType
$cmax :: ColumnStatisticsType
-> ColumnStatisticsType -> ColumnStatisticsType
>= :: ColumnStatisticsType -> ColumnStatisticsType -> Bool
$c>= :: ColumnStatisticsType -> ColumnStatisticsType -> Bool
> :: ColumnStatisticsType -> ColumnStatisticsType -> Bool
$c> :: ColumnStatisticsType -> ColumnStatisticsType -> Bool
<= :: ColumnStatisticsType -> ColumnStatisticsType -> Bool
$c<= :: ColumnStatisticsType -> ColumnStatisticsType -> Bool
< :: ColumnStatisticsType -> ColumnStatisticsType -> Bool
$c< :: ColumnStatisticsType -> ColumnStatisticsType -> Bool
compare :: ColumnStatisticsType -> ColumnStatisticsType -> Ordering
$ccompare :: ColumnStatisticsType -> ColumnStatisticsType -> Ordering
$cp1Ord :: Eq ColumnStatisticsType
Prelude.Ord,
      (forall x. ColumnStatisticsType -> Rep ColumnStatisticsType x)
-> (forall x. Rep ColumnStatisticsType x -> ColumnStatisticsType)
-> Generic ColumnStatisticsType
forall x. Rep ColumnStatisticsType x -> ColumnStatisticsType
forall x. ColumnStatisticsType -> Rep ColumnStatisticsType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ColumnStatisticsType x -> ColumnStatisticsType
$cfrom :: forall x. ColumnStatisticsType -> Rep ColumnStatisticsType x
Prelude.Generic
    )
  deriving newtype
    ( Int -> ColumnStatisticsType -> Int
ColumnStatisticsType -> Int
(Int -> ColumnStatisticsType -> Int)
-> (ColumnStatisticsType -> Int) -> Hashable ColumnStatisticsType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ColumnStatisticsType -> Int
$chash :: ColumnStatisticsType -> Int
hashWithSalt :: Int -> ColumnStatisticsType -> Int
$chashWithSalt :: Int -> ColumnStatisticsType -> Int
Prelude.Hashable,
      ColumnStatisticsType -> ()
(ColumnStatisticsType -> ()) -> NFData ColumnStatisticsType
forall a. (a -> ()) -> NFData a
rnf :: ColumnStatisticsType -> ()
$crnf :: ColumnStatisticsType -> ()
Prelude.NFData,
      Text -> Either String ColumnStatisticsType
(Text -> Either String ColumnStatisticsType)
-> FromText ColumnStatisticsType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ColumnStatisticsType
$cfromText :: Text -> Either String ColumnStatisticsType
Core.FromText,
      ColumnStatisticsType -> Text
(ColumnStatisticsType -> Text) -> ToText ColumnStatisticsType
forall a. (a -> Text) -> ToText a
toText :: ColumnStatisticsType -> Text
$ctoText :: ColumnStatisticsType -> Text
Core.ToText,
      ColumnStatisticsType -> ByteString
(ColumnStatisticsType -> ByteString)
-> ToByteString ColumnStatisticsType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ColumnStatisticsType -> ByteString
$ctoBS :: ColumnStatisticsType -> ByteString
Core.ToByteString,
      ColumnStatisticsType -> ByteStringBuilder
(ColumnStatisticsType -> ByteStringBuilder)
-> ToLog ColumnStatisticsType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ColumnStatisticsType -> ByteStringBuilder
$cbuild :: ColumnStatisticsType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ColumnStatisticsType -> [Header]
(HeaderName -> ColumnStatisticsType -> [Header])
-> ToHeader ColumnStatisticsType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ColumnStatisticsType -> [Header]
$ctoHeader :: HeaderName -> ColumnStatisticsType -> [Header]
Core.ToHeader,
      ColumnStatisticsType -> QueryString
(ColumnStatisticsType -> QueryString)
-> ToQuery ColumnStatisticsType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ColumnStatisticsType -> QueryString
$ctoQuery :: ColumnStatisticsType -> QueryString
Core.ToQuery,
      Value -> Parser [ColumnStatisticsType]
Value -> Parser ColumnStatisticsType
(Value -> Parser ColumnStatisticsType)
-> (Value -> Parser [ColumnStatisticsType])
-> FromJSON ColumnStatisticsType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ColumnStatisticsType]
$cparseJSONList :: Value -> Parser [ColumnStatisticsType]
parseJSON :: Value -> Parser ColumnStatisticsType
$cparseJSON :: Value -> Parser ColumnStatisticsType
Core.FromJSON,
      FromJSONKeyFunction [ColumnStatisticsType]
FromJSONKeyFunction ColumnStatisticsType
FromJSONKeyFunction ColumnStatisticsType
-> FromJSONKeyFunction [ColumnStatisticsType]
-> FromJSONKey ColumnStatisticsType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ColumnStatisticsType]
$cfromJSONKeyList :: FromJSONKeyFunction [ColumnStatisticsType]
fromJSONKey :: FromJSONKeyFunction ColumnStatisticsType
$cfromJSONKey :: FromJSONKeyFunction ColumnStatisticsType
Core.FromJSONKey,
      [ColumnStatisticsType] -> Encoding
[ColumnStatisticsType] -> Value
ColumnStatisticsType -> Encoding
ColumnStatisticsType -> Value
(ColumnStatisticsType -> Value)
-> (ColumnStatisticsType -> Encoding)
-> ([ColumnStatisticsType] -> Value)
-> ([ColumnStatisticsType] -> Encoding)
-> ToJSON ColumnStatisticsType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ColumnStatisticsType] -> Encoding
$ctoEncodingList :: [ColumnStatisticsType] -> Encoding
toJSONList :: [ColumnStatisticsType] -> Value
$ctoJSONList :: [ColumnStatisticsType] -> Value
toEncoding :: ColumnStatisticsType -> Encoding
$ctoEncoding :: ColumnStatisticsType -> Encoding
toJSON :: ColumnStatisticsType -> Value
$ctoJSON :: ColumnStatisticsType -> Value
Core.ToJSON,
      ToJSONKeyFunction [ColumnStatisticsType]
ToJSONKeyFunction ColumnStatisticsType
ToJSONKeyFunction ColumnStatisticsType
-> ToJSONKeyFunction [ColumnStatisticsType]
-> ToJSONKey ColumnStatisticsType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ColumnStatisticsType]
$ctoJSONKeyList :: ToJSONKeyFunction [ColumnStatisticsType]
toJSONKey :: ToJSONKeyFunction ColumnStatisticsType
$ctoJSONKey :: ToJSONKeyFunction ColumnStatisticsType
Core.ToJSONKey,
      [Node] -> Either String ColumnStatisticsType
([Node] -> Either String ColumnStatisticsType)
-> FromXML ColumnStatisticsType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ColumnStatisticsType
$cparseXML :: [Node] -> Either String ColumnStatisticsType
Core.FromXML,
      ColumnStatisticsType -> XML
(ColumnStatisticsType -> XML) -> ToXML ColumnStatisticsType
forall a. (a -> XML) -> ToXML a
toXML :: ColumnStatisticsType -> XML
$ctoXML :: ColumnStatisticsType -> XML
Core.ToXML
    )

pattern ColumnStatisticsType_BINARY :: ColumnStatisticsType
pattern $bColumnStatisticsType_BINARY :: ColumnStatisticsType
$mColumnStatisticsType_BINARY :: forall r. ColumnStatisticsType -> (Void# -> r) -> (Void# -> r) -> r
ColumnStatisticsType_BINARY = ColumnStatisticsType' "BINARY"

pattern ColumnStatisticsType_BOOLEAN :: ColumnStatisticsType
pattern $bColumnStatisticsType_BOOLEAN :: ColumnStatisticsType
$mColumnStatisticsType_BOOLEAN :: forall r. ColumnStatisticsType -> (Void# -> r) -> (Void# -> r) -> r
ColumnStatisticsType_BOOLEAN = ColumnStatisticsType' "BOOLEAN"

pattern ColumnStatisticsType_DATE :: ColumnStatisticsType
pattern $bColumnStatisticsType_DATE :: ColumnStatisticsType
$mColumnStatisticsType_DATE :: forall r. ColumnStatisticsType -> (Void# -> r) -> (Void# -> r) -> r
ColumnStatisticsType_DATE = ColumnStatisticsType' "DATE"

pattern ColumnStatisticsType_DECIMAL :: ColumnStatisticsType
pattern $bColumnStatisticsType_DECIMAL :: ColumnStatisticsType
$mColumnStatisticsType_DECIMAL :: forall r. ColumnStatisticsType -> (Void# -> r) -> (Void# -> r) -> r
ColumnStatisticsType_DECIMAL = ColumnStatisticsType' "DECIMAL"

pattern ColumnStatisticsType_DOUBLE :: ColumnStatisticsType
pattern $bColumnStatisticsType_DOUBLE :: ColumnStatisticsType
$mColumnStatisticsType_DOUBLE :: forall r. ColumnStatisticsType -> (Void# -> r) -> (Void# -> r) -> r
ColumnStatisticsType_DOUBLE = ColumnStatisticsType' "DOUBLE"

pattern ColumnStatisticsType_LONG :: ColumnStatisticsType
pattern $bColumnStatisticsType_LONG :: ColumnStatisticsType
$mColumnStatisticsType_LONG :: forall r. ColumnStatisticsType -> (Void# -> r) -> (Void# -> r) -> r
ColumnStatisticsType_LONG = ColumnStatisticsType' "LONG"

pattern ColumnStatisticsType_STRING :: ColumnStatisticsType
pattern $bColumnStatisticsType_STRING :: ColumnStatisticsType
$mColumnStatisticsType_STRING :: forall r. ColumnStatisticsType -> (Void# -> r) -> (Void# -> r) -> r
ColumnStatisticsType_STRING = ColumnStatisticsType' "STRING"

{-# COMPLETE
  ColumnStatisticsType_BINARY,
  ColumnStatisticsType_BOOLEAN,
  ColumnStatisticsType_DATE,
  ColumnStatisticsType_DECIMAL,
  ColumnStatisticsType_DOUBLE,
  ColumnStatisticsType_LONG,
  ColumnStatisticsType_STRING,
  ColumnStatisticsType'
  #-}