Skip to content

Commit

Permalink
Fix the api typedesc changes in csv apis
Browse files Browse the repository at this point in the history
  • Loading branch information
SasinduDilshara committed Jul 1, 2024
1 parent 30fb9e4 commit 12712be
Show file tree
Hide file tree
Showing 9 changed files with 972 additions and 971 deletions.
40 changes: 20 additions & 20 deletions ballerina/csv_api.bal
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,39 @@

import ballerina/jballerina.java;

public isolated function parseStringToRecord(string s, parseToRecordOption options = {}, typedesc<record{}[]> t = <>)
returns t|CsvConversionError = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;
public isolated function parseStringToRecord(string s, parseToRecordOption options = {}, typedesc<record{}> t = <>)
returns t[]|CsvConversionError = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;

public isolated function parseBytesToRecord(byte[] s, parseToRecordOption options = {}, typedesc<record{}[]> t = <>)
returns t|CsvConversionError = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;
public isolated function parseBytesToRecord(byte[] s, parseToRecordOption options = {}, typedesc<record{}> t = <>)
returns t[]|CsvConversionError = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;

public isolated function parseStreamToRecord(stream<byte[], error?> s,
parseToRecordOption options = {}, typedesc<record{}[]> t = <>)
returns t|CsvConversionError = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;
parseToRecordOption options = {}, typedesc<record{}> t = <>)
returns t[]|CsvConversionError = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;

public isolated function parseStringToList(string s, ParseOption options = {}, typedesc<anydata[][]> t = <>)
returns t|CsvConversionError = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;
public isolated function parseStringToList(string s, ParseOption options = {}, typedesc<anydata[]> t = <>)
returns t[]|CsvConversionError = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;

public isolated function parseBytesToList(byte[] s, ParseOption options = {}, typedesc<anydata[][]> t = <>)
returns t|CsvConversionError = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;
public isolated function parseBytesToList(byte[] s, ParseOption options = {}, typedesc<anydata[]> t = <>)
returns t[]|CsvConversionError = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;

public isolated function parseStreamToList(stream<byte[], error?> s,
ParseOption options = {}, typedesc<anydata[][]> t = <>)
returns t|CsvConversionError = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;
ParseOption options = {}, typedesc<anydata[]> t = <>)
returns t[]|CsvConversionError = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;

public isolated function parseRecordAsRecordType(record{}[] s,
RecordAsRecordOption options = {}, typedesc<record{}[]> t = <>)
returns t|CsvConversionError = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;
RecordAsRecordOption options = {}, typedesc<record{}> t = <>)
returns t[]|CsvConversionError = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;

public isolated function parseRecordAsListType(record{}[] s, string[] headerNames,
Options options = {}, typedesc<anydata[][]> t = <>)
returns t|CsvConversionError = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;
Options options = {}, typedesc<anydata[]> t = <>)
returns t[]|CsvConversionError = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;

public isolated function parseListAsRecordType(string[][] s, string[]? customHeaders = (),
ListAsRecordOption options = {}, typedesc<record{}[]> t = <>)
returns t|CsvConversionError = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;
ListAsRecordOption options = {}, typedesc<record{}> t = <>)
returns t[]|CsvConversionError = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;

public isolated function parseListAsListType(string[][] s, ListAsListOption options = {}, typedesc<anydata[][]> t = <>)
returns t|CsvConversionError = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;
public isolated function parseListAsListType(string[][] s, ListAsListOption options = {}, typedesc<anydata[]> t = <>)
returns t[]|CsvConversionError = @java:Method {'class: "io.ballerina.stdlib.data.csvdata.csv.Native"} external;

// --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Loading

0 comments on commit 12712be

Please sign in to comment.