Package com.foundationdb.server.rowdata

Examples of com.foundationdb.server.rowdata.RowDataExtractor


                activeColumns.add( fieldIndex );
            }
        }

        NewRow retval = new NiceRow(rowDef.getRowDefId(), rowDef);
        RowDataExtractor extractor = new RowDataExtractor(origData, rowDef);
        for (int pos : activeColumns) {
            Object value = extractor.get(rowDef.getFieldDef(pos));
            Object old = retval.put(pos, value);
            assert old == null : String.format("put(%s, %s) --> %s", pos, value, old);
        }

        return retval;
View Full Code Here


    }

    private RowDataExtractor extractor()
    {
        if (extractor == null) {
            extractor = new RowDataExtractor(rowData, rowDef);
        }
        return extractor;
    }
View Full Code Here

        return tablesRequiringHKeyMaintenance;
    }

    /** Build a user-friendly representation of the Index row for the given RowData. */
    protected String formatIndexRowString(Session session, RowData rowData, Index index) {
        RowDataExtractor extractor = new RowDataExtractor(rowData, getGlobalRowDef(session, rowData));
        StringBuilder sb = new StringBuilder();
        sb.append('(');
        boolean first = true;
        for(IndexColumn iCol : index.getKeyColumns()) {
            Object o = extractor.get(iCol.getColumn().getFieldDef());
            if(first) {
                first = false;
            } else {
                sb.append(',');
            }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.rowdata.RowDataExtractor

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.