Github user sarutak commented on a diff in the pull request:

    https://github.com/apache/spark/pull/7692#discussion_r36143016
  
    --- Diff: core/src/main/scala/org/apache/spark/ui/storage/RDDPage.scala ---
    @@ -120,23 +151,159 @@ private[ui] class RDDPage(parent: StorageTab) 
extends WebUIPage("rdd") {
           <td>{Utils.bytesToString(worker.diskUsed)}</td>
         </tr>
       }
    +}
    +
    +private[ui] case class BlockTableRowData(
    +    blockName: String,
    +    storageLevel: String,
    +    memoryUsed: Long,
    +    diskUsed: Long,
    +    executors: String)
    +
    +private[ui] class BlockDataSource(
    +    rddPartitions: Seq[RDDPartitionInfo],
    +    pageSize: Int,
    +    sortColumn: String,
    +    desc: Boolean) extends PagedDataSource[BlockTableRowData](pageSize) {
    +
    +  private val data = 
rddPartitions.map(blockRow).sorted(ordering(sortColumn, desc))
    +
    +  override def dataSize: Int = data.size
    +
    +  override def sliceData(from: Int, to: Int): Seq[BlockTableRowData] = {
    +    data.slice(from, to)
    +  }
    +
    +  private def blockRow(rddPartition: RDDPartitionInfo): BlockTableRowData 
= {
    +    BlockTableRowData(
    +    rddPartition.blockName,
    --- End diff --
    
    Wrong indentation.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to