Package org.elasticsearch.client.ml
Class FindFileStructureRequest
- java.lang.Object
-
- org.elasticsearch.client.ml.FindFileStructureRequest
-
- All Implemented Interfaces:
Validatable,ToXContent,ToXContentFragment
public class FindFileStructureRequest extends Object implements Validatable, ToXContentFragment
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
Fields Modifier and Type Field Description static ParseFieldCHARSETstatic ParseFieldCOLUMN_NAMESstatic ParseFieldDELIMITERstatic ParseFieldEXPLAINstatic ParseFieldFORMATstatic ParseFieldGROK_PATTERNstatic ParseFieldHAS_HEADER_ROWstatic ParseFieldLINE_MERGE_SIZE_LIMITstatic ParseFieldLINES_TO_SAMPLEstatic ParseFieldQUOTEstatic ParseFieldSHOULD_TRIM_FIELDSstatic ParseFieldTIMEOUTstatic ParseFieldTIMESTAMP_FIELDstatic ParseFieldTIMESTAMP_FORMAT-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Fields inherited from interface org.elasticsearch.client.Validatable
EMPTY
-
-
Constructor Summary
Constructors Constructor Description FindFileStructureRequest()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Field Detail
-
LINES_TO_SAMPLE
public static final ParseField LINES_TO_SAMPLE
-
LINE_MERGE_SIZE_LIMIT
public static final ParseField LINE_MERGE_SIZE_LIMIT
-
TIMEOUT
public static final ParseField TIMEOUT
-
CHARSET
public static final ParseField CHARSET
-
FORMAT
public static final ParseField FORMAT
-
COLUMN_NAMES
public static final ParseField COLUMN_NAMES
-
HAS_HEADER_ROW
public static final ParseField HAS_HEADER_ROW
-
DELIMITER
public static final ParseField DELIMITER
-
QUOTE
public static final ParseField QUOTE
-
SHOULD_TRIM_FIELDS
public static final ParseField SHOULD_TRIM_FIELDS
-
GROK_PATTERN
public static final ParseField GROK_PATTERN
-
TIMESTAMP_FORMAT
public static final ParseField TIMESTAMP_FORMAT
-
TIMESTAMP_FIELD
public static final ParseField TIMESTAMP_FIELD
-
EXPLAIN
public static final ParseField EXPLAIN
-
-
Method Detail
-
getLinesToSample
public Integer getLinesToSample()
-
setLinesToSample
public void setLinesToSample(Integer linesToSample)
-
getLineMergeSizeLimit
public Integer getLineMergeSizeLimit()
-
setLineMergeSizeLimit
public void setLineMergeSizeLimit(Integer lineMergeSizeLimit)
-
getTimeout
public TimeValue getTimeout()
-
setTimeout
public void setTimeout(TimeValue timeout)
-
getCharset
public String getCharset()
-
setCharset
public void setCharset(String charset)
-
getFormat
public FileStructure.Format getFormat()
-
setFormat
public void setFormat(FileStructure.Format format)
-
setFormat
public void setFormat(String format)
-
setColumnNames
public void setColumnNames(String[] columnNames)
-
getHasHeaderRow
public Boolean getHasHeaderRow()
-
setHasHeaderRow
public void setHasHeaderRow(Boolean hasHeaderRow)
-
getDelimiter
public Character getDelimiter()
-
setDelimiter
public void setDelimiter(Character delimiter)
-
setDelimiter
public void setDelimiter(String delimiter)
-
getQuote
public Character getQuote()
-
setQuote
public void setQuote(Character quote)
-
setQuote
public void setQuote(String quote)
-
getShouldTrimFields
public Boolean getShouldTrimFields()
-
setShouldTrimFields
public void setShouldTrimFields(Boolean shouldTrimFields)
-
getGrokPattern
public String getGrokPattern()
-
setGrokPattern
public void setGrokPattern(String grokPattern)
-
getTimestampFormat
public String getTimestampFormat()
-
setTimestampFormat
public void setTimestampFormat(String timestampFormat)
-
getTimestampField
public String getTimestampField()
-
setTimestampField
public void setTimestampField(String timestampField)
-
getExplain
public Boolean getExplain()
-
setExplain
public void setExplain(Boolean explain)
-
getSample
public BytesReference getSample()
-
setSample
public void setSample(byte[] sample)
-
setSample
public void setSample(BytesReference sample)
-
validate
public Optional<ValidationException> validate()
Description copied from interface:ValidatablePerform validation. This method does not have to be overridden in the event that no validation needs to be done, or the validation was done during object construction time. AValidationExceptionthat is not null is assumed to contain validation errors and will be thrown.- Specified by:
validatein interfaceValidatable- Returns:
- An
OptionalValidationExceptionthat contains a list of validation errors.
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
-