
io.tiledb.cloud.rest_api.model.Layout Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tiledb-cloud-java Show documentation
Show all versions of tiledb-cloud-java Show documentation
The Java client for the TileDB Cloud Service
/*
* TileDB Storage Platform API
* TileDB Storage Platform REST API
*
* The version of the OpenAPI document: 2.2.19
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io.tiledb.cloud.rest_api.model;
import java.io.IOException;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
/**
* Layout of array
*/
@JsonAdapter(Layout.Adapter.class)
public enum Layout {
ROW_MAJOR("row-major"),
COL_MAJOR("col-major"),
GLOBAL_ORDER("global-order"),
UNORDERED("unordered");
private String value;
Layout(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static Layout fromValue(String value) {
for (Layout b : Layout.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final Layout enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public Layout read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return Layout.fromValue(value);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy