Examples of rowDef()


Examples of com.foundationdb.ais.model.Table.rowDef()

    }

    protected RowDef getIndexStatsRowDef(Session session) {
        Table table = store.getAIS(session).getTable(INDEX_STATISTICS_TABLE_NAME);
        assert (table != null);
        return table.rowDef();
    }

    protected RowDef getIndexStatsEntryRowDef(Session session) {
        Table table = store.getAIS(session).getTable(INDEX_STATISTICS_ENTRY_TABLE_NAME);
        assert (table != null);
View Full Code Here

Examples of com.foundationdb.ais.model.Table.rowDef()

    }

    protected RowDef getIndexStatsEntryRowDef(Session session) {
        Table table = store.getAIS(session).getTable(INDEX_STATISTICS_ENTRY_TABLE_NAME);
        assert (table != null);
        return table.rowDef();
    }


    /* Storage formats.
     * Keep in sync with IndexStatisticsServiceImpl
View Full Code Here

Examples of com.foundationdb.ais.model.Table.rowDef()

        List<Table> tableList = new ArrayList<>();
        tableList.add(table.getGroup().getRoot());
        while(!tableList.isEmpty()) {
            Table aTable = tableList.remove(tableList.size() - 1);
            if(aTable != table) {
                if(aTable.rowDef().getTableStatus().getRowCount(session) > 0) {
                    return false;
                }
            }
            if((aTable != table) || !descendants) {
                for(Join join : aTable.getChildJoins()) {
View Full Code Here

Examples of com.foundationdb.ais.model.Table.rowDef()

        int index = 0;
        while (true) {
            int[] keyDepth = table.hKey().keyDepth();
            index = keyDepth[keyDepth.length - 1];
            if (index >= hkey.getDepth()) {
                return table.rowDef();
            }
            hkey.indexTo(index);
            ordinal = hkey.decodeInt();
            boolean found = false;
            for (Join join : table.getChildJoins()) {
View Full Code Here

Examples of com.foundationdb.ais.model.Table.rowDef()

    protected void lock(Session session, Row row) {
        RowData rowData = ((AbstractRow)row).rowData();
        Table table = row.rowType().table();
        SDType storeData = createStoreData(session, table.getGroup());
        try {
            lock(session, storeData, table.rowDef(), rowData);
        } finally {
            releaseStoreData(session, storeData);
        }
    }
View Full Code Here

Examples of com.foundationdb.ais.model.Table.rowDef()

    }

    @Override
    public void truncateTableStatus(final Session session, final int rowDefId) {
        Table table = getAIS(session).getTable(rowDefId);
        table.rowDef().getTableStatus().truncate(session);
    }

    @Override
    public void deleteIndexes(final Session session, final Collection<? extends Index> indexes) {
        for(Index index : indexes) {
View Full Code Here

Examples of com.foundationdb.ais.model.Table.rowDef()

                        for(RowListener listener : listenerService.getRowListeners()) {
                            listener.onDeletePre(session, table, hKey, rowData);
                        }
                        // Don't call deleteRow as the hKey does not need recomputed.
                        clear(session, storeData);
                        table.rowDef().getTableStatus().rowDeleted(session);
                        for(TableIndex index : table.rowDef().getIndexes()) {
                            long zValue = -1;
                            SpatialColumnHandler spatialColumnHandler = null;
                            if (index.isSpatial()) {
                                spatialColumnHandler = new SpatialColumnHandler(index);
View Full Code Here

Examples of com.foundationdb.ais.model.Table.rowDef()

                            listener.onDeletePre(session, table, hKey, rowData);
                        }
                        // Don't call deleteRow as the hKey does not need recomputed.
                        clear(session, storeData);
                        table.rowDef().getTableStatus().rowDeleted(session);
                        for(TableIndex index : table.rowDef().getIndexes()) {
                            long zValue = -1;
                            SpatialColumnHandler spatialColumnHandler = null;
                            if (index.isSpatial()) {
                                spatialColumnHandler = new SpatialColumnHandler(index);
                                zValue = spatialColumnHandler.zValue(rowData);
View Full Code Here

Examples of com.foundationdb.ais.model.Table.rowDef()

        try {
            Row row;
            cursor.openTopLevel();
            while((row = cursor.next()) != null) {
                Table aTable = row.rowType().table();
                RowData data = adapter.rowData(aTable.rowDef(), row, new RowDataCreator());
                maintainGroupIndexes(session,
                                     aTable,
                                     aTable.getGroupIndexes(),
                                     data,
                                     null,
View Full Code Here

Examples of com.foundationdb.ais.model.Table.rowDef()

    }

    private static RowDef getRowDef(AkibanInformationSchema ais, int tableID) {
        Table table = ais.getTable(tableID);
        assert (table != null) : tableID;
        return table.rowDef();
    }

    protected void fillIdentityColumn(Session session, NewRow row) {
        Table table = row.getRowDef().table();
        Column idColumn = table.getIdentityColumn();
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.