Package com.foundationdb.qp.row

Examples of com.foundationdb.qp.row.ValuesRow


                Row output;
                checkQueryCancelation();
                if (isActive()) {
                    long rowCount = adapter().rowCount(adapter().getSession(), tableType);
                    setIdle();
                    output = new ValuesRow(resultType, new Value(MNumeric.BIGINT.instance(false), rowCount));
                }
                else {
                    output = null;
                }
                if (LOG_EXECUTION) {
View Full Code Here


            public Row next() {
                IndexColumn indexColumn = advance();
                if(indexColumn == null) {
                    return null;
                }
                return new ValuesRow(rowType,
                        null,
                         indexIt.getTable().getName().getSchemaName(),
                         indexIt.getTable().getName().getTableName(),
                         indexColumn.getIndex().getIndexName().getName(),
                         null,
View Full Code Here

            public Row next() {
                while(it.hasNext()) {
                    Sequence sequence = it.next();
                    if(isAccessible(session, sequence.getSequenceName()) &&
                            !sequence.isInternalSequence()) {
                        return new ValuesRow(rowType,
                                             null,      //sequence catalog
                                             sequence.getSequenceName().getSchemaName(),
                                             sequence.getSequenceName().getTableName(),
                                             datatype,
                                             sequence.getStartsWith(),
View Full Code Here

            @Override
            public Row next() {
                while(it.hasNext()) {
                    View view = it.next();
                    if(isAccessible(session, view.getName())) {
                        return new ValuesRow(rowType,
                                            null,       // view catalog
                                             view.getName().getSchemaName(),
                                             view.getName().getTableName(),
                                             view.getDefinition(),
                                             checkOption,
View Full Code Here

                        }
                    }
                    return null;
                }
                TableName table = tableIt.next();
                return new ValuesRow(rowType,
                                    null,
                                     view.getName().getSchemaName(),
                                     view.getName().getTableName(),
                                    null,
                                     table.getSchemaName(),
View Full Code Here

                    Map.Entry<TableName,Collection<String>> entry = tableIt.next();
                    table = entry.getKey();
                    columnIt = entry.getValue().iterator();
                }
                String column = columnIt.next();
                return new ValuesRow(rowType,
                                    null,
                                     view.getName().getSchemaName(),
                                     view.getName().getTableName(),
                                    null,
                                     table.getSchemaName(),
View Full Code Here

                    Routine routine = it.next();
                    if (!isAccessible(session, routine.getName()))
                        continue;
                    SQLJJar jar = routine.getSQLJJar();
                    if (jar != null) {
                        return new ValuesRow(rowType,
                                            null,       // routine catalog
                                             routine.getName().getSchemaName(),
                                             routine.getName().getTableName(),
                                            null,       // jar catalog
                                             jar.getName().getSchemaName(),
View Full Code Here

            @Override
            public Row next() {
                if (!it.hasNext())
                    return null;
                ScriptEngineFactory factory = it.next();
                return new ValuesRow(
                        rowType,
                        it.nextIndex(), // use nextIndex so that the IDs are 1-based
                        factory.getEngineName(),
                        factory.getEngineVersion(),
                        factory.getLanguageName(),
View Full Code Here

                    if (!factories.hasNext())
                        return null;
                    names = factories.next().getNames().iterator();
                }
                String nextName = names.next();
                return new ValuesRow(
                        rowType,
                        nextName,
                        factories.nextIndex(),      // use nextIndex so that the IDs are 1-based
                        ++rowCounter /*hidden pk*/);
            }
View Full Code Here

                            return null;
                        attrs = currType.attributes().iterator();
                    } while (!attrs.hasNext());
                }
                Attribute attr = attrs.next();
                return new ValuesRow (rowType,
                        currType.name().unqualifiedName(),
                        attr.name(),
                        ++rowCounter);
            }
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.