public class TSDataOptimizerTask extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TSDataOptimizerTask.NewFile
The result of installing a new optimized file.
|
| Constructor and Description |
|---|
TSDataOptimizerTask(Path destDir)
Create a new optimizer task and fill it with the given files.
|
TSDataOptimizerTask(Path destDir,
Collection<TSData> files)
Create a new optimizer task and fill it with the given files.
|
| Modifier and Type | Method and Description |
|---|---|
TSDataOptimizerTask |
add(TSData tsdata)
Add a file to the collection of files that will make up the final
optimized file.
|
TSDataOptimizerTask |
addAll(Collection<? extends TSData> tsdata)
Add files to the collection of files that will make up the final
optimized file.
|
CompletableFuture<TSDataOptimizerTask.NewFile> |
run()
Start creating the optimized file.
|
TSDataOptimizerTask |
withCompression(Compression compression)
Use the specified compression method for creating the optimized file.
|
public TSDataOptimizerTask(@NonNull
Path destDir,
@NonNull
Collection<TSData> files)
destDir - the destination directory in which the new file will be
placed.files - a list of files to add.public TSDataOptimizerTask(@NonNull
Path destDir)
destDir - the destination directory in which the new file will be
placed.public TSDataOptimizerTask add(TSData tsdata)
tsdata - The TSData of which the contents are to be added to the
optimized file.public TSDataOptimizerTask addAll(Collection<? extends TSData> tsdata)
tsdata - The collection of TSData of which the contents are to be
added to the optimized file.public TSDataOptimizerTask withCompression(Compression compression)
compression - The compression method to use.public CompletableFuture<TSDataOptimizerTask.NewFile> run()
Copyright © 2017. All rights reserved.