public class Archive extends Object
Modifier and Type | Field and Description |
---|---|
(package private) List<CDPStatusBlock> |
cdpStatusBlocks
Consolitation data points
|
(package private) int |
currentRow
Row for last modification time of database
|
(package private) long |
dataOffset
Data offset within file in bytes
|
(package private) RRDatabase |
db |
(package private) long |
headerOffset
Header offset within file in bytes
|
(package private) int |
pdpCount |
(package private) int |
rowCount
Data row count
|
(package private) double |
xff |
Constructor and Description |
---|
Archive(RRDatabase db) |
Modifier and Type | Method and Description |
---|---|
CDPStatusBlock |
getCDPStatusBlock(int index)
Returns the
CDPStatusBlock at the specified position in this archive. |
Iterator<CDPStatusBlock> |
getCDPStatusBlocks()
Returns an iterator over the CDP status blocks in this archive in proper sequence.
|
int |
getPdpCount()
Returns the number of primary data points required for a consolidated
data point in this archive.
|
int |
getRowCount()
Returns the number of entries in this archive.
|
ConsolidationFunctionType |
getType()
Returns the type of function used to calculate the consolidated data point.
|
double[][] |
getValues()
Getter for the field
values . |
double |
getXff()
Returns the X-Files Factor for this archive.
|
(package private) void |
loadCDPStatusBlocks(RRDFile file,
int numBlocks) |
(package private) void |
loadCurrentRow(RRDFile file) |
(package private) void |
loadData(DataChunk chunk) |
(package private) void |
loadData(RRDFile file,
int dsCount) |
(package private) void |
printInfo(PrintStream s,
NumberFormat numberFormat,
int index) |
String |
toString()
Returns a summary the contents of this archive.
|
(package private) void |
toXml(PrintStream s) |
final RRDatabase db
final long headerOffset
long dataOffset
final int rowCount
final int pdpCount
final double xff
List<CDPStatusBlock> cdpStatusBlocks
int currentRow
Archive(RRDatabase db) throws IOException
IOException
public ConsolidationFunctionType getType()
void loadCDPStatusBlocks(RRDFile file, int numBlocks) throws IOException
IOException
public CDPStatusBlock getCDPStatusBlock(int index)
CDPStatusBlock
at the specified position in this archive.index
- index of CDPStatusBlock
to return.CDPStatusBlock
at the specified position in this archive.public Iterator<CDPStatusBlock> getCDPStatusBlocks()
CDPStatusBlock
void loadCurrentRow(RRDFile file) throws IOException
IOException
void loadData(RRDFile file, int dsCount) throws IOException
IOException
void loadData(DataChunk chunk) throws IOException
IOException
void printInfo(PrintStream s, NumberFormat numberFormat, int index)
void toXml(PrintStream s)
public double[][] getValues() throws IOException
Getter for the field values
.
IOException
- if any.public int getPdpCount()
public int getRowCount()
public double getXff()