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 |
getExpirationMs()
Returns the number of milliseconds for which to keep the storage for a partition.
|
TimePartitioning.Type |
getType()
Returns the time partitioning type.
|
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() |
public TimePartitioning.Type getType()
TimePartitioning.Type.DAY
,
which will generate one partition per day based on data loading time.public Long getExpirationMs()
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 © 2017 Google. All rights reserved.