Returns the batch into which the supplied Date is bucketed.
Returns the batch into which the supplied Date is bucketed.
What batches are needed to cover the given interval or: for all t in interval, batchOf(t) is in the result
What batches are needed to cover the given interval or: for all t in interval, batchOf(t) is in the result
Returns the current BatchID.
Returns the current BatchID.
Returns the (inclusive) earliest time of the supplied batch.
Returns the (inclusive) earliest time of the supplied batch.
Returns the sequence of BatchIDs that the supplied other
batcher would need to fetch to fully enclose the supplied
batchID
.
Returns the sequence of BatchIDs that the supplied other
batcher would need to fetch to fully enclose the supplied
batchID
.
Returns true if the supplied timestamp sits at the floor of the supplied batch.
Returns true if the supplied timestamp sits at the floor of the supplied batch.
Returns the latest time in the given batch
Returns the latest time in the given batch
This batcher numbers batches based on a Calendar, not just milliseconds. Many offline HDFS sources at Twitter are batched in this way based on hour or day in the UTC calendar