Skip to content

Commit

Permalink
Added avro file
Browse files Browse the repository at this point in the history
  • Loading branch information
frievoe97 committed May 6, 2024
1 parent 3a1e3c4 commit e345a93
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class XYTData extends org.apache.avro.specific.SpecificRecordBase impleme
private static final long serialVersionUID = -7545707257116531193L;


public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"XYTData\",\"namespace\":\"org.matsim.application.avro\",\"fields\":[{\"name\":\"crs\",\"type\":\"string\",\"doc\":\"Coordinate reference system\"},{\"name\":\"xCoords\",\"type\":{\"type\":\"array\",\"items\":\"float\"},\"doc\":\"List of x coordinates\"},{\"name\":\"yCoords\",\"type\":{\"type\":\"array\",\"items\":\"float\"},\"doc\":\"List of y coordinates\"},{\"name\":\"timestamps\",\"type\":{\"type\":\"array\",\"items\":\"int\"},\"doc\":\"List of timestamps in seconds\"},{\"name\":\"data\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"array\",\"items\":\"float\"}},\"doc\":\"XYT data\"}]}");
public static final org.apache.avro.Schema SCHEMA$ = new org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"XYTData\",\"namespace\":\"org.matsim.application.avro\",\"fields\":[{\"name\":\"crs\",\"type\":\"string\",\"doc\":\"Coordinate reference system\"},{\"name\":\"xCoords\",\"type\":{\"type\":\"array\",\"items\":\"float\"},\"doc\":\"List of x coordinates\"},{\"name\":\"yCoords\",\"type\":{\"type\":\"array\",\"items\":\"float\"},\"doc\":\"List of y coordinates\"},{\"name\":\"timestamps\",\"type\":{\"type\":\"array\",\"items\":\"int\"},\"doc\":\"List of timestamps in seconds\"},{\"name\":\"data\",\"type\":{\"type\":\"map\",\"values\":{\"type\":\"array\",\"items\":\"float\"}},\"doc\":\"XYT data for each dataset. The key is the name, the data is stored in one chunk of data.\"}]}");
public static org.apache.avro.Schema getClassSchema() { return SCHEMA$; }

private static final SpecificData MODEL$ = new SpecificData();
Expand Down Expand Up @@ -81,7 +81,7 @@ public static XYTData fromByteBuffer(
private java.util.List<java.lang.Float> yCoords;
/** List of timestamps in seconds */
private java.util.List<java.lang.Integer> timestamps;
/** XYT data */
/** XYT data for each dataset. The key is the name, the data is stored in one chunk of data. */
private java.util.Map<java.lang.CharSequence,java.util.List<java.lang.Float>> data;

/**
Expand All @@ -97,7 +97,7 @@ public XYTData() {}
* @param xCoords List of x coordinates
* @param yCoords List of y coordinates
* @param timestamps List of timestamps in seconds
* @param data XYT data
* @param data XYT data for each dataset. The key is the name, the data is stored in one chunk of data.
*/
public XYTData(java.lang.CharSequence crs, java.util.List<java.lang.Float> xCoords, java.util.List<java.lang.Float> yCoords, java.util.List<java.lang.Integer> timestamps, java.util.Map<java.lang.CharSequence,java.util.List<java.lang.Float>> data) {
this.crs = crs;
Expand Down Expand Up @@ -214,7 +214,7 @@ public void setTimestamps(java.util.List<java.lang.Integer> value) {

/**
* Gets the value of the 'data' field.
* @return XYT data
* @return XYT data for each dataset. The key is the name, the data is stored in one chunk of data.
*/
public java.util.Map<java.lang.CharSequence,java.util.List<java.lang.Float>> getData() {
return data;
Expand All @@ -223,7 +223,7 @@ public java.util.Map<java.lang.CharSequence,java.util.List<java.lang.Float>> get

/**
* Sets the value of the 'data' field.
* XYT data
* XYT data for each dataset. The key is the name, the data is stored in one chunk of data.
* @param value the value to set.
*/
public void setData(java.util.Map<java.lang.CharSequence,java.util.List<java.lang.Float>> value) {
Expand Down Expand Up @@ -279,7 +279,7 @@ public static class Builder extends org.apache.avro.specific.SpecificRecordBuild
private java.util.List<java.lang.Float> yCoords;
/** List of timestamps in seconds */
private java.util.List<java.lang.Integer> timestamps;
/** XYT data */
/** XYT data for each dataset. The key is the name, the data is stored in one chunk of data. */
private java.util.Map<java.lang.CharSequence,java.util.List<java.lang.Float>> data;

/** Creates a new Builder */
Expand Down Expand Up @@ -521,7 +521,7 @@ public org.matsim.application.avro.XYTData.Builder clearTimestamps() {

/**
* Gets the value of the 'data' field.
* XYT data
* XYT data for each dataset. The key is the name, the data is stored in one chunk of data.
* @return The value.
*/
public java.util.Map<java.lang.CharSequence,java.util.List<java.lang.Float>> getData() {
Expand All @@ -531,7 +531,7 @@ public java.util.Map<java.lang.CharSequence,java.util.List<java.lang.Float>> get

/**
* Sets the value of the 'data' field.
* XYT data
* XYT data for each dataset. The key is the name, the data is stored in one chunk of data.
* @param value The value of 'data'.
* @return This builder.
*/
Expand All @@ -544,7 +544,7 @@ public org.matsim.application.avro.XYTData.Builder setData(java.util.Map<java.la

/**
* Checks whether the 'data' field has been set.
* XYT data
* XYT data for each dataset. The key is the name, the data is stored in one chunk of data.
* @return True if the 'data' field has been set, false otherwise.
*/
public boolean hasData() {
Expand All @@ -554,7 +554,7 @@ public boolean hasData() {

/**
* Clears the value of the 'data' field.
* XYT data
* XYT data for each dataset. The key is the name, the data is stored in one chunk of data.
* @return This builder.
*/
public org.matsim.application.avro.XYTData.Builder clearData() {
Expand Down

0 comments on commit e345a93

Please sign in to comment.