public abstract static class NetcdfFormatWriter.Builder<T extends NetcdfFormatWriter.Builder<T>> extends Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
T |
addAttribute(Attribute att)
Add a global attribute
|
Dimension |
addDimension(Dimension dim)
Add a dimension to the root group.
|
Dimension |
addDimension(String dimName,
int length)
Add a dimension to the root group.
|
Structure.Builder<?> |
addStructure(String shortName,
String dimString)
Add a Structure to the root group.
|
Dimension |
addUnlimitedDimension(String dimName)
Add an unlimited dimension to the root group.
|
Variable.Builder<?> |
addVariable(String shortName,
ArrayType dataType,
List<Dimension> dims)
Add a Variable to the root group.
|
Variable.Builder<?> |
addVariable(String shortName,
ArrayType dataType,
String dimString)
Add a Variable to the root group.
|
Variable.Builder<?> |
addVariable(String shortName,
DataType dataType,
List<Dimension> dims)
Deprecated.
use addVariable(String shortName, ArrayType dataType, List
|
Variable.Builder<?> |
addVariable(String shortName,
DataType dataType,
String dimString)
Deprecated.
use addVariable(String shortName, ArrayType dataType, String dimString)
|
NetcdfFormatWriter |
build()
Once this is called, do not use the Builder again.
|
Group.Builder |
getRootGroup()
Get the root group
|
protected abstract T |
self() |
T |
setChunker(Nc4Chunking chunker)
Nc4Chunking, used only for netcdf4
|
T |
setExtraHeader(int extraHeaderBytes)
Set extra bytes to reserve in the header.
|
T |
setFill(boolean fill)
Set the fill flag.
|
T |
setFormat(NetcdfFileFormat format)
Set the format version.
|
NetcdfFormatWriter.Builder<?> |
setIosp(IOServiceProvider iosp) |
T |
setIsExisting() |
T |
setLocation(String location)
The file locatipn
|
T |
setPreallocateSize(long preallocateSize)
Preallocate the file size, for efficiency.
|
T |
setRootGroup(Group.Builder rootGroup)
Set the root group.
|
T |
setUseJna(boolean useJna)
Set if you want to use JNA / netcdf c library to do the writing.
|
protected abstract T self()
public NetcdfFormatWriter.Builder<?> setIosp(IOServiceProvider iosp)
public T setIsExisting()
public T setFill(boolean fill)
public T setFormat(NetcdfFileFormat format)
public T setExtraHeader(int extraHeaderBytes)
extraHeaderBytes - # bytes extra for the headerpublic T setPreallocateSize(long preallocateSize)
public T setChunker(Nc4Chunking chunker)
public T setUseJna(boolean useJna)
public Dimension addDimension(String dimName, int length)
public Dimension addUnlimitedDimension(String dimName)
public Group.Builder getRootGroup()
public T setRootGroup(Group.Builder rootGroup)
@Deprecated public Variable.Builder<?> addVariable(String shortName, DataType dataType, String dimString)
public Variable.Builder<?> addVariable(String shortName, ArrayType dataType, String dimString)
@Deprecated public Variable.Builder<?> addVariable(String shortName, DataType dataType, List<Dimension> dims)
public Variable.Builder<?> addVariable(String shortName, ArrayType dataType, List<Dimension> dims)
public Structure.Builder<?> addStructure(String shortName, String dimString)
public NetcdfFormatWriter build() throws IOException
IOException