Class

com.rouesnel.typedsql.macros

ScroogeGenerator

Related Doc: package macros

Permalink

class ScroogeGenerator[Context <: Context] extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ScroogeGenerator
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScroogeGenerator(c: Context)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def buildArrayDecode(valueType: scala.reflect.macros.Universe.Tree, readValue: scala.reflect.macros.Universe.Tree): scala.reflect.macros.Universe.Tree

    Permalink

    Generates the array decode method for any array fields.

  6. def buildMapDecode(keyType: scala.reflect.macros.Universe.Tree, valueType: scala.reflect.macros.Universe.Tree, readKey: scala.reflect.macros.Universe.Tree, readValue: scala.reflect.macros.Universe.Tree): scala.reflect.macros.Universe.Tree

    Permalink

    Generates the map decode method for any map fields.

  7. def buildThriftDecode(structNamer: (StructType) ⇒ scala.reflect.macros.Universe.TypeName, structName: scala.reflect.macros.Universe.TypeName, fields: List[(String, HiveType)]): List[scala.reflect.macros.Universe.DefDef]

    Permalink

    Generates the decode method for a thrift struct.

  8. val c: Context

    Permalink
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def generateStruct(structNamer: (StructType) ⇒ scala.reflect.macros.Universe.TypeName, struct: StructType): List[Context.Tree]

    Permalink

    From a Hive Struct generate a Scrooge compatible/similar case class and object

  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hiveTypeToThriftTypeName(typ: HiveType): scala.reflect.macros.Universe.Tree

    Permalink

    Maps a Hive type to the Thrift protocol types.

  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def readerForType(structNamer: (StructType) ⇒ scala.reflect.macros.Universe.TypeName, hiveType: HiveType): scala.reflect.macros.Universe.Tree

    Permalink

    Generates the method for reading the particular field value.

  22. def resolveType(structNamer: (StructType) ⇒ scala.reflect.macros.Universe.TypeName, fieldType: HiveType): scala.reflect.macros.Universe.Tree

    Permalink

    Resolves a HiveType to a specific Scala type.

    Resolves a HiveType to a specific Scala type.

    Slightly complicated that we need to be able to resolve Hive structs to specific Scala types that have been generated (or will be generated shortly).

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. lazy val ttypeToHumanMethod: scala.reflect.macros.Universe.DefDef

    Permalink

    The ttypeToHumanMethod required for pretty printing errors/incorrect field types

  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped