Package com.socrata.builders

Examples of com.socrata.builders.BlueprintBuilder


     * @param scanResults results of the scan
     * @return The default View object for the dataset that was just created.
     */
    public DatasetInfo importScanResults(final String name, final String description, final File file, final ScanResults scanResults, @Nullable final String rowIdentifierColumnName) throws SodaError, InterruptedException, IOException
    {
        final Blueprint blueprint = new BlueprintBuilder(scanResults)
                                        .setSkip(1)
                                        .setName(name)
                                        .setDescription(description)
                                        .build();

View Full Code Here


        final Soda2Consumer consumer = new Soda2Consumer(connection);

        ScanResults scanResults = importer.scan(LOCATION_TEST_CSV);


        final Blueprint blueprint = new BlueprintBuilder()
                .setName(name)
                .setDescription("Description")
                .setSkip(1)
                .addColumn(new BlueprintColumn("uniqueId", "UniqueId", "Number"))
                .addColumn(new BlueprintColumn("name", "name", "Text"))
View Full Code Here

        final String description = name + "-Description";

        final HttpLowLevel connection = connect();
        final SodaImporter importer = new SodaImporter(connection);
        final ScanResults  scanResults = importer.scan(NOMINATIONS_CSV);
        final Blueprint    blueprint = new BlueprintBuilder()
                .setName(name)
                .setDescription(description)
                .setSkip(1)
                .addColumn(new BlueprintColumn("Name", "Name Description", "Text"))
                .addColumn(new BlueprintColumn("Position", "Position Description", "Text"))
View Full Code Here

        final Soda2Consumer consumer= new Soda2Consumer(connection);

        ScanResults scanResults = importer.scan(BABY_NAMES_LOC);


        final Blueprint blueprint = new BlueprintBuilder()
                .setName(name)
                .setDescription("Description")
                .setSkip(1)
                .addColumn(new BlueprintColumn("first_name","First Name",   "Text"))
                .addColumn(new BlueprintColumn("county",    "County",       "Text"))
View Full Code Here

        final SodaImporter importer = new SodaImporter(connection);
        final Soda2Consumer consumer= new Soda2Consumer(connection);
        ScanResults scanResults = importer.scan(BABY_NAMES_LOC_2);


        final Blueprint blueprint = new BlueprintBuilder()
                .setName(name)
                .setDescription("Description")
                .setSkip(1)
                .addColumn(new BlueprintColumn("first_name","First Name",   "Text"))
                .addColumn(new BlueprintColumn("county",    "County",       "Text"))
View Full Code Here

        final Soda2Consumer consumer= new Soda2Consumer(connection);

        ScanResults scanResults = importer.scan(BABY_NAMES_LOC_3);


        final Blueprint blueprint = new BlueprintBuilder()
                .setName(name)
                .setDescription("Description")
                .setSkip(1)
                .addColumn(new BlueprintColumn("first_name", "First Name", "Text"))
                .addColumn(new BlueprintColumn("county",    "County",       "Text"))
View Full Code Here

TOP

Related Classes of com.socrata.builders.BlueprintBuilder

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.