public class BinManager extends BaseTable implements IBinManager
| Field | Type | Description |
|---|---|---|
| binname | VARCHAR(255) | Primary Key |
| bincounter | BIGINT |
| Modifier and Type | Field and Description |
|---|---|
static String |
_rcsid |
static String |
binCounterField |
static String |
binNameField |
dbInterface, tableName| Constructor and Description |
|---|
BinManager(IDBInterface database)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deinstall()
Uninstall.
|
double[] |
getIncrementBinValues(String binName,
double newBinValue,
int count)
Get N bin values (and set next one).
|
double[] |
getIncrementBinValuesInTransaction(String binName,
double newBinValue,
int count)
Get N bin values (and set next one).
|
void |
install()
Install or upgrade this table.
|
void |
reset()
Reset all bins
|
addTableIndex, analyzeTable, beginTransaction, buildConjunctionClause, constructCountClause, constructDistinctOnClause, constructDoubleCastClause, constructOffsetLimitClause, constructRegexpClause, constructSubstringClause, endTransaction, findConjunctionClauseMax, getDatabaseCacheKey, getDBInterface, getMaxInClause, getMaxOrClause, getSleepAmt, getTableIndexes, getTableName, getTableSchema, getTransactionID, getWindowedReportMaxRows, makeTableKey, noteModifications, performAddIndex, performAlter, performCommit, performCreate, performDelete, performDrop, performInsert, performModification, performQuery, performQuery, performRemoveIndex, performUpdate, prepareRowForSave, readRow, reindexTable, signalRollback, sleepForpublic static final String _rcsid
public static final String binNameField
public static final String binCounterField
public BinManager(IDBInterface database) throws ManifoldCFException
database - is the database handle.ManifoldCFExceptionpublic void install()
throws ManifoldCFException
install in interface IBinManagerManifoldCFExceptionpublic void deinstall()
throws ManifoldCFException
deinstall in interface IBinManagerManifoldCFExceptionpublic void reset()
throws ManifoldCFException
reset in interface IBinManagerManifoldCFExceptionpublic double[] getIncrementBinValues(String binName, double newBinValue, int count) throws ManifoldCFException
getIncrementBinValues in interface IBinManagerbinName - is the name of the bin (256 char max)newBinValue - is the value to use if there is no such bin yet. This is the value that will be
returned; what will be stored will be that value + 1.count - is the number of values desired.ManifoldCFExceptionpublic double[] getIncrementBinValuesInTransaction(String binName, double newBinValue, int count) throws ManifoldCFException
getIncrementBinValuesInTransaction in interface IBinManagerbinName - is the name of the bin (256 char max)newBinValue - is the value to use if there is no such bin yet. This is the value that will be
returned; what will be stored will be that value + 1.count - is the number of values desired.ManifoldCFException