Ejemplo n.º 1
0
 /**
  * Gets the estimated size in bytes of this product node.
  *
  * @param subsetDef if not <code>null</code> the subset may limit the size returned
  * @return the size in bytes.
  */
 @Override
 public long getRawStorageSize(ProductSubsetDef subsetDef) {
   long size = 0L;
   if (isPartOfSubset(subsetDef)) {
     size += 256; // add estimated overhead of 256 bytes
     size += ProductData.getElemSize(getDataType()) * getNumDataElems();
   }
   return size;
 }
Ejemplo n.º 2
0
 /**
  * Gets the data element size in bytes.
  *
  * @see ProductData#getElemSize(int)
  */
 public int getDataElemSize() {
   return ProductData.getElemSize(getDataType());
 }