public abstract static class Variable.Builder<T extends Variable.Builder<T>> extends Object
Modifier and Type | Field and Description |
---|---|
ucar.nc2.Variable.Cache |
cache |
DataType |
dataType |
NetcdfFile |
ncfile |
Group |
parent |
Structure |
parentStruct |
ProxyReader |
proxyReader |
String |
shortName |
Object |
spiObject |
Constructor and Description |
---|
Builder() |
public String shortName
public DataType dataType
public NetcdfFile ncfile
public Group parent
public Structure parentStruct
public Object spiObject
public ProxyReader proxyReader
public ucar.nc2.Variable.Cache cache
public AttributeContainerMutable getAttributeContainer()
public T addDimensions(Collection<Dimension> dims)
public boolean replaceDimension(Dimension dim)
public String makeDimensionsString()
@Deprecated public List<Dimension> copyDimensions()
public T setDimensionsAnonymous(int[] shape)
shape
- defines the dimension lengths. must be > 0, or -1 for VLENRuntimeException
- if any shape < 1 and not -1.public com.google.common.collect.ImmutableList<Dimension> getDimensions(@Nullable Group.Builder gb)
public com.google.common.collect.ImmutableSet<String> getDimensionsAll()
public T setIsScalar()
public int getRank()
public String getEnumTypeName()
public T setElementSize(int elementSize)
public T setNcfile(NetcdfFile ncfile)
public T setProxyReader(ProxyReader proxy)
public T setAutoGen(double start, double incr)
public T resetCache()
public T setCaching(boolean caching)
public T copyFrom(Variable.Builder<?> builder)
public Variable build()