Package org.apache.derby.iapi.types

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


            columnValues = cloneRow( columnValues );
        }

        Object key = KeyHasher.buildHashKey( columnValues, key_column_numbers );
        Object hashValue = !includeRowLocations() ?
            columnValues : new LocatedRow( columnValues, rowLocation );
        Object duplicate_value = hash_table.put( key, hashValue );

        if (duplicate_value == null)
        {
            doSpaceAccounting( hashValue, false );
View Full Code Here


                (
                 max_inmemory_size >
                 getEstimatedMemUsage
                 (
                  !includeRowLocations() ?
                  columnValues : new LocatedRow( columnValues, rowLocation )
                 )
                )
            {
                return false;
            }
View Full Code Here

    private DataValueDescriptor[]   makeDiskRow( Object raw )
    {
        DataValueDescriptor[]   allColumns = null;
        if ( includeRowLocations() )
        {
            LocatedRow  locatedRow = (LocatedRow) raw;
            allColumns = makeDiskRow
                ( locatedRow.columnValues(), locatedRow.rowLocation() );
        }
        else { allColumns = (DataValueDescriptor[]) raw; }

        return allColumns;
    }
View Full Code Here

        {
            return diskRow;
        }
        else
        {
            return new LocatedRow( diskRow );
        }
    }
View Full Code Here

        {
            row = (DataValueDescriptor[]) hashValue;
        }
        else
        {
            LocatedRow  locatedRow = (LocatedRow) hashValue;
            row = locatedRow.columnValues();

            // account for the RowLocation size and class overhead
            RowLocation rowLocation = locatedRow.rowLocation();
            if ( rowLocation != null )
            {
                rowMem += locatedRow.rowLocation().estimateMemoryUsage();
                rowMem += ClassSize.refSize;
            }

            // account for class overhead of the LocatedRow itself
            rowMem += ClassSize.refSize;
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.types.LocatedRow

Copyright © 2018 www.massapicom. 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.