public abstract class SQLBaseRequest extends org.elasticsearch.action.ActionRequest<SQLBaseRequest>
SQLRequest
or
SQLBulkRequest
to them using the SQLAction or SQLBulkAction
this abstract base class provides the shared components
stmt()
and includeTypesOnResponse()
which both concrete classes use.
(not using links for TransportSQLAction as they're not included for the client and would case an error under oraclejdk8)Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FLAGS_HEADER_KEY |
static int |
HEADER_FLAG_ALLOW_QUOTED_SUBSCRIPT |
static int |
HEADER_FLAG_OFF |
Constructor and Description |
---|
SQLBaseRequest() |
SQLBaseRequest(java.lang.String stmt) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultSchema() |
int |
getRequestFlags() |
boolean |
includeTypesOnResponse()
See also
includeTypesOnResponse(boolean) |
void |
includeTypesOnResponse(boolean includeTypesOnResponse)
set to true if the column types should be included in the
SQLResponse
or SQLBulkResponse
if set to false (the default) the types won't be included in the response. |
void |
readFrom(org.elasticsearch.common.io.stream.StreamInput in) |
void |
setDefaultSchema(java.lang.String schemaName) |
java.lang.String |
stmt()
SQL statement as string.
|
SQLBaseRequest |
stmt(java.lang.String stmt) |
org.elasticsearch.action.ActionRequestValidationException |
validate() |
void |
writeTo(org.elasticsearch.common.io.stream.StreamOutput out) |
createTask, getDescription
remoteAddress, remoteAddress
public static final java.lang.String FLAGS_HEADER_KEY
public static final int HEADER_FLAG_OFF
public static final int HEADER_FLAG_ALLOW_QUOTED_SUBSCRIPT
public SQLBaseRequest()
public SQLBaseRequest(java.lang.String stmt)
public java.lang.String stmt()
public SQLBaseRequest stmt(java.lang.String stmt)
public void includeTypesOnResponse(boolean includeTypesOnResponse)
SQLResponse
or SQLBulkResponse
if set to false (the default) the types won't be included in the response.public boolean includeTypesOnResponse()
includeTypesOnResponse(boolean)
public void setDefaultSchema(java.lang.String schemaName)
public int getRequestFlags()
@Nullable public java.lang.String getDefaultSchema()
public org.elasticsearch.action.ActionRequestValidationException validate()
validate
in class org.elasticsearch.action.ActionRequest<SQLBaseRequest>
public void readFrom(org.elasticsearch.common.io.stream.StreamInput in) throws java.io.IOException
readFrom
in interface org.elasticsearch.common.io.stream.Streamable
readFrom
in class org.elasticsearch.action.ActionRequest<SQLBaseRequest>
java.io.IOException
public void writeTo(org.elasticsearch.common.io.stream.StreamOutput out) throws java.io.IOException
writeTo
in interface org.elasticsearch.common.io.stream.Streamable
writeTo
in class org.elasticsearch.action.ActionRequest<SQLBaseRequest>
java.io.IOException