scala.googleapis.bigquery.HighCardinalityJoin.scala Maven / Gradle / Ivy
package googleapis.bigquery
import io.circe._
import io.circe.syntax._
final case class HighCardinalityJoin(
/** Output only. Count of left input rows.
*/
leftRows: Option[Long] = None,
/** Output only. Count of the output rows.
*/
outputRows: Option[Long] = None,
/** Output only. Count of right input rows.
*/
rightRows: Option[Long] = None,
/** Output only. The index of the join operator in the ExplainQueryStep lists.
*/
stepIndex: Option[Int] = None,
)
object HighCardinalityJoin {
implicit val encoder: Encoder[HighCardinalityJoin] = Encoder.instance { x =>
Json.obj(
"leftRows" := x.leftRows,
"outputRows" := x.outputRows,
"rightRows" := x.rightRows,
"stepIndex" := x.stepIndex,
)
}
implicit val decoder: Decoder[HighCardinalityJoin] = Decoder.instance { c =>
for {
v0 <- c.get[Option[Long]]("leftRows")
v1 <- c.get[Option[Long]]("outputRows")
v2 <- c.get[Option[Long]]("rightRows")
v3 <- c.get[Option[Int]]("stepIndex")
} yield HighCardinalityJoin(v0, v1, v2, v3)
}
}