Package org.apache.iceberg
Class PartitionSpec.Builder
- java.lang.Object
-
- org.apache.iceberg.PartitionSpec.Builder
-
- Enclosing class:
- PartitionSpec
public static class PartitionSpec.Builder extends java.lang.Object
Used to create validpartition specs
.Call
PartitionSpec.builderFor(Schema)
to create a new builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
caseSensitive(boolean sensitive)
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)
-
-
-
Method Detail
-
caseSensitive
public PartitionSpec.Builder caseSensitive(boolean sensitive)
-
withSpecId
public PartitionSpec.Builder withSpecId(int newSpecId)
-
identity
public PartitionSpec.Builder identity(java.lang.String sourceName)
-
year
public PartitionSpec.Builder year(java.lang.String sourceName, java.lang.String targetName)
-
year
public PartitionSpec.Builder year(java.lang.String sourceName)
-
month
public PartitionSpec.Builder month(java.lang.String sourceName, java.lang.String targetName)
-
month
public PartitionSpec.Builder month(java.lang.String sourceName)
-
day
public PartitionSpec.Builder day(java.lang.String sourceName, java.lang.String targetName)
-
day
public PartitionSpec.Builder day(java.lang.String sourceName)
-
hour
public PartitionSpec.Builder hour(java.lang.String sourceName, java.lang.String targetName)
-
hour
public PartitionSpec.Builder hour(java.lang.String sourceName)
-
bucket
public PartitionSpec.Builder bucket(java.lang.String sourceName, int numBuckets, java.lang.String targetName)
-
bucket
public PartitionSpec.Builder bucket(java.lang.String sourceName, int numBuckets)
-
truncate
public PartitionSpec.Builder truncate(java.lang.String sourceName, int width, java.lang.String targetName)
-
truncate
public PartitionSpec.Builder truncate(java.lang.String sourceName, int width)
-
alwaysNull
public PartitionSpec.Builder alwaysNull(java.lang.String sourceName, java.lang.String targetName)
-
alwaysNull
public PartitionSpec.Builder alwaysNull(java.lang.String sourceName)
-
build
public PartitionSpec build()
-
-