{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype ColumnStatisticsType = ColumnStatisticsType'
  { ColumnStatisticsType -> Text
fromColumnStatisticsType ::
      Data.Text
  }
  deriving stock
    ( Int -> ColumnStatisticsType -> ShowS
[ColumnStatisticsType] -> ShowS
ColumnStatisticsType -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq ColumnStatisticsType
Int -> ColumnStatisticsType -> Int
ColumnStatisticsType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: ColumnStatisticsType -> ()
$crnf :: ColumnStatisticsType -> ()
Prelude.NFData,
      Text -> Either String ColumnStatisticsType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ColumnStatisticsType
$cfromText :: Text -> Either String ColumnStatisticsType
Data.FromText,
      ColumnStatisticsType -> Text
forall a. (a -> Text) -> ToText a
toText :: ColumnStatisticsType -> Text
$ctoText :: ColumnStatisticsType -> Text
Data.ToText,
      ColumnStatisticsType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: ColumnStatisticsType -> ByteString
$ctoBS :: ColumnStatisticsType -> ByteString
Data.ToByteString,
      ColumnStatisticsType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ColumnStatisticsType -> ByteStringBuilder
$cbuild :: ColumnStatisticsType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> ColumnStatisticsType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ColumnStatisticsType -> [Header]
$ctoHeader :: HeaderName -> ColumnStatisticsType -> [Header]
Data.ToHeader,
      ColumnStatisticsType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ColumnStatisticsType -> QueryString
$ctoQuery :: ColumnStatisticsType -> QueryString
Data.ToQuery,
      Value -> Parser [ColumnStatisticsType]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [ColumnStatisticsType]
FromJSONKeyFunction ColumnStatisticsType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ColumnStatisticsType]
$cfromJSONKeyList :: FromJSONKeyFunction [ColumnStatisticsType]
fromJSONKey :: FromJSONKeyFunction ColumnStatisticsType
$cfromJSONKey :: FromJSONKeyFunction ColumnStatisticsType
Data.FromJSONKey,
      [ColumnStatisticsType] -> Encoding
[ColumnStatisticsType] -> Value
ColumnStatisticsType -> Encoding
ColumnStatisticsType -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [ColumnStatisticsType]
ToJSONKeyFunction ColumnStatisticsType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ColumnStatisticsType]
$ctoJSONKeyList :: ToJSONKeyFunction [ColumnStatisticsType]
toJSONKey :: ToJSONKeyFunction ColumnStatisticsType
$ctoJSONKey :: ToJSONKeyFunction ColumnStatisticsType
Data.ToJSONKey,
      [Node] -> Either String ColumnStatisticsType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ColumnStatisticsType
$cparseXML :: [Node] -> Either String ColumnStatisticsType
Data.FromXML,
      ColumnStatisticsType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: ColumnStatisticsType -> XML
$ctoXML :: ColumnStatisticsType -> XML
Data.ToXML
    )

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

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

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

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

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

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

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

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