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 |
ProxyReader |
proxyReader |
String |
shortName |
Object |
spiObject |
Constructor and Description |
---|
Builder() |
public ucar.nc2.Variable.Cache cache
public DataType dataType
public NetcdfFile ncfile
public ProxyReader proxyReader
public String shortName
public Object spiObject
public T addDimensions(Collection<Dimension> dims)
public Variable.Builder<?> copy()
public T copyFrom(Variable.Builder<?> builder)
public AttributeContainerMutable getAttributeContainer()
public com.google.common.collect.ImmutableList<Dimension> getDimensions()
public com.google.common.collect.ImmutableSet<String> getDimensionsAll()
public int getElementSize()
public String getEnumTypeName()
public String getFullName()
public Group.Builder getParentGroupBuilder()
public Structure.Builder<?> getParentStructureBuilder()
public int getRank()
public String makeDimensionsString()
public Variable.Builder<?> makeSliceBuilder(int dim, int index)
dim
- which dimension to fixindex
- at what index valuepublic boolean replaceDimensionByName(Dimension dim)
public T resetCache()
public T setAutoGen(double start, double incr)
public T setCaching(boolean caching)
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 T setDimensionsByName(String dimString)
public T setElementSize(int elementSize)
public T setIsScalar()
public T setNcfile(NetcdfFile ncfile)
public T setParentGroupBuilder(Group.Builder parent)
public T setProxyReader(ProxyReader proxy)