Class BinManager

  • All Implemented Interfaces:
    IBinManager

    public class BinManager
    extends BaseTable
    implements IBinManager
    This class manages the docbins table. A row in this table represents a document bin. The count that is kept is the number of documents in this particular bin that have been assigned a document priority.

    docbins
    FieldTypeDescription        
    binnameVARCHAR(255)Primary Key
    bincounterBIGINT


    • Method Detail

      • getIncrementBinValues

        public double[] getIncrementBinValues​(java.lang.String connectorClass,
                                              java.lang.String binName,
                                              double newBinValue,
                                              int count)
                                       throws ManifoldCFException
        Get N bin values (and set next one). If the record does not yet exist, create it with a starting value. We expect this to happen within a transaction!!.
        Specified by:
        getIncrementBinValues in interface IBinManager
        Parameters:
        connectorClass - is the class name of the connector
        binName - 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.
        Returns:
        the counter values.
        Throws:
        ManifoldCFException
      • getIncrementBinValuesInTransaction

        public double[] getIncrementBinValuesInTransaction​(java.lang.String connectorClass,
                                                           java.lang.String binName,
                                                           double newBinValue,
                                                           int count)
                                                    throws ManifoldCFException
        Get N bin values (and set next one). If the record does not yet exist, create it with a starting value. This method invokes its own retry-able transaction.
        Specified by:
        getIncrementBinValuesInTransaction in interface IBinManager
        Parameters:
        connectorClass - is the class name of the connector
        binName - 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.
        Returns:
        the counter values.
        Throws:
        ManifoldCFException