Interface DataBlock

All Superinterfaces:
Serializable
All Known Implementing Classes:
AbstractDataBlock, DataBlockBoolean, DataBlockByte, DataBlockCompressed, DataBlockDouble, DataBlockFloat, DataBlockInt, DataBlockList, DataBlockLong, DataBlockMixed, DataBlockParallel, DataBlockShort, DataBlockString, DataBlockTuple, DataBlockUByte, DataBlockUInt, DataBlockUShort

public interface DataBlock extends Serializable

Implementations of this class should be able to carry data for any part of the data cluster defined in the DataDefinition part of the SWE Common Data Model. It should provide access to any data atom through primitive specific methods. Data should be casted from one primitive to another when needed and possible. In order to improve performance, no check needs to be enforced on the index argument (i.e 0 < index < blockSize - 1), thus all getXXXValue(int index) and setXXXValue(int index, ...) do not need to guarantee their bahavior when an invalid index is used. IndexOutOfBoundException can be thrown in some cases.

Since:
Aug 14, 2005
  • Method Details

    • getDataType

      DataType getDataType()
    • getDataType

      DataType getDataType(int index)
    • getAtomCount

      int getAtomCount()
    • getBooleanValue

      boolean getBooleanValue(int index)
    • getByteValue

      byte getByteValue(int index)
    • getShortValue

      short getShortValue(int index)
    • getIntValue

      int getIntValue(int index)
    • getLongValue

      long getLongValue(int index)
    • getFloatValue

      float getFloatValue(int index)
    • getDoubleValue

      double getDoubleValue(int index)
    • getStringValue

      String getStringValue(int index)
    • getBooleanValue

      boolean getBooleanValue()
    • getByteValue

      byte getByteValue()
    • getShortValue

      short getShortValue()
    • getIntValue

      int getIntValue()
    • getLongValue

      long getLongValue()
    • getFloatValue

      float getFloatValue()
    • getDoubleValue

      double getDoubleValue()
    • getStringValue

      String getStringValue()
    • setBooleanValue

      void setBooleanValue(int index, boolean value)
    • setByteValue

      void setByteValue(int index, byte value)
    • setShortValue

      void setShortValue(int index, short value)
    • setIntValue

      void setIntValue(int index, int value)
    • setLongValue

      void setLongValue(int index, long value)
    • setFloatValue

      void setFloatValue(int index, float value)
    • setDoubleValue

      void setDoubleValue(int index, double value)
    • setStringValue

      void setStringValue(int index, String value)
    • setBooleanValue

      void setBooleanValue(boolean value)
    • setByteValue

      void setByteValue(byte value)
    • setShortValue

      void setShortValue(short value)
    • setIntValue

      void setIntValue(int value)
    • setLongValue

      void setLongValue(long value)
    • setFloatValue

      void setFloatValue(float value)
    • setDoubleValue

      void setDoubleValue(double value)
    • setStringValue

      void setStringValue(String value)
    • resize

      void resize(int size)
    • copy

      DataBlock copy()
    • clone

      DataBlock clone()
    • renew

      DataBlock renew()
    • getUnderlyingObject

      Object getUnderlyingObject()
    • setUnderlyingObject

      void setUnderlyingObject(Object obj)
    • updateAtomCount

      void updateAtomCount()