com.aliyun.oss.model.OutputSerialization Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-sdk-oss-shade Show documentation
Show all versions of aliyun-sdk-oss-shade Show documentation
The Aliyun OSS SDK for Java used for accessing Aliyun Object Storage Service, includes all service and dependent JARs.
The newest version!
package com.aliyun.oss.model;
import java.io.Serializable;
/**
* Define how to output results of the select object operations.
*/
public class OutputSerialization implements Serializable {
private CSVFormat csvOutputFormat = new CSVFormat();
private JsonFormat jsonOutputFormat = new JsonFormat();
// used by csv files
private boolean keepAllColumns = false;
private boolean payloadCrcEnabled = false;
private boolean outputRawData = false;
private boolean outputHeader = false;
public CSVFormat getCsvOutputFormat() {
return csvOutputFormat;
}
public void setCsvOutputFormat(CSVFormat csvOutputFormat) {
this.csvOutputFormat = csvOutputFormat;
}
public OutputSerialization withCsvOutputFormat(CSVFormat csvFormat) {
setCsvOutputFormat(csvFormat);
return this;
}
public JsonFormat getJsonOutputFormat() {
return jsonOutputFormat;
}
public void setJsonOutputFormat(JsonFormat jsonOutputFormat) {
this.jsonOutputFormat = jsonOutputFormat;
}
public OutputSerialization withJsonOutputFormat(JsonFormat jsonOutputFormat) {
setJsonOutputFormat(jsonOutputFormat);
return this;
}
public boolean isKeepAllColumns() {
return keepAllColumns;
}
public void setKeepAllColumns(boolean keepAllColumns) {
this.keepAllColumns = keepAllColumns;
}
public OutputSerialization withKeepAllColumns(boolean keepAllColumns) {
setKeepAllColumns(keepAllColumns);
return this;
}
public boolean isPayloadCrcEnabled() {
return payloadCrcEnabled;
}
public void setPayloadCrcEnabled(boolean payloadCrcEnabled) {
this.payloadCrcEnabled = payloadCrcEnabled;
}
public OutputSerialization withCrcEnabled(boolean crcEnabled) {
setPayloadCrcEnabled(crcEnabled);
return this;
}
public boolean isOutputRawData() {
return outputRawData;
}
public void setOutputRawData(boolean outputRawData) {
this.outputRawData = outputRawData;
}
public OutputSerialization withOutputRawData(boolean outputRawData) {
setOutputRawData(outputRawData);
return this;
}
public boolean isOutputHeader() {
return outputHeader;
}
public void setOutputHeader(boolean outputHeader) {
this.outputHeader = outputHeader;
}
public OutputSerialization withOutputHeader(boolean outputHeader) {
setOutputHeader(outputHeader);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy