Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
/**
* Defines the input or output delimited (CSV) serialization for a blob quick query request.
*/
public class FileQueryDelimitedSerialization extends FileQuerySerialization {
public class FileQueryDelimitedSerialization implements FileQuerySerialization {

private char columnSeparator;
private char fieldQuote;
private char escapeChar;
private boolean headersPresent;
private char recordSeparator;

/**
* Gets the column separator.
Expand Down Expand Up @@ -85,9 +86,22 @@ public FileQueryDelimitedSerialization setHeadersPresent(boolean headersPresent)
return this;
}

@Override
/**
* Gets the record separator.
*
* @return the record separator.
*/
public char getRecordSeparator() {
return recordSeparator;
}

/**
* Sets the record separator.
* @param recordSeparator the record separator.
* @return the updated FileQueryDelimitedSerialization object.
*/
public FileQueryDelimitedSerialization setRecordSeparator(char recordSeparator) {
super.setRecordSeparator(recordSeparator);
this.recordSeparator = recordSeparator;
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,26 @@
/**
* Defines the input or output JSON serialization for a file query request.
*/
public class FileQueryJsonSerialization extends FileQuerySerialization {
public class FileQueryJsonSerialization implements FileQuerySerialization {

@Override
private char recordSeparator;

/**
* Gets the record separator.
*
* @return the record separator.
*/
public char getRecordSeparator() {
return recordSeparator;
}

/**
* Sets the record separator.
* @param recordSeparator the record separator.
* @return the updated FileQueryJsonSerialization object.
*/
public FileQueryJsonSerialization setRecordSeparator(char recordSeparator) {
super.setRecordSeparator(recordSeparator);
this.recordSeparator = recordSeparator;
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,5 @@
* Defines the input and output serialization for a file query request.
* either {@link FileQueryJsonSerialization} or {@link FileQueryDelimitedSerialization}
*/
public abstract class FileQuerySerialization {

private char recordSeparator;

/**
* Gets the record separator.
*
* @return the record separator.
*/
public char getRecordSeparator() {
return recordSeparator;
}

/**
* Sets the record separator.
* @param recordSeparator the record separator.
* @return the updated FileQuerySerialization object.
*/
public FileQuerySerialization setRecordSeparator(char recordSeparator) {
this.recordSeparator = recordSeparator;
return this;
}
public interface FileQuerySerialization {
}
Original file line number Diff line number Diff line change
Expand Up @@ -3373,11 +3373,6 @@ class FileAPITest extends APISpec {
}
}

class RandomOtherSerialization extends FileQuerySerialization {
@Override
public RandomOtherSerialization setRecordSeparator(char recordSeparator) {
this.recordSeparator = recordSeparator;
return this;
}
class RandomOtherSerialization implements FileQuerySerialization {
}
}