Package com.foundationdb.qp.row

Examples of com.foundationdb.qp.row.ValuesRow


                        String tableType = (table.getName().inSystemSchema() ? "SYSTEM " : "") +
                                           (table.hasMemoryTableFactory() ? "VIEW" : "TABLE");
                        final Integer ordinal = table.hasMemoryTableFactory() ? null : table.getOrdinal();
                        final boolean isInsertable = !table.hasMemoryTableFactory();
                        if(isAccessible(session, table.getName())) {
                            return new ValuesRow(rowType,
                                     null,       //catalog
                                     table.getName().getSchemaName(),
                                     table.getName().getTableName(),
                                     tableType,
                                     null,                  // self reference column
                                     null,                  // reference generation
                                     boolResult(isInsertable),
                                     boolResult(false),     // is types
                                     null,                  //commit action
                                     null,                  // charset catalog
                                     null,
                                     table.getDefaultedCharsetName().toLowerCase(),
                                     null,                  // collation catalog
                                     null,
                                     table.getDefaultedCollationName().toLowerCase(),
                                     table.getTableId(),
                                     ordinal,
                                     table.getGroup().getStorageNameString(),
                                     table.getGroup().getStorageDescription().getStorageFormat(),
                                     ++rowCounter /*hidden pk*/);
                        }
                    }
                    viewIt = getAIS(session).getViews().values().iterator();
                }
                while(viewIt.hasNext()) {
                    View view = viewIt.next();
                    if(isAccessible(session, view.getName())) {
                        return new ValuesRow(rowType,
                                null,
                                 view.getName().getSchemaName(),
                                 view.getName().getTableName(),
                                 "VIEW",
                                 null,      //self reference
View Full Code Here


            com.foundationdb.server.types.value.Value values[] = new com.foundationdb.server.types.value.Value[rowType.nFields()];
            for(int i = 0; i < rowType.nFields(); i++){
                values[i] = new Value(rowType.typeAt(i));
                values[i].putNull();
            }
            ValuesRow valuesRow = new ValuesRow(rowType, values);
            Collection<BindableRow> bindableRows = new ArrayList<>();
            bindableRows.add(BindableRow.of(valuesRow));

            stream.operator = API.emitBoundRow_Nested(
                    API.valuesScan_Default(bindableRows, rowType),
View Full Code Here

        // For use by this class

        public Row row()
        {
            return new ValuesRow(tRowType, items[position]);
        }
View Full Code Here

    // KeyUpdateRow interface

    public TestRow(RowType rowType, Object[] fields, String hKeyString)
    {
        this(rowType, new ValuesRow(rowType, fields), hKeyString);
    }
View Full Code Here

    @Override
    public Row next() {
        if (!iterator.hasNext())
            return null;
        Object[] rowContents = createRow(iterator.next(), ++hiddenPk);
        return new ValuesRow(rowType, rowContents);
    }
View Full Code Here

                Row row = null;
                while ((row == null) && this.isActive()) {
                    row = input.next();
                    if (row == null) {
                        setIdle();
                        row = new ValuesRow(resultType, new Value(MNumeric.BIGINT.instance(false), count));
                    } else if (row.rowType() == countType) {
                        row = null;
                        count++;
                    }
                }
View Full Code Here

                }
                else if (column.getDefaultFunction() != null) {
                    defaultString = column.getDefaultFunction() + "()";
                }
               
                return new ValuesRow(rowType,
                                    null,
                                     column.getColumnar().getName().getSchemaName(),
                                     column.getColumnar().getName().getTableName(),
                                     column.getName(),
                                     column.getPosition().longValue(),
View Full Code Here

            @Override
            public Row next() {
                if(!it.next()) {
                    return null;
                }
                return new ValuesRow(rowType,
                        null,   //constraint catalog
                         it.getTable().getName().getSchemaName(),
                         it.getName(),
                         null,          // table_catalog
                         it.getTable().getName().getSchemaName(),
View Full Code Here

                    if(!it.next()) {
                        return null;
                    }
                } while (!it.isForeignKey());
                ForeignKey fk = it.getTable().getReferencingForeignKey(it.getIndex().getIndexName().getName());
                return new ValuesRow(rowType,
                        null,   //constraint catalog
                         fk.getConstraintName().getSchemaName(),
                         fk.getConstraintName().getTableName(),
                         null,          //unique_constraint catalog
                         fk.getReferencedIndex().getConstraintName().getSchemaName(),
View Full Code Here

                    constraintName = join.getConstraintName().getTableName();
                    uniqueSchema = join.getParent().getName().getSchemaName();
                    uniqueConstraint = join.getParent().getPrimaryKey().getIndex().getConstraintName().getTableName();
                }
               
                return new ValuesRow(rowType,
                                    null,                               //root table catalog
                                     rpt.root.getName().getSchemaName(),// root_table_schema
                                     rpt.root.getName().getTableName(), // root_table_name
                                     null,                              //constraint catalog
                                     table.getName().getSchemaName(),   // constraint_schema
View Full Code Here

TOP

Related Classes of com.foundationdb.qp.row.ValuesRow

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.