Package ucar.nc2.dods
Class DODSVariable
- java.lang.Object
-
- ucar.nc2.CDMNode
-
- ucar.nc2.Variable
-
- ucar.nc2.dods.DODSVariable
-
- All Implemented Interfaces:
Comparable<VariableSimpleIF>
,Iterable<Attribute>
,AttributeContainer
,DODSNode
,ProxyReader
,VariableSimpleIF
- Direct Known Subclasses:
DODSGrid
public class DODSVariable extends Variable implements DODSNode
A read-only DODS-netCDF Variable. Same as a ucar.nc2.Variable except that it might have type boolean or long. Note that DODS DUInt32 widened to long and DODS DUInt16 widened to int.- See Also:
Variable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ucar.nc2.Variable
Variable.Builder<T extends Variable.Builder<T>>, Variable.Cache
-
-
Field Summary
Fields Modifier and Type Field Description protected String
CE
protected DODSNetcdfFile
dodsfile
-
Fields inherited from class ucar.nc2.Variable
attributes, cache, dataType, debugCaching, defaultCoordsSizeToCache, defaultSizeToCache, dimensions, elementSize, hashCode, isVariableLength, ncfile, permitCaching, proxyReader, shape, sizeToCache, spiObject
-
Fields inherited from class ucar.nc2.CDMNode
annotations, dodsname, group, immutable, parentstruct, shortName, sort
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DODSVariable(DODSVariable from)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Variable
copy()
Deprecated.boolean
equals(Object oo)
Instances which have same content are equal.String
getDODSName()
Get the dodsnameprotected boolean
hasCE()
int
hashCode()
Override Object.hashCode() to implement equals.protected String
nameWithCE()
protected void
setCE(String CE)
void
setDODSName(String name)
Store the original dods name-
Methods inherited from class ucar.nc2.Variable
_read, _read, _readScalarData, addAll, addAttribute, addLocalFieldsToBuilder, attributes, builder, compareTo, createNewCache, extraInfo, findAttribute, findAttributeDouble, findAttributeIgnoreCase, findAttributeInteger, findAttributeString, findDimensionIndex, getAttributes, getDAPName, getDAPName, getDatasetLocation, getDataType, getDescription, getDimension, getDimensions, getDimensionsAll, getDimensionsString, getElementSize, getEnumTypedef, getFileTypeId, getFullName, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNetcdfFile, getParentGroup, getParentGroupOrRoot, getParentStructure, getProxyReader, getRanges, getRank, getScalarData, getShape, getShape, getShapeAll, getShapeAsSection, getSize, getSizeToCache, getSPobject, getUnitsString, hasCachedData, invalidateCache, isCaching, isCoordinateVariable, isEmpty, isImmutable, isMemberOfStructure, isMetadata, isScalar, isUnknownLength, isUnlimited, isVariableLength, lookupEnumString, read, read, read, read, read, readScalarByte, readScalarDouble, readScalarFloat, readScalarInt, readScalarLong, readScalarShort, readScalarString, readToByteChannel, readToStream, reallyRead, reallyRead, reduce, remove, removeAttribute, removeAttributeIgnoreCase, resetDimensions, resetShape, section, section, setCachedData, setCachedData, setCaching, setDataType, setDimension, setDimensions, setDimensions, setDimensionsAnonymous, setElementSize, setEnumTypedef, setImmutable, setIsScalar, setName, setParentGroup, setProxyReader, setSizeToCache, setSPobject, setValues, setValues, slice, toBuilder, toString, toStringDebug, writeCDL, writeCDL
-
Methods inherited from class ucar.nc2.CDMNode
annotate, annotation, getFullNameEscaped, getGroup, getImmutable, getName, getShortName, getSort, localhash, setParentStructure, setShortName, setSort, unwrap
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ucar.nc2.AttributeContainer
findAttValueIgnoreCase, getName, hasAttribute, hasAttributeIgnoreCase, iterator
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface ucar.nc2.VariableSimpleIF
getName, getShortName
-
-
-
-
Field Detail
-
CE
protected String CE
-
dodsfile
protected DODSNetcdfFile dodsfile
-
-
Constructor Detail
-
DODSVariable
protected DODSVariable(DODSVariable from)
-
-
Method Detail
-
copy
@Deprecated protected Variable copy()
Deprecated.
-
setCE
protected void setCE(String CE)
-
hasCE
protected boolean hasCE()
-
nameWithCE
protected String nameWithCE()
-
equals
public boolean equals(Object oo)
Instances which have same content are equal.
-
hashCode
public int hashCode()
Description copied from class:Variable
Override Object.hashCode() to implement equals.
-
getDODSName
public String getDODSName()
Description copied from class:CDMNode
Get the dodsname- Specified by:
getDODSName
in interfaceDODSNode
- Overrides:
getDODSName
in classCDMNode
- Returns:
- the original names from the DDS or DAS; if null, then return the short name
-
setDODSName
public void setDODSName(String name)
Description copied from class:CDMNode
Store the original dods name- Specified by:
setDODSName
in interfaceDODSNode
- Overrides:
setDODSName
in classCDMNode
- Parameters:
name
- The original name from the DDS/DAS
-
-