Companion

object Companion

Properties

Link copied to clipboard

The query id map use to avoid string hashcode collision. Ideally this map should be per module.

Functions

Link copied to clipboard
fun getUniqueQueryIdentifier(qualifiedQueryName: String): Int

Use the hashcode of qualifiedQueryName to generate the unique identifier id for queries. Detect the hashcode collision by caching the generated identifiers. Runtime exception will be thrown when collision happens. Client would need to give a different query name to avoid the collision.