public class RowToElementGenerator extends Object implements OneToOneElementGenerator<org.apache.spark.sql.Row>
RowToElementGenerator
is a OneToOneElementGenerator
for
converting a Row
objects into a Gaffer Element
.
This generator requires that the Row object to be converted into an Element was
originally created from an Element. It is not possible to convert an arbitrary
Row object into an Element.Constructor and Description |
---|
RowToElementGenerator() |
Modifier and Type | Method and Description |
---|---|
Element |
_apply(org.apache.spark.sql.Row row) |
Iterable<? extends Element> |
apply(Iterable<? extends org.apache.spark.sql.Row> rows) |
public Element _apply(org.apache.spark.sql.Row row)
_apply
in interface OneToOneElementGenerator<org.apache.spark.sql.Row>
row
- the domain object to convertElement
Copyright © 2022. All rights reserved.