edu.rice.cs.hpc.viewer.db.DataSummary Class Reference

Inheritance diagram for edu.rice.cs.hpc.viewer.db.DataSummary:
Inheritance graph
[legend]
Collaboration diagram for edu.rice.cs.hpc.viewer.db.DataSummary:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void open (final String file) throws IOException
void printInfo (PrintStream out)
float getMetric (int cct_id, int metric_id) throws IOException
void dispose () throws IOException

Static Public Member Functions

static void main (String[]argv)

Static Public Attributes

static final float DEFAULT_METRIC = 0.0f

Protected Member Functions

boolean isTypeFormatCorrect (long type)
boolean isFileHeaderCorrect (String header)
boolean readNext (FileChannel input) throws IOException
void readHeader (String file, FileInputStream fis, ByteBuffer buffer) throws IOException

Protected Attributes

long format
long num_threads
long num_cctid
long num_metric
String filename

Package Attributes

long offset_start
long offset_size
long metric_start
long metric_size
int size_offset
int size_metid
int size_metval
int[] cct_table = null

Private Member Functions

void fillOffsetTable (final String filename) throws IOException
void open_internal (String filename) throws FileNotFoundException

Private Attributes

RandomAccessFile file
FileChannel channel

Static Private Attributes

static final int FLOAT_SIZE = Float.SIZE / Byte.SIZE
static final int INTEGER_SIZE = Integer.SIZE / Byte.SIZE
static final int METRIC_ENTRY_SIZE = FLOAT_SIZE + INTEGER_SIZE

Detailed Description

Definition at line 21 of file DataSummary.java.


Member Function Documentation

void edu.rice.cs.hpc.viewer.db.DataSummary.dispose (  )  throws IOException
void edu.rice.cs.hpc.viewer.db.DataSummary.fillOffsetTable ( final String  filename  )  throws IOException [private]
float edu.rice.cs.hpc.viewer.db.DataSummary.getMetric ( int  cct_id,
int  metric_id 
) throws IOException
boolean edu.rice.cs.hpc.viewer.db.DataSummary.isFileHeaderCorrect ( String  header  )  [protected, virtual]

Implements edu.rice.cs.hpc.data.db.DataCommon.

Definition at line 198 of file DataSummary.java.

boolean edu.rice.cs.hpc.viewer.db.DataSummary.isTypeFormatCorrect ( long  type  )  [protected, virtual]

Implements edu.rice.cs.hpc.data.db.DataCommon.

Definition at line 193 of file DataSummary.java.

static void edu.rice.cs.hpc.viewer.db.DataSummary.main ( String[]  argv  )  [static]
void edu.rice.cs.hpc.viewer.db.DataSummary.open ( final String  file  )  throws IOException
void edu.rice.cs.hpc.viewer.db.DataSummary.open_internal ( String  filename  )  throws FileNotFoundException [private]
void edu.rice.cs.hpc.viewer.db.DataSummary.printInfo ( PrintStream  out  ) 
void edu.rice.cs.hpc.data.db.DataCommon.readHeader ( String  file,
FileInputStream  fis,
ByteBuffer  buffer 
) throws IOException [protected, inherited]
boolean edu.rice.cs.hpc.viewer.db.DataSummary.readNext ( FileChannel  input  )  throws IOException [protected, virtual]

Member Data Documentation

Definition at line 31 of file DataSummary.java.

Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.getMetric().

RandomAccessFile edu.rice.cs.hpc.viewer.db.DataSummary.file [private]
String edu.rice.cs.hpc.data.db.DataCommon.filename [protected, inherited]
final int edu.rice.cs.hpc.viewer.db.DataSummary.FLOAT_SIZE = Float.SIZE / Byte.SIZE [static, private]

Definition at line 28 of file DataSummary.java.

long edu.rice.cs.hpc.data.db.DataCommon.format [protected, inherited]
final int edu.rice.cs.hpc.viewer.db.DataSummary.INTEGER_SIZE = Integer.SIZE / Byte.SIZE [static, private]

Definition at line 29 of file DataSummary.java.

Definition at line 30 of file DataSummary.java.

Referenced by edu.rice.cs.hpc.viewer.db.DataSummary.getMetric().

long edu.rice.cs.hpc.data.db.DataCommon.num_cctid [protected, inherited]
long edu.rice.cs.hpc.data.db.DataCommon.num_metric [protected, inherited]

The documentation for this class was generated from the following file:

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1