Examples of ident()


Examples of io.crate.metadata.table.TableInfo.ident()

                    // granularity < DOC is already handled different
                    // here we want a table with handlerSideRouting and DOC granularity.
                    RowGranularity.DOC,
                    SysClusterTableInfo.ROUTING
            ).add("name", DataTypes.STRING, null).build();
            when(schemaInfo.getTableInfo(sysClusterTableInfo.ident().name())).thenReturn(sysClusterTableInfo);

            TableInfo sysNodesTableInfo = TestingTableInfo.builder(
                    SysNodesTableInfo.IDENT,
                    RowGranularity.NODE,
                    nodesRouting)
View Full Code Here

Examples of io.crate.metadata.table.TableInfo.ident()

            TableInfo sysNodesTableInfo = TestingTableInfo.builder(
                    SysNodesTableInfo.IDENT,
                    RowGranularity.NODE,
                    nodesRouting)
                    .add("name", DataTypes.STRING, null).build();
            when(schemaInfo.getTableInfo(sysNodesTableInfo.ident().name())).thenReturn(sysNodesTableInfo);

            TableInfo sysShardsTableInfo = TestingTableInfo.builder(
                    SysShardsTableInfo.IDENT,
                    RowGranularity.SHARD,
                    nodesRouting
View Full Code Here

Examples of io.crate.metadata.table.TableInfo.ident()

            TableInfo sysShardsTableInfo = TestingTableInfo.builder(
                    SysShardsTableInfo.IDENT,
                    RowGranularity.SHARD,
                    nodesRouting
            ).add("id", DataTypes.INTEGER, null).build();
            when(schemaInfo.getTableInfo(sysShardsTableInfo.ident().name())).thenReturn(sysShardsTableInfo);
            when(schemaInfo.systemSchema()).thenReturn(true);
            return schemaInfo;
        }
    }
View Full Code Here

Examples of io.crate.metadata.table.TableInfo.ident()

            TableInfo existingTable = referenceInfos.getTableInfoUnsafe(tableIdent);
            // no exception thrown, table exists
            // is it an orphaned alias? allow it,
            // as it will be deleted before the actual table creation
            if (!isOrphanedAlias(existingTable)) {
                throw new TableAlreadyExistsException(existingTable.ident().name());
            }
        } catch (TableUnknownException e) {
            // ok, that is expected
        }
        super.table(tableIdent); // name validated here
View Full Code Here

Examples of io.crate.metadata.table.TableInfo.ident()

        List<String> partitionedByNames;
        List<ColumnIdent> partitionByColumns;
        String tableName;

        if (analysis.partitionIdent() == null) {
            tableName = table.ident().name();
            if (table.isPartitioned()) {
                partitionedByNames = Lists.newArrayList(
                        Lists.transform(table.partitionedBy(), ColumnIdent.GET_FQN_NAME_FUNCTION));
                partitionByColumns = table.partitionedBy();
            } else {
View Full Code Here

Examples of io.crate.metadata.table.TableInfo.ident()

                partitionByColumns = Collections.emptyList();
            }
        } else {
            assert table.isPartitioned() : "table must be partitioned if partitionIdent is set";
            // partitionIdent is present -> possible to index raw source into concrete es index
            tableName = PartitionName.fromPartitionIdent(table.ident().name(), analysis.partitionIdent()).stringValue();
            partitionedByNames = Collections.emptyList();
            partitionByColumns = Collections.emptyList();
        }

        SourceIndexWriterProjection sourceIndexWriterProjection = new SourceIndexWriterProjection(
View Full Code Here

Examples of org.asdt.core.internal.antlr.AS3Parser.ident()


  public static LinkedListTree parseSimpleIdent(String value) {
    AS3Parser parser = ASTUtils.parse(value);
    try {
      LinkedListTree result = tree(parser.ident());
      parser.endOfFile();
      return result;
    } catch (RecognitionException e) {
      throw new SyntaxException("invalid identifier "+ActionScriptFactory.str(value), e);
    }
View Full Code Here

Examples of org.metagrid.gatekeeper.node.Node.ident()

            );

        //
        // Create our protector.
        SimpleProtector protector = new SimpleProtector(
            inner.ident()
            );

        //
        // Protect the node.
        final Node outer = ProtectedNode.wrap(
View Full Code Here

Examples of org.metagrid.gatekeeper.node.Node.ident()

                        assertEquals(
                            new URI("urn:test.toad"),
                            ouch.protector().target()
                            );
                        assertEquals(
                            outer.ident(),
                            ouch.protector().parent().target()
                            );
                        throw ouch ;
                        }
                    }
View Full Code Here

Examples of org.metagrid.gatekeeper.node.Node.ident()

                        assertEquals(
                            new URI("urn:test.newt"),
                            ouch.protector().target()
                            );
                        assertEquals(
                            outer.ident(),
                            ouch.protector().parent().target()
                            );
                        throw ouch ;
                        }
                    }
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.