Examples of DataValueDescriptor


Examples of org.apache.derby.iapi.types.DataValueDescriptor

   */
  void accumulate(ExecRow  inputRow,
              ExecRow  accumulateRow)
    throws StandardException
  {
    DataValueDescriptor  inputColumn = null;

    if (SanityManager.DEBUG)
    {
      SanityManager.ASSERT((inputRow != null) && (accumulateRow != null), "bad accumulate call");
    }

    DataValueDescriptor aggregatorColumn = accumulateRow.getColumn(aggregatorColumnId + 1);

    inputColumn = inputRow.getColumn(inputColumnId + 1);

    accumulate(inputColumn, aggregatorColumn);
  }
View Full Code Here

Examples of org.apache.derby.iapi.types.DataValueDescriptor

   */
  void accumulate(Object[]  inputRow,
              Object[]  accumulateRow)
    throws StandardException
  {
    DataValueDescriptor  inputColumn = null;

    if (SanityManager.DEBUG)
    {
      SanityManager.ASSERT((inputRow != null) && (accumulateRow != null), "bad accumulate call");
    }

    DataValueDescriptor aggregatorColumn = (DataValueDescriptor) accumulateRow[aggregatorColumnId];
    inputColumn = (DataValueDescriptor) inputRow[inputColumnId];

    accumulate(inputColumn, aggregatorColumn);
  }
View Full Code Here

Examples of org.apache.derby.iapi.types.DataValueDescriptor

  void merge(ExecRow  inputRow,
              ExecRow  mergeRow)
    throws StandardException
  {

    DataValueDescriptor mergeColumn = mergeRow.getColumn(aggregatorColumnId + 1);
    DataValueDescriptor inputColumn = inputRow.getColumn(aggregatorColumnId + 1);

    merge(inputColumn, mergeColumn);
  }
View Full Code Here

Examples of org.apache.derby.iapi.types.DataValueDescriptor

   */
  void merge(Object[]  inputRow,
              Object[]  mergeRow)
    throws StandardException
  {
    DataValueDescriptor mergeColumn = (DataValueDescriptor) mergeRow[aggregatorColumnId];
    DataValueDescriptor inputColumn = (DataValueDescriptor) inputRow[aggregatorColumnId];

    merge(inputColumn, mergeColumn);
  }
View Full Code Here

Examples of org.apache.derby.iapi.types.DataValueDescriptor

   * @exception StandardException on error
   */
  boolean finish(ExecRow row)
    throws StandardException
  {
    DataValueDescriptor outputColumn = row.getColumn(resultColumnId + 1);
    DataValueDescriptor aggregatorColumn = row.getColumn(aggregatorColumnId + 1);
    /*
    ** Just to be on the safe side, confirm that we actually
    ** have a Aggregator in aggregatorColumn.
    */
    if (SanityManager.DEBUG)
    {
      SanityManager.ASSERT(aggregatorColumn != null, "aggregatorColumn is null");
      SanityManager.ASSERT(outputColumn != null, "otuputColumn is null");
      SanityManager.ASSERT(aggregatorColumn instanceof UserDataValue,
        "accumlator column is not a UserDataValue as expected");
    }

    ExecAggregator ua = (ExecAggregator) aggregatorColumn.getObject();

    /*
    ** If we don't have an aggregator, then we have to
    ** create one now.  This happens when the input result
    ** set is null.
    */
    if (ua == null)
    {
      ua = getAggregatorInstance();
   

    /*
    **
    ** We are going to copy
    ** then entire DataValueDescriptor into the result column.
    ** We could call setValue(result.setObject()), but we
    ** might loose state (e.g. SQLBit.getObject() returns a
    ** byte[] which looses the precision of the bit. 
    **
    */
   
    DataValueDescriptor result = ua.getResult();
    if (result == null)
      outputColumn.setToNull();
    else
      outputColumn.setValue(result);

View Full Code Here

Examples of org.apache.derby.iapi.types.DataValueDescriptor

   */
  void accumulate(ExecRow  inputRow,
              ExecRow  accumulateRow)
    throws StandardException
  {
    DataValueDescriptor  inputColumn = null;

    if (SanityManager.DEBUG)
    {
      SanityManager.ASSERT((inputRow != null) && (accumulateRow != null), "bad accumulate call");
    }

    DataValueDescriptor aggregatorColumn = accumulateRow.getColumn(aggregatorColumnId + 1);

    inputColumn = inputRow.getColumn(inputColumnId + 1);

    accumulate(inputColumn, aggregatorColumn);
  }
View Full Code Here

Examples of org.apache.derby.iapi.types.DataValueDescriptor

   */
  void accumulate(Object[]  inputRow,
              Object[]  accumulateRow)
    throws StandardException
  {
    DataValueDescriptor  inputColumn = null;

    if (SanityManager.DEBUG)
    {
      SanityManager.ASSERT((inputRow != null) && (accumulateRow != null), "bad accumulate call");
    }

    DataValueDescriptor aggregatorColumn = (DataValueDescriptor) accumulateRow[aggregatorColumnId];
    inputColumn = (DataValueDescriptor) inputRow[inputColumnId];

    accumulate(inputColumn, aggregatorColumn);
  }
View Full Code Here

Examples of org.apache.derby.iapi.types.DataValueDescriptor

  void merge(ExecRow  inputRow,
              ExecRow  mergeRow)
    throws StandardException
  {

    DataValueDescriptor mergeColumn = mergeRow.getColumn(aggregatorColumnId + 1);
    DataValueDescriptor inputColumn = inputRow.getColumn(aggregatorColumnId + 1);

    merge(inputColumn, mergeColumn);
  }
View Full Code Here

Examples of org.apache.derby.iapi.types.DataValueDescriptor

   */
  void merge(Object[]  inputRow,
              Object[]  mergeRow)
    throws StandardException
  {
    DataValueDescriptor mergeColumn = (DataValueDescriptor) mergeRow[aggregatorColumnId];
    DataValueDescriptor inputColumn = (DataValueDescriptor) inputRow[aggregatorColumnId];

    merge(inputColumn, mergeColumn);
  }
View Full Code Here

Examples of org.apache.derby.iapi.types.DataValueDescriptor

   * @exception StandardException on error
   */
  boolean finish(ExecRow row)
    throws StandardException
  {
    DataValueDescriptor outputColumn = row.getColumn(resultColumnId + 1);
    DataValueDescriptor aggregatorColumn = row.getColumn(aggregatorColumnId + 1);
    /*
    ** Just to be on the safe side, confirm that we actually
    ** have a Aggregator in aggregatorColumn.
    */
    if (SanityManager.DEBUG)
    {
      SanityManager.ASSERT(aggregatorColumn != null, "aggregatorColumn is null");
      SanityManager.ASSERT(outputColumn != null, "otuputColumn is null");
      SanityManager.ASSERT(aggregatorColumn instanceof UserDataValue,
        "accumlator column is not a UserDataValue as expected");
    }

    ExecAggregator ua = (ExecAggregator) aggregatorColumn.getObject();

    /*
    ** If we don't have an aggregator, then we have to
    ** create one now.  This happens when the input result
    ** set is null.
    */
    if (ua == null)
    {
      ua = getAggregatorInstance();
   

    /*
    **
    ** We are going to copy
    ** then entire DataValueDescriptor into the result column.
    ** We could call setValue(result.setObject()), but we
    ** might loose state (e.g. SQLBit.getObject() returns a
    ** byte[] which looses the precision of the bit. 
    **
    */
   
    DataValueDescriptor result = ua.getResult();
    if (result == null)
      outputColumn.setToNull();
    else
      outputColumn.setValue(result);

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.