All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.hologres.spark3.source.HoloInputPartition.scala Maven / Gradle / Ivy

package com.alibaba.hologres.spark3.source

import org.apache.spark.sql.connector.read.InputPartition


class HoloInputPartition(start: Int, end: Int) extends InputPartition {
  val shardIdRange: (Int, Int) = (start, end)

  override def preferredLocations(): Array[String] = {
    Array(shardIdRange._1, shardIdRange._2).map(_.toString)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy