public static class Partitioning.Builder extends Object
Modifier and Type | Method and Description |
---|---|
Partitioning.Builder |
addField(String name,
Partitioning.FieldType type)
Add a field with a given name and type.
|
Partitioning.Builder |
addIntField(String name)
Add field of type INT.
|
Partitioning.Builder |
addLongField(String name)
Add field of type LONG.
|
Partitioning.Builder |
addStringField(String name)
Add field of type STRING.
|
Partitioning |
build()
Create the partitioning.
|
public Partitioning.Builder addField(@Nonnull String name, @Nonnull Partitioning.FieldType type)
name
- the field nametype
- the type of the fieldIllegalArgumentException
- if the field name is null, empty, or already exists,
or if the type is null.public Partitioning.Builder addStringField(String name)
name
- the field nameIllegalArgumentException
- if the field name is null, empty, or already exists.public Partitioning.Builder addIntField(String name)
name
- the field nameIllegalArgumentException
- if the field name is null, empty, or already exists.public Partitioning.Builder addLongField(String name)
name
- the field nameIllegalArgumentException
- if the field name is null, empty, or already exists.public Partitioning build()
IllegalStateException
- if no fields have been addedCopyright © 2022 Cask Data, Inc. Licensed under the Apache License, Version 2.0.