public abstract static class Variable.Builder<T extends Variable.Builder<T>>
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
Variable.Cache | 
cache  | 
DataType | 
dataType  | 
NetcdfFile | 
ncfile  | 
protected Group.Builder | 
parentBuilder  | 
protected Structure.Builder<?> | 
parentStructureBuilder  | 
ProxyReader | 
proxyReader  | 
java.lang.String | 
shortName  | 
java.lang.Object | 
spiObject  | 
| Constructor and Description | 
|---|
Builder()  | 
| Modifier and Type | Method and Description | 
|---|---|
T | 
addAttribute(Attribute att)  | 
T | 
addAttributes(java.lang.Iterable<Attribute> atts)  | 
T | 
addDimension(Dimension dim)  | 
T | 
addDimensions(java.util.Collection<Dimension> dims)  | 
Variable | 
build(Group parentGroup)
Normally this is called by Group.build() 
 | 
Variable.Builder<?> | 
copy()  | 
T | 
copyFrom(Variable.Builder<?> builder)  | 
T | 
copyFrom(Variable orgVar)
TODO Copy metadata from orgVar. 
 | 
AttributeContainerMutable | 
getAttributeContainer()  | 
java.lang.String | 
getDimensionName(int index)  | 
java.lang.Iterable<java.lang.String> | 
getDimensionNames()  | 
com.google.common.collect.ImmutableList<Dimension> | 
getDimensions()  | 
com.google.common.collect.ImmutableSet<java.lang.String> | 
getDimensionsAll()  | 
int | 
getElementSize()  | 
java.lang.String | 
getEnumTypeName()  | 
java.lang.String | 
getFirstDimensionName()  | 
java.lang.String | 
getFullName()  | 
Group.Builder | 
getParentGroupBuilder()  | 
Structure.Builder<?> | 
getParentStructureBuilder()  | 
int | 
getRank()  | 
java.lang.String | 
makeDimensionsString()  | 
Variable.Builder<?> | 
makeSliceBuilder(int dim,
                int index)
Create a new Variable.Builder that is a logical slice of this one, by
 fixing the specified dimension at the specified index value. 
 | 
boolean | 
replaceDimensionByName(Dimension dim)
Find the dimension with the same name as dim, and replace it with dim 
 | 
T | 
resetCache()  | 
protected abstract T | 
self()  | 
T | 
setAutoGen(double start,
          double incr)  | 
T | 
setCachedData(Array cacheData,
             boolean isMetadata)  | 
T | 
setCaching(boolean caching)  | 
T | 
setDataType(DataType dataType)  | 
T | 
setDimensions(java.util.List<Dimension> dims)  | 
T | 
setDimensionsAnonymous(int[] shape)
Set the dimensions using all anonymous (unshared) dimensions 
 | 
T | 
setDimensionsByName(java.lang.String dimString)
Set dimensions by name. 
 | 
T | 
setElementSize(int elementSize)  | 
T | 
setEnumTypeName(java.lang.String enumTypeName)  | 
T | 
setIsScalar()  | 
T | 
setName(java.lang.String shortName)  | 
T | 
setNcfile(NetcdfFile ncfile)  | 
T | 
setParentGroupBuilder(Group.Builder parent)  | 
T | 
setProxyReader(ProxyReader proxy)  | 
T | 
setSPobject(java.lang.Object spiObject)  | 
java.lang.String | 
toString()  | 
public java.lang.String shortName
public DataType dataType
public NetcdfFile ncfile
protected Group.Builder parentBuilder
protected Structure.Builder<?> parentStructureBuilder
public java.lang.Object spiObject
public ProxyReader proxyReader
public Variable.Cache cache
protected abstract T self()
public AttributeContainerMutable getAttributeContainer()
public boolean replaceDimensionByName(Dimension dim)
public T setDimensionsByName(java.lang.String dimString)
@Nullable public java.lang.String getFirstDimensionName()
@Nullable public java.lang.String getDimensionName(int index)
public java.lang.Iterable<java.lang.String> getDimensionNames()
public java.lang.String makeDimensionsString()
public T setDimensionsAnonymous(int[] shape)
shape - defines the dimension lengths. must be > 0, or -1 for VLENjava.lang.RuntimeException - if any shape < 1 and not -1.public com.google.common.collect.ImmutableList<Dimension> getDimensions()
public com.google.common.collect.ImmutableSet<java.lang.String> getDimensionsAll()
public T setIsScalar()
public int getRank()
public java.lang.String getEnumTypeName()
public int getElementSize()
public T setElementSize(int elementSize)
public T setEnumTypeName(java.lang.String enumTypeName)
public T setNcfile(NetcdfFile ncfile)
public T setSPobject(java.lang.Object spiObject)
public T setName(java.lang.String shortName)
public java.lang.String getFullName()
public T setParentGroupBuilder(Group.Builder parent)
public Group.Builder getParentGroupBuilder()
public Structure.Builder<?> getParentStructureBuilder()
public T setProxyReader(ProxyReader proxy)
public T setAutoGen(double start, double incr)
public T resetCache()
public T setCaching(boolean caching)
public Variable.Builder<?> makeSliceBuilder(int dim, int index)
dim - which dimension to fixindex - at what index valuepublic Variable.Builder<?> copy()
public T copyFrom(Variable.Builder<?> builder)
public java.lang.String toString()
toString in class java.lang.Object