mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-13 06:38:52 +02:00
ef4c5eb65e
Please note we have force-pushed a new initial commit in order to remove some publicly-available Twitter user information. Note that this process may be required in the future.
25 lines
910 B
Scala
25 lines
910 B
Scala
package com.twitter.interaction_graph.scio.agg_address_book
|
|
|
|
import com.twitter.beam.io.dal.DALOptions
|
|
import com.twitter.beam.job.DateRangeOptions
|
|
import org.apache.beam.sdk.options.Default
|
|
import org.apache.beam.sdk.options.Description
|
|
import org.apache.beam.sdk.options.Validation.Required
|
|
|
|
trait InteractionGraphAddressBookOption extends DALOptions with DateRangeOptions {
|
|
@Required
|
|
@Description("Output path for storing the final dataset")
|
|
def getOutputPath: String
|
|
def setOutputPath(value: String): Unit
|
|
|
|
@Description("Indicates DAL write environment. Can be set to dev/stg during local validation")
|
|
@Default.String("PROD")
|
|
def getDALWriteEnvironment: String
|
|
def setDALWriteEnvironment(value: String): Unit
|
|
|
|
@Description("Number of shards/partitions for saving the final dataset.")
|
|
@Default.Integer(16)
|
|
def getNumberOfShards: Integer
|
|
def setNumberOfShards(value: Integer): Unit
|
|
}
|