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

com.azure.cosmos.spark.NormalizedRange.scala Maven / Gradle / Ivy

There is a newer version: 4.34.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.cosmos.spark

private[cosmos] case class NormalizedRange
(
  min: String,
  max: String
) extends Ordered[NormalizedRange] {
  override def compare(that: NormalizedRange): Int = {
    val minComparison = this.min.compareTo(that.min)

    if (minComparison == 0) {
      this.max.compareTo(that.max)
    } else {
      minComparison
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy