Package io.crate.external

Examples of io.crate.external.S3ClientHelper


                FileReadingCollector.FileFormat.JSON,
                compression,
                ImmutableMap.<String, FileInputFactory>of("s3", new FileInputFactory() {
                    @Override
                    public FileInput create() throws IOException {
                        return new S3FileInput(new S3ClientHelper() {
                            @Override
                            protected AmazonS3 initClient(String accessKey, String secretKey) throws IOException {
                                AmazonS3 client = mock(AmazonS3Client.class);
                                ObjectListing objectListing = mock(ObjectListing.class);
                                S3ObjectSummary summary = mock(S3ObjectSummary.class);
View Full Code Here


        compression = parseCompression(settings);
    }

    @Override
    public void open() throws IOException {
        outputStream = new S3OutputStream(uri, new S3ClientHelper());
        if (compression) {
            outputStream = new GZIPOutputStream(outputStream);
        }
    }
View Full Code Here

    private final ESLogger logger = Loggers.getLogger(S3FileInput.class);

    final S3ClientHelper clientBuilder;

    public S3FileInput() {
        clientBuilder = new S3ClientHelper();
    }
View Full Code Here

TOP

Related Classes of io.crate.external.S3ClientHelper

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.