
geotrellis.spark.io.avro.package.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geotrellis-spark_2.11 Show documentation
Show all versions of geotrellis-spark_2.11 Show documentation
GeoTrellis is an open source geographic data processing engine for high performance applications.
The newest version!
package geotrellis.spark.io
import geotrellis.util._
import org.apache.avro._
import org.apache.avro.generic._
import scala.reflect.ClassTag
package object avro {
implicit class withGenericRecordMethods(val self: GenericRecord) extends MethodExtensions[GenericRecord] {
def apply[X](name: String) = self.get(name).asInstanceOf[X]
}
implicit class withSchemaMethods(val self: Schema) extends MethodExtensions[Schema] {
def fingerprintMatches(other: Schema): Boolean =
SchemaNormalization.parsingFingerprint64(self) == SchemaNormalization.parsingFingerprint64(other)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy