public static class PartitionSpec.Builder
extends java.lang.Object
partition specs
.
Call PartitionSpec.builderFor(Schema)
to create a new builder.
Modifier and Type | Method and Description |
---|---|
PartitionSpec.Builder |
alwaysNull(java.lang.String sourceName) |
PartitionSpec.Builder |
alwaysNull(java.lang.String sourceName,
java.lang.String targetName) |
PartitionSpec.Builder |
bucket(java.lang.String sourceName,
int numBuckets) |
PartitionSpec.Builder |
bucket(java.lang.String sourceName,
int numBuckets,
java.lang.String targetName) |
PartitionSpec |
build() |
PartitionSpec.Builder |
day(java.lang.String sourceName) |
PartitionSpec.Builder |
day(java.lang.String sourceName,
java.lang.String targetName) |
PartitionSpec.Builder |
hour(java.lang.String sourceName) |
PartitionSpec.Builder |
hour(java.lang.String sourceName,
java.lang.String targetName) |
PartitionSpec.Builder |
identity(java.lang.String sourceName) |
PartitionSpec.Builder |
month(java.lang.String sourceName) |
PartitionSpec.Builder |
month(java.lang.String sourceName,
java.lang.String targetName) |
PartitionSpec.Builder |
truncate(java.lang.String sourceName,
int width) |
PartitionSpec.Builder |
truncate(java.lang.String sourceName,
int width,
java.lang.String targetName) |
PartitionSpec.Builder |
withSpecId(int newSpecId) |
PartitionSpec.Builder |
year(java.lang.String sourceName) |
PartitionSpec.Builder |
year(java.lang.String sourceName,
java.lang.String targetName) |
public PartitionSpec.Builder withSpecId(int newSpecId)
public PartitionSpec.Builder identity(java.lang.String sourceName)
public PartitionSpec.Builder year(java.lang.String sourceName, java.lang.String targetName)
public PartitionSpec.Builder year(java.lang.String sourceName)
public PartitionSpec.Builder month(java.lang.String sourceName, java.lang.String targetName)
public PartitionSpec.Builder month(java.lang.String sourceName)
public PartitionSpec.Builder day(java.lang.String sourceName, java.lang.String targetName)
public PartitionSpec.Builder day(java.lang.String sourceName)
public PartitionSpec.Builder hour(java.lang.String sourceName, java.lang.String targetName)
public PartitionSpec.Builder hour(java.lang.String sourceName)
public PartitionSpec.Builder bucket(java.lang.String sourceName, int numBuckets, java.lang.String targetName)
public PartitionSpec.Builder bucket(java.lang.String sourceName, int numBuckets)
public PartitionSpec.Builder truncate(java.lang.String sourceName, int width, java.lang.String targetName)
public PartitionSpec.Builder truncate(java.lang.String sourceName, int width)
public PartitionSpec.Builder alwaysNull(java.lang.String sourceName, java.lang.String targetName)
public PartitionSpec.Builder alwaysNull(java.lang.String sourceName)
public PartitionSpec build()