public enum ResultFormat extends Enum<ResultFormat>
| Enum Constant and Description |
|---|
ARRAY |
ARRAYLINES |
CSV |
OBJECT |
OBJECTLINES |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
contentType() |
abstract org.apache.druid.sql.http.ResultFormat.Writer |
createFormatter(OutputStream outputStream,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper) |
static ResultFormat |
fromString(String name) |
static ResultFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResultFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResultFormat ARRAY
public static final ResultFormat ARRAYLINES
public static final ResultFormat CSV
public static final ResultFormat OBJECT
public static final ResultFormat OBJECTLINES
public static ResultFormat[] values()
for (ResultFormat c : ResultFormat.values()) System.out.println(c);
public static ResultFormat valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract String contentType()
public abstract org.apache.druid.sql.http.ResultFormat.Writer createFormatter(OutputStream outputStream, com.fasterxml.jackson.databind.ObjectMapper jsonMapper) throws IOException
IOExceptionpublic static ResultFormat fromString(String name)
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.