Examples of DynamicReference


Examples of io.crate.planner.symbol.DynamicReference

    public void testGetColumnInfo() throws Exception {
        ReferenceInfo foobar = info.getReferenceInfo(new ColumnIdent("digest"));
        assertNotNull(foobar);
        assertEquals(DataTypes.STRING, foobar.type());

        DynamicReference reference = info.getDynamic(new ColumnIdent("foobar"));
        assertNull(reference);
    }
View Full Code Here

Examples of io.crate.planner.symbol.DynamicReference

            ReferenceInfo parentInfo = getReferenceInfo(parentIdent);
            if (parentInfo != null && parentInfo.columnPolicy() == ColumnPolicy.STRICT) {
                throw new ColumnUnknownException(ident().name(), ident.fqn());
            }
        }
        return new DynamicReference(new ReferenceIdent(ident(), ident), rowGranularity());
    }
View Full Code Here

Examples of io.crate.planner.symbol.DynamicReference

                ImmutableList.<PartitionName>of(),
                ColumnPolicy.DYNAMIC);

        ReferenceInfo foobar = info.getReferenceInfo(new ColumnIdent("o", ImmutableList.of("foobar")));
        assertNull(foobar);
        DynamicReference reference = info.getDynamic(new ColumnIdent("o", ImmutableList.of("foobar")));
        assertNotNull(reference);
        assertSame(reference.valueType(), DataTypes.UNDEFINED);
    }
View Full Code Here

Examples of io.crate.planner.symbol.DynamicReference

                    break;
                default:
                    break;
            }
        }
        DynamicReference reference = new DynamicReference(new ReferenceIdent(ident(), ident), rowGranularity());
        if (parentIsIgnored) {
            reference.columnPolicy(ColumnPolicy.IGNORED);
        }
        return reference;
    }
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.