Package com.datasift.client

Examples of com.datasift.client.DataSiftClient.preview()


        DataSiftConfig config = new DataSiftConfig("username", "api-key");

        final DataSiftClient datasift = new DataSiftClient(config);
        Stream stream = Stream.fromString("13e9347e7da32f19fcdb08e297019d2e");
        DateTime fiveHrsAgo = DateTime.now().minusHours(5);
        HistoricsPreview preview = datasift.preview().create(fiveHrsAgo, stream,
                new String[]{ "interaction.author.link,targetVol,hour;interaction.type,freqDist,10" }).sync();
        //can also later get the preview data
        datasift.preview().get(preview);
        //or
        datasift.preview().get(preview.id());
View Full Code Here


        Stream stream = Stream.fromString("13e9347e7da32f19fcdb08e297019d2e");
        DateTime fiveHrsAgo = DateTime.now().minusHours(5);
        HistoricsPreview preview = datasift.preview().create(fiveHrsAgo, stream,
                new String[]{ "interaction.author.link,targetVol,hour;interaction.type,freqDist,10" }).sync();
        //can also later get the preview data
        datasift.preview().get(preview);
        //or
        datasift.preview().get(preview.id());
    }

    public static void main(String... args) throws InterruptedException {
View Full Code Here

        HistoricsPreview preview = datasift.preview().create(fiveHrsAgo, stream,
                new String[]{ "interaction.author.link,targetVol,hour;interaction.type,freqDist,10" }).sync();
        //can also later get the preview data
        datasift.preview().get(preview);
        //or
        datasift.preview().get(preview.id());
    }

    public static void main(String... args) throws InterruptedException {
        new PreviewApi();
    }
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.