Package org.vast.data
Class AbstractDataBlock
java.lang.Object
org.vast.data.AbstractDataBlock
- All Implemented Interfaces:
Serializable,DataBlock
- Direct Known Subclasses:
DataBlockBoolean,DataBlockByte,DataBlockCompressed,DataBlockDouble,DataBlockFloat,DataBlockInt,DataBlockList,DataBlockLong,DataBlockMixed,DataBlockParallel,DataBlockShort,DataBlockString,DataBlockTuple,DataBlockUByte,DataBlockUInt,DataBlockUShort
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AbstractDataBlockclone()Full copy of datablock structure and values A new underlying object is created with the same valuesabstract AbstractDataBlockcopy()Shallow copy of datablock structure The underlying object is sharedintReturns number of scalar values in this DataBlockabstract ObjectAllow direct access to underlying object carrying the data (usually a primitive array or composite)abstract AbstractDataBlockrenew()Regenerate an identical datablock of same size with a new underlying objectabstract voidAllows to set the underlying object directlytoString()voidRecompute atom count after new child blocks have been addedMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.opengis.swe.v20.DataBlock
getBooleanValue, getBooleanValue, getByteValue, getByteValue, getDataType, getDataType, getDoubleValue, getDoubleValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getShortValue, getShortValue, getStringValue, getStringValue, resize, setBooleanValue, setBooleanValue, setByteValue, setByteValue, setDoubleValue, setDoubleValue, setFloatValue, setFloatValue, setIntValue, setIntValue, setLongValue, setLongValue, setShortValue, setShortValue, setStringValue, setStringValue
-
Field Details
-
atomCount
protected int atomCount -
startIndex
protected int startIndex
-
-
Constructor Details
-
AbstractDataBlock
public AbstractDataBlock()
-
-
Method Details
-
copy
Shallow copy of datablock structure The underlying object is shared -
renew
Regenerate an identical datablock of same size with a new underlying object -
clone
Full copy of datablock structure and values A new underlying object is created with the same values -
getUnderlyingObject
Allow direct access to underlying object carrying the data (usually a primitive array or composite)- Specified by:
getUnderlyingObjectin interfaceDataBlock- Returns:
- underlying object
-
setUnderlyingObject
Allows to set the underlying object directly- Specified by:
setUnderlyingObjectin interfaceDataBlock- Parameters:
obj-
-
getAtomCount
public int getAtomCount()Returns number of scalar values in this DataBlock- Specified by:
getAtomCountin interfaceDataBlock
-
updateAtomCount
public void updateAtomCount()Recompute atom count after new child blocks have been added- Specified by:
updateAtomCountin interfaceDataBlock
-
toString
-