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 AbstractDataBlock
clone()
Full copy of datablock structure and values A new underlying object is created with the same valuesabstract AbstractDataBlock
copy()
Shallow copy of datablock structure The underlying object is sharedint
Returns number of scalar values in this DataBlockabstract Object
Allow direct access to underlying object carrying the data (usually a primitive array or composite)abstract AbstractDataBlock
renew()
Regenerate an identical datablock of same size with a new underlying objectabstract void
Allows to set the underlying object directlytoString()
void
Recompute atom count after new child blocks have been addedMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
getUnderlyingObject
in interfaceDataBlock
- Returns:
- underlying object
-
setUnderlyingObject
Allows to set the underlying object directly- Specified by:
setUnderlyingObject
in interfaceDataBlock
- Parameters:
obj
-
-
getAtomCount
public int getAtomCount()Returns number of scalar values in this DataBlock- Specified by:
getAtomCount
in interfaceDataBlock
-
updateAtomCount
public void updateAtomCount()Recompute atom count after new child blocks have been added- Specified by:
updateAtomCount
in interfaceDataBlock
-
toString
-