com.twitter.collection

RecordSchema

final class RecordSchema extends AnyRef

RecordSchema represents the declaration of a heterogeneous Record type, with Fields that are determined at runtime. A Field declares the static type of its associated values, so although the record itself is dynamic, field access is type-safe.

Given a RecordSchema declaration schema, any number of Records of that schema can be obtained with schema.newRecord. The type that Scala assigns to this value is what Scala calls a "path-dependent type," meaning that schema1.Record and schema2.Record name distinct types. The same is true of fields: schema1.Field[A] and schema2.Field[A] are distinct, and can only be used with the corresponding Record.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RecordSchema
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RecordSchema()

Type Members

  1. sealed trait Field[A] extends AnyRef

    Field is a handle used to access some corresponding value in a Record.

  2. final class Record extends AnyRef

    Record is an instance of a RecordSchema declaration.

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  15. def newField[A](defaultSupplier: ⇒ A): Field[A]

    Creates a new Field with the given defaultSupplier, to be used only with Records from this schema.

    Creates a new Field with the given defaultSupplier, to be used only with Records from this schema.

    defaultSupplier

    a computation producing the default value to use, when there is no value previously assigned to this field in a given record.

    returns

    a Field with the given defaultSupplier

  16. def newField[A](): Field[A]

    Creates a new Field with no default value, to be used only with Records from this schema.

    Creates a new Field with no default value, to be used only with Records from this schema.

    returns

    a Field with no default value

  17. def newRecord(): Record

    Creates a new Record from this Schema.

    Creates a new Record from this Schema.

    returns

    a new Record

  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. def toString(): String

    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped