T
- type of the items the sink acceptspublic final class FileSinkBuilder<T> extends Object
Modifier and Type | Method and Description |
---|---|
FileSinkBuilder<T> |
append(boolean append)
Sets whether to append (
true ) or overwrite (false )
an existing file. |
Sink<T> |
build()
Creates and returns the file
Sink with the supplied components. |
FileSinkBuilder<T> |
charset(Charset charset)
Sets the character set used to encode the files.
|
FileSinkBuilder<T> |
toStringFn(DistributedFunction<? super T,String> toStringFn)
Sets the function which converts the item to its string representation.
|
public FileSinkBuilder<T> toStringFn(@Nonnull DistributedFunction<? super T,String> toStringFn)
Object.toString()
.public FileSinkBuilder<T> charset(@Nonnull Charset charset)
StandardCharsets.UTF_8
.public FileSinkBuilder<T> append(boolean append)
true
) or overwrite (false
)
an existing file. Default value is false
.Copyright © 2018 Hazelcast, Inc.. All rights reserved.