public static class InsertParam.Builder
extends java.lang.Object
InsertParam
class.Modifier and Type | Method | Description |
---|---|---|
InsertParam |
build() |
Verifies parameters and creates a new
InsertParam instance. |
InsertParam.Builder |
withCollectionName(@NonNull java.lang.String collectionName) |
Sets the collection name.
|
InsertParam.Builder |
withFields(@NonNull java.util.List<InsertParam.Field> fields) |
Sets the data to insert.
|
InsertParam.Builder |
withPartitionName(@NonNull java.lang.String partitionName) |
Set partition name (Optional).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public InsertParam.Builder withCollectionName(@NonNull
@NonNull java.lang.String collectionName)
collectionName
- collection nameBuilder
public InsertParam.Builder withPartitionName(@NonNull
@NonNull java.lang.String partitionName)
partitionName
- partition nameBuilder
public InsertParam.Builder withFields(@NonNull
@NonNull java.util.List<InsertParam.Field> fields)
fields
- insert dataBuilder
InsertParam.Field
public InsertParam build()
throws ParamException
InsertParam
instance.InsertParam
ParamException