Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Statement = Statement {
- _stId :: !StatementId
- _stCode :: !(Maybe Text)
- _stState :: !(Maybe StatementState)
- _stOutput :: !(Maybe StatementOutput)
- newtype StatementId = StatementId Int
- data StatementState
- data StatementOutput = StatementOutput {
- _stoStatus :: !(Maybe Text)
- _stoExecutionCount :: !(Maybe Integer)
- _stoData :: !(Maybe StatementData)
- type StatementData = HashMap Text (Maybe Text)
- stoStatus :: Lens' StatementOutput (Maybe Text)
- stoExecutionCount :: Lens' StatementOutput (Maybe Integer)
- stoData :: Lens' StatementOutput (Maybe StatementData)
- stId :: Lens' Statement StatementId
- stCode :: Lens' Statement (Maybe Text)
- stState :: Lens' Statement (Maybe StatementState)
- stOutput :: Lens' Statement (Maybe StatementOutput)
Statements for interactive sessions
A Statement
represents the result of an execution statement.
Statement | |
|
newtype StatementId Source #
The id of this statement.
Instances
Eq StatementId Source # | |
Defined in Network.Livy.Client.Types.Statement (==) :: StatementId -> StatementId -> Bool # (/=) :: StatementId -> StatementId -> Bool # | |
Show StatementId Source # | |
Defined in Network.Livy.Client.Types.Statement showsPrec :: Int -> StatementId -> ShowS # show :: StatementId -> String # showList :: [StatementId] -> ShowS # | |
ToJSON StatementId Source # | |
Defined in Network.Livy.Client.Types.Statement toJSON :: StatementId -> Value # toEncoding :: StatementId -> Encoding # toJSONList :: [StatementId] -> Value # toEncodingList :: [StatementId] -> Encoding # | |
FromJSON StatementId Source # | |
Defined in Network.Livy.Client.Types.Statement parseJSON :: Value -> Parser StatementId # parseJSONList :: Value -> Parser [StatementId] # | |
ToText StatementId Source # | |
Defined in Network.Livy.Client.Types.Statement toText :: StatementId -> Text Source # |
data StatementState Source #
The present state of a submitted Statement
.
StatementWaiting | Statement is enqueued but execution hasn't started. |
StatementRunning | Statement is currently running. |
StatementAvailable | Statement has a response ready. |
StatementError | Statement failed. |
StatementCancelling | Statement is being cancelled. |
StatementCancelled | Statement is cancelled. |
Instances
data StatementOutput Source #
The output of a completed statement.
StatementOutput | |
|
Instances
Eq StatementOutput Source # | |
Defined in Network.Livy.Client.Types.Statement (==) :: StatementOutput -> StatementOutput -> Bool # (/=) :: StatementOutput -> StatementOutput -> Bool # | |
Show StatementOutput Source # | |
Defined in Network.Livy.Client.Types.Statement showsPrec :: Int -> StatementOutput -> ShowS # show :: StatementOutput -> String # showList :: [StatementOutput] -> ShowS # | |
ToJSON StatementOutput Source # | |
Defined in Network.Livy.Client.Types.Statement toJSON :: StatementOutput -> Value # toEncoding :: StatementOutput -> Encoding # toJSONList :: [StatementOutput] -> Value # toEncodingList :: [StatementOutput] -> Encoding # | |
FromJSON StatementOutput Source # | |
Defined in Network.Livy.Client.Types.Statement parseJSON :: Value -> Parser StatementOutput # parseJSONList :: Value -> Parser [StatementOutput] # |