public interface IStatsFileDatabaseLevel
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
deleteRows(int row) |
Deletes all rows equal to and greater than supplied row.
|
boolean |
deleteRowsAll() |
Deletes all data in level.
|
void |
dropIndexData() |
As time and records are read/written some storage is used to speed operation.
|
boolean |
findTime(long time,
com.wowza.wms.stats.database.file.StatsFileDatabaseTime timeResult) |
Find the closest row with a given time.
|
int |
getBytesPerField() |
Get the number of bytes per-field
|
int |
getFieldCount() |
Get the number of fields per-row.
|
boolean |
getFirstTime(com.wowza.wms.stats.database.file.StatsFileDatabaseTime timeResult) |
Get the time of row 0
|
int |
getFlags() |
Get flags
|
boolean |
getLastTime(com.wowza.wms.stats.database.file.StatsFileDatabaseTime timeResult) |
Get the time of last row
|
long |
getLastWriteTime() |
Get the time of the last row written.
|
int |
getLevelIndex() |
Get level index
|
int |
getRowCountCurrent() |
Get the current number of rows in the level
|
int |
getRowCountMax() |
Get the maximum number of rows for this level
|
int |
getRowStorageSize() |
Get the storage size in bytes for a single row of data.
|
int |
getTableCount() |
Get the number of tables
|
boolean |
getTime(int row,
com.wowza.wms.stats.database.file.StatsFileDatabaseTime timeResult) |
Get time associdated with a given row.
|
int |
getTimeIncrement() |
Get the time increment for this level (only informational)
|
int |
getTimeIndexFactor() |
Not really used - may use in the future
|
int |
getTimes(int row,
int count,
long[] time) |
Get time for a range or rows.
|
int |
getVersion() |
Get version
|
boolean |
readRows(int table,
int row,
int count,
byte[] rowBytes,
int offset) |
Read the data for a range of rows.
|
void |
setBytesPerField(int bytesPerField) |
Set the number of bytes per-fied (only when creating empty database)
|
void |
setFieldCount(int fieldCount) |
Set the number of fields per-row (only when creating empty database)
|
void |
setRowCountMax(int rowCountMax) |
Get the max number of rows (only when creating empty database)
|
void |
setTableCount(int tableCount) |
Set number of tables (only when creating empty database)
|
void |
setTimeIncrement(int timeIncrement) |
Set the time increment for this level v
|
void |
setTimeIndexFactor(int timeIndexFactor) |
Not really used - may use in the future
|
boolean |
writeRow(long timecode,
int[] fields) |
Write a row to the level.
|
boolean |
writeRow(long timecode,
int[][] fieldsArr) |
Write a row to the level.
|
boolean deleteRows(int row)
row - boolean deleteRowsAll()
void dropIndexData()
boolean findTime(long time,
com.wowza.wms.stats.database.file.StatsFileDatabaseTime timeResult)
time - timeResult - int getBytesPerField()
int getFieldCount()
boolean getFirstTime(com.wowza.wms.stats.database.file.StatsFileDatabaseTime timeResult)
timeResult - int getFlags()
boolean getLastTime(com.wowza.wms.stats.database.file.StatsFileDatabaseTime timeResult)
timeResult - long getLastWriteTime()
int getLevelIndex()
int getRowCountCurrent()
int getRowCountMax()
int getRowStorageSize()
int getTableCount()
boolean getTime(int row,
com.wowza.wms.stats.database.file.StatsFileDatabaseTime timeResult)
row - timeResult - int getTimeIncrement()
int getTimeIndexFactor()
int getTimes(int row,
int count,
long[] time)
row - count - time - int getVersion()
boolean readRows(int table,
int row,
int count,
byte[] rowBytes,
int offset)
table - row - count - rowBytes - offset - void setBytesPerField(int bytesPerField)
bytesPerField - void setFieldCount(int fieldCount)
fieldCount - void setRowCountMax(int rowCountMax)
rowCountMax - void setTableCount(int tableCount)
tableCount - void setTimeIncrement(int timeIncrement)
timeIncrement - void setTimeIndexFactor(int timeIndexFactor)
timeIndexFactor - boolean writeRow(long timecode,
int[] fields)
timecode - fields - boolean writeRow(long timecode,
int[][] fieldsArr)
timecode - fieldsArr -