Example usage for com.amazonaws.services.s3.model CompressionType NONE

List of usage examples for com.amazonaws.services.s3.model CompressionType NONE

Introduction

In this page you can find the example usage for com.amazonaws.services.s3.model CompressionType NONE.

Prototype

CompressionType NONE

To view the source code for com.amazonaws.services.s3.model CompressionType NONE.

Click Source Link

Usage

From source file:org.apache.flink.streaming.tests.util.s3.S3QueryUtil.java

License:Apache License

private static SelectObjectContentRequest generateBaseCSVRequest(String bucket, String key, String query) {
    SelectObjectContentRequest request = new SelectObjectContentRequest();
    request.setBucketName(bucket);//from w w  w . ja  v  a2 s.  co  m
    request.setKey(key);
    request.setExpression(query);
    request.setExpressionType(ExpressionType.SQL);

    InputSerialization inputSerialization = new InputSerialization();
    inputSerialization.setCsv(new CSVInput());
    inputSerialization.setCompressionType(CompressionType.NONE);
    request.setInputSerialization(inputSerialization);

    OutputSerialization outputSerialization = new OutputSerialization();
    outputSerialization.setCsv(new CSVOutput());
    request.setOutputSerialization(outputSerialization);

    return request;
}