{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Firehose.Types.OrcCompression
( OrcCompression
( ..,
OrcCompression_NONE,
OrcCompression_SNAPPY,
OrcCompression_ZLIB
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype OrcCompression = OrcCompression'
{ OrcCompression -> Text
fromOrcCompression ::
Core.Text
}
deriving stock
( Int -> OrcCompression -> ShowS
[OrcCompression] -> ShowS
OrcCompression -> String
(Int -> OrcCompression -> ShowS)
-> (OrcCompression -> String)
-> ([OrcCompression] -> ShowS)
-> Show OrcCompression
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OrcCompression] -> ShowS
$cshowList :: [OrcCompression] -> ShowS
show :: OrcCompression -> String
$cshow :: OrcCompression -> String
showsPrec :: Int -> OrcCompression -> ShowS
$cshowsPrec :: Int -> OrcCompression -> ShowS
Prelude.Show,
ReadPrec [OrcCompression]
ReadPrec OrcCompression
Int -> ReadS OrcCompression
ReadS [OrcCompression]
(Int -> ReadS OrcCompression)
-> ReadS [OrcCompression]
-> ReadPrec OrcCompression
-> ReadPrec [OrcCompression]
-> Read OrcCompression
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OrcCompression]
$creadListPrec :: ReadPrec [OrcCompression]
readPrec :: ReadPrec OrcCompression
$creadPrec :: ReadPrec OrcCompression
readList :: ReadS [OrcCompression]
$creadList :: ReadS [OrcCompression]
readsPrec :: Int -> ReadS OrcCompression
$creadsPrec :: Int -> ReadS OrcCompression
Prelude.Read,
OrcCompression -> OrcCompression -> Bool
(OrcCompression -> OrcCompression -> Bool)
-> (OrcCompression -> OrcCompression -> Bool) -> Eq OrcCompression
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OrcCompression -> OrcCompression -> Bool
$c/= :: OrcCompression -> OrcCompression -> Bool
== :: OrcCompression -> OrcCompression -> Bool
$c== :: OrcCompression -> OrcCompression -> Bool
Prelude.Eq,
Eq OrcCompression
Eq OrcCompression
-> (OrcCompression -> OrcCompression -> Ordering)
-> (OrcCompression -> OrcCompression -> Bool)
-> (OrcCompression -> OrcCompression -> Bool)
-> (OrcCompression -> OrcCompression -> Bool)
-> (OrcCompression -> OrcCompression -> Bool)
-> (OrcCompression -> OrcCompression -> OrcCompression)
-> (OrcCompression -> OrcCompression -> OrcCompression)
-> Ord OrcCompression
OrcCompression -> OrcCompression -> Bool
OrcCompression -> OrcCompression -> Ordering
OrcCompression -> OrcCompression -> OrcCompression
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 :: OrcCompression -> OrcCompression -> OrcCompression
$cmin :: OrcCompression -> OrcCompression -> OrcCompression
max :: OrcCompression -> OrcCompression -> OrcCompression
$cmax :: OrcCompression -> OrcCompression -> OrcCompression
>= :: OrcCompression -> OrcCompression -> Bool
$c>= :: OrcCompression -> OrcCompression -> Bool
> :: OrcCompression -> OrcCompression -> Bool
$c> :: OrcCompression -> OrcCompression -> Bool
<= :: OrcCompression -> OrcCompression -> Bool
$c<= :: OrcCompression -> OrcCompression -> Bool
< :: OrcCompression -> OrcCompression -> Bool
$c< :: OrcCompression -> OrcCompression -> Bool
compare :: OrcCompression -> OrcCompression -> Ordering
$ccompare :: OrcCompression -> OrcCompression -> Ordering
$cp1Ord :: Eq OrcCompression
Prelude.Ord,
(forall x. OrcCompression -> Rep OrcCompression x)
-> (forall x. Rep OrcCompression x -> OrcCompression)
-> Generic OrcCompression
forall x. Rep OrcCompression x -> OrcCompression
forall x. OrcCompression -> Rep OrcCompression x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep OrcCompression x -> OrcCompression
$cfrom :: forall x. OrcCompression -> Rep OrcCompression x
Prelude.Generic
)
deriving newtype
( Int -> OrcCompression -> Int
OrcCompression -> Int
(Int -> OrcCompression -> Int)
-> (OrcCompression -> Int) -> Hashable OrcCompression
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: OrcCompression -> Int
$chash :: OrcCompression -> Int
hashWithSalt :: Int -> OrcCompression -> Int
$chashWithSalt :: Int -> OrcCompression -> Int
Prelude.Hashable,
OrcCompression -> ()
(OrcCompression -> ()) -> NFData OrcCompression
forall a. (a -> ()) -> NFData a
rnf :: OrcCompression -> ()
$crnf :: OrcCompression -> ()
Prelude.NFData,
Text -> Either String OrcCompression
(Text -> Either String OrcCompression) -> FromText OrcCompression
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String OrcCompression
$cfromText :: Text -> Either String OrcCompression
Core.FromText,
OrcCompression -> Text
(OrcCompression -> Text) -> ToText OrcCompression
forall a. (a -> Text) -> ToText a
toText :: OrcCompression -> Text
$ctoText :: OrcCompression -> Text
Core.ToText,
OrcCompression -> ByteString
(OrcCompression -> ByteString) -> ToByteString OrcCompression
forall a. (a -> ByteString) -> ToByteString a
toBS :: OrcCompression -> ByteString
$ctoBS :: OrcCompression -> ByteString
Core.ToByteString,
OrcCompression -> ByteStringBuilder
(OrcCompression -> ByteStringBuilder) -> ToLog OrcCompression
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: OrcCompression -> ByteStringBuilder
$cbuild :: OrcCompression -> ByteStringBuilder
Core.ToLog,
HeaderName -> OrcCompression -> [Header]
(HeaderName -> OrcCompression -> [Header])
-> ToHeader OrcCompression
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> OrcCompression -> [Header]
$ctoHeader :: HeaderName -> OrcCompression -> [Header]
Core.ToHeader,
OrcCompression -> QueryString
(OrcCompression -> QueryString) -> ToQuery OrcCompression
forall a. (a -> QueryString) -> ToQuery a
toQuery :: OrcCompression -> QueryString
$ctoQuery :: OrcCompression -> QueryString
Core.ToQuery,
Value -> Parser [OrcCompression]
Value -> Parser OrcCompression
(Value -> Parser OrcCompression)
-> (Value -> Parser [OrcCompression]) -> FromJSON OrcCompression
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [OrcCompression]
$cparseJSONList :: Value -> Parser [OrcCompression]
parseJSON :: Value -> Parser OrcCompression
$cparseJSON :: Value -> Parser OrcCompression
Core.FromJSON,
FromJSONKeyFunction [OrcCompression]
FromJSONKeyFunction OrcCompression
FromJSONKeyFunction OrcCompression
-> FromJSONKeyFunction [OrcCompression]
-> FromJSONKey OrcCompression
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [OrcCompression]
$cfromJSONKeyList :: FromJSONKeyFunction [OrcCompression]
fromJSONKey :: FromJSONKeyFunction OrcCompression
$cfromJSONKey :: FromJSONKeyFunction OrcCompression
Core.FromJSONKey,
[OrcCompression] -> Encoding
[OrcCompression] -> Value
OrcCompression -> Encoding
OrcCompression -> Value
(OrcCompression -> Value)
-> (OrcCompression -> Encoding)
-> ([OrcCompression] -> Value)
-> ([OrcCompression] -> Encoding)
-> ToJSON OrcCompression
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [OrcCompression] -> Encoding
$ctoEncodingList :: [OrcCompression] -> Encoding
toJSONList :: [OrcCompression] -> Value
$ctoJSONList :: [OrcCompression] -> Value
toEncoding :: OrcCompression -> Encoding
$ctoEncoding :: OrcCompression -> Encoding
toJSON :: OrcCompression -> Value
$ctoJSON :: OrcCompression -> Value
Core.ToJSON,
ToJSONKeyFunction [OrcCompression]
ToJSONKeyFunction OrcCompression
ToJSONKeyFunction OrcCompression
-> ToJSONKeyFunction [OrcCompression] -> ToJSONKey OrcCompression
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [OrcCompression]
$ctoJSONKeyList :: ToJSONKeyFunction [OrcCompression]
toJSONKey :: ToJSONKeyFunction OrcCompression
$ctoJSONKey :: ToJSONKeyFunction OrcCompression
Core.ToJSONKey,
[Node] -> Either String OrcCompression
([Node] -> Either String OrcCompression) -> FromXML OrcCompression
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String OrcCompression
$cparseXML :: [Node] -> Either String OrcCompression
Core.FromXML,
OrcCompression -> XML
(OrcCompression -> XML) -> ToXML OrcCompression
forall a. (a -> XML) -> ToXML a
toXML :: OrcCompression -> XML
$ctoXML :: OrcCompression -> XML
Core.ToXML
)
pattern OrcCompression_NONE :: OrcCompression
pattern $bOrcCompression_NONE :: OrcCompression
$mOrcCompression_NONE :: forall r. OrcCompression -> (Void# -> r) -> (Void# -> r) -> r
OrcCompression_NONE = OrcCompression' "NONE"
pattern OrcCompression_SNAPPY :: OrcCompression
pattern $bOrcCompression_SNAPPY :: OrcCompression
$mOrcCompression_SNAPPY :: forall r. OrcCompression -> (Void# -> r) -> (Void# -> r) -> r
OrcCompression_SNAPPY = OrcCompression' "SNAPPY"
pattern OrcCompression_ZLIB :: OrcCompression
pattern $bOrcCompression_ZLIB :: OrcCompression
$mOrcCompression_ZLIB :: forall r. OrcCompression -> (Void# -> r) -> (Void# -> r) -> r
OrcCompression_ZLIB = OrcCompression' "ZLIB"
{-# COMPLETE
OrcCompression_NONE,
OrcCompression_SNAPPY,
OrcCompression_ZLIB,
OrcCompression'
#-}