public class HourlyShardBuilder extends Object implements ShardBuilder<org.calrissian.mango.domain.event.Event>, EventShardBuilder
| Modifier and Type | Field and Description |
|---|---|
protected String |
dateFormat |
protected String |
delimiter |
protected Integer |
numPartitions |
| Constructor and Description |
|---|
HourlyShardBuilder(Integer numPartitions) |
| Modifier and Type | Method and Description |
|---|---|
String |
buildShard(org.calrissian.mango.domain.event.Event event) |
String |
buildShard(long timestamp,
int partition) |
SortedSet<org.apache.hadoop.io.Text> |
buildShardsInRange(Date start,
Date stop) |
protected final Integer numPartitions
protected String delimiter
protected String dateFormat
public HourlyShardBuilder(Integer numPartitions)
public String buildShard(org.calrissian.mango.domain.event.Event event)
buildShard in interface ShardBuilder<org.calrissian.mango.domain.event.Event>public String buildShard(long timestamp, int partition)
buildShard in interface EventShardBuilderCopyright © 2014 Calrissian. All Rights Reserved.