Class

com.twitter.scalding.typed

TemplatePartition

Related Doc: package typed

Permalink

case class TemplatePartition(partitionFields: Fields, template: String) extends Partition with Product with Serializable

Creates a partition using the given template string.

The template string needs to have %s as placeholder for a given field.

Source
TemplatePartition.scala
Linear Supertypes
Serializable, Product, Equals, Partition, Serializable, AnyRef, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TemplatePartition
  2. Serializable
  3. Product
  4. Equals
  5. Partition
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TemplatePartition(partitionFields: Fields, template: String)

    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 clone(): AnyRef

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

    Permalink
    Definition Classes
    AnyRef
  7. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def getPartitionFields(): Fields

    Permalink

    Returns the partition fields.

    Returns the partition fields.

    Definition Classes
    TemplatePartition → Partition
  10. def getPathDepth(): Int

    Permalink

    Returns the path depth.

    Returns the path depth. In this case the number of partition fields.

    Definition Classes
    TemplatePartition → Partition
  11. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  15. val partitionFields: Fields

    Permalink
  16. lazy val pattern: Pattern

    Permalink

    Regex pattern created from the template to extract the partition values from a path.

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

    Permalink
    Definition Classes
    AnyRef
  18. val template: String

    Permalink
  19. def toPartition(tupleEntry: TupleEntry): String

    Permalink

    Given the specified tuple entry fill in the supplied template entry to create the partition path.

    Given the specified tuple entry fill in the supplied template entry to create the partition path.

    Definition Classes
    TemplatePartition → Partition
  20. def toTuple(partition: String, tupleEntry: TupleEntry): Unit

    Permalink

    Converts the given partition string to field values and populates the supplied tuple entry with it.

    Converts the given partition string to field values and populates the supplied tuple entry with it.

    Definition Classes
    TemplatePartition → Partition
  21. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Partition

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped