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

input.reflectivecompilation.schemagen.SchemaStore.scala Maven / Gradle / Ivy

There is a newer version: 1.0.0-RC23
Show newest version
package avrohugger
package input
package reflectivecompilation
package schemagen

import java.util.concurrent.ConcurrentHashMap
import collection.JavaConversions._
 
import org.apache.avro.Schema

class SchemaStore {

  val schemas: scala.collection.concurrent.Map[String, Schema] = scala.collection.convert.Wrappers.JConcurrentMapWrapper(new ConcurrentHashMap[String, Schema]())

  def accept(schema: Schema) {
  	val fullName = schema.getFullName
    val _ = schemas += (fullName -> schema)
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy