toggle menu
river
common
switch theme
search in API
connector-format-positional-flat-line
/
com.river.connector.format.positional.flat.line
Package-level
declarations
Types
Functions
Types
Field
Link copied to clipboard
@
ExperimentalRiverApi
data
class
Field
<
T
>
(
val
name
:
String
,
val
padding
:
Char
,
val
range
:
IntRange
,
val
parser
:
(
String
)
->
T
)
Record
Builder
Link copied to clipboard
@
ExperimentalRiverApi
class
RecordBuilder
Record
Def
Link copied to clipboard
@
ExperimentalRiverApi
data
class
RecordDef
(
val
fields
:
Map
<
String
,
Field
<
*
>
>
)
Functions
mapped
As
Link copied to clipboard
@
ExperimentalRiverApi
infix
fun
<
T
>
Map
<
String
,
Any
?
>
.
mappedAs
(
f
:
(
Map
<
String
,
Any
?
>
)
->
T
)
:
T
parsed
To
Link copied to clipboard
@
ExperimentalRiverApi
infix
fun
String
.
parsedTo
(
record
:
RecordDef
)
:
Map
<
String
,
Any
?
>
record
Link copied to clipboard
@
ExperimentalRiverApi
fun
record
(
builder
:
RecordBuilder
.
(
)
->
Unit
)
:
RecordDef
to
Positional
Flat
Line
Link copied to clipboard
@
ExperimentalRiverApi
fun
Flow
<
String
>
.
toPositionalFlatLine
(
record
:
RecordDef
)
:
Flow
<
Map
<
String
,
Any
?
>
>
@
ExperimentalRiverApi
fun
Flow
<
String
>
.
toPositionalFlatLine
(
record
:
RecordBuilder
.
(
)
->
Unit
)
:
Flow
<
Map
<
String
,
Any
?
>
>
@
ExperimentalRiverApi
fun
<
T
>
Flow
<
String
>
.
toPositionalFlatLine
(
record
:
RecordDef
,
f
:
(
Map
<
String
,
Any
?
>
)
->
T
)
:
Flow
<
T
>
@
ExperimentalRiverApi
fun
<
T
>
Flow
<
String
>
.
toPositionalFlatLine
(
mappedAs
:
(
Map
<
String
,
Any
?
>
)
->
T
,
record
:
RecordBuilder
.
(
)
->
Unit
)
:
Flow
<
T
>