public final class TimePartitioning extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
TimePartitioning.Type
The type of time partitioning.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Long |
expirationMs()
Returns the number of milliseconds for which to keep the storage for a partition.
|
int |
hashCode() |
static TimePartitioning |
of(TimePartitioning.Type type)
Returns a
TimePartitioning object given the time partitioning type. |
static TimePartitioning |
of(TimePartitioning.Type type,
long expirationMs)
Returns a
TimePartitioning object given the time partitioning type and the partition's
expiration in milliseconds. |
String |
toString() |
TimePartitioning.Type |
type()
Returns the time partitioning type.
|
public TimePartitioning.Type type()
TimePartitioning.Type.DAY
,
which will generate one partition per day based on data loading time.public Long expirationMs()
public static TimePartitioning of(TimePartitioning.Type type)
TimePartitioning
object given the time partitioning type. Currently, the only
type supported is TimePartitioning.Type.DAY
, which will generate one partition per day based on data
loading time.public static TimePartitioning of(TimePartitioning.Type type, long expirationMs)
TimePartitioning
object given the time partitioning type and the partition's
expiration in milliseconds.type
- the time partitioning type. Currently, the only type supported is TimePartitioning.Type.DAY
,
which will generate one partition per day based on data loading time.expirationMs
- the number of milliseconds for which to keep the storage for a partitionCopyright © 2016 Google. All rights reserved.