Class FileStructure
- java.lang.Object
-
- org.elasticsearch.client.ml.filestructurefinder.FileStructure
-
- All Implemented Interfaces:
ToXContent,ToXContentObject
public class FileStructure extends Object implements ToXContentObject
Stores the file format determined by Machine Learning.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileStructure.Builderstatic classFileStructure.Format-
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 ParseFieldEXCLUDE_LINES_PATTERNstatic ParseFieldEXPLANATIONstatic ParseFieldFIELD_STATSstatic ParseFieldFORMATstatic ParseFieldGROK_PATTERNstatic ParseFieldHAS_BYTE_ORDER_MARKERstatic ParseFieldHAS_HEADER_ROWstatic ParseFieldINGEST_PIPELINEstatic ParseFieldJAVA_TIMESTAMP_FORMATSstatic ParseFieldJODA_TIMESTAMP_FORMATSstatic ParseFieldMAPPINGSstatic ParseFieldMULTILINE_START_PATTERNstatic ParseFieldNEED_CLIENT_TIMEZONEstatic ParseFieldNUM_LINES_ANALYZEDstatic ParseFieldNUM_MESSAGES_ANALYZEDstatic ObjectParser<FileStructure.Builder,Void>PARSERstatic ParseFieldQUOTEstatic ParseFieldSAMPLE_STARTstatic ParseFieldSHOULD_TRIM_FIELDSstatic ParseFieldTIMESTAMP_FIELD-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)StringgetCharset()List<String>getColumnNames()CharactergetDelimiter()StringgetExcludeLinesPattern()List<String>getExplanation()SortedMap<String,FieldStats>getFieldStats()FileStructure.FormatgetFormat()StringgetGrokPattern()BooleangetHasByteOrderMarker()BooleangetHasHeaderRow()Map<String,Object>getIngestPipeline()List<String>getJavaTimestampFormats()List<String>getJodaTimestampFormats()SortedMap<String,Object>getMappings()StringgetMultilineStartPattern()intgetNumLinesAnalyzed()intgetNumMessagesAnalyzed()CharactergetQuote()StringgetSampleStart()BooleangetShouldTrimFields()StringgetTimestampField()inthashCode()booleanneedClientTimezone()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
NUM_LINES_ANALYZED
public static final ParseField NUM_LINES_ANALYZED
-
NUM_MESSAGES_ANALYZED
public static final ParseField NUM_MESSAGES_ANALYZED
-
SAMPLE_START
public static final ParseField SAMPLE_START
-
CHARSET
public static final ParseField CHARSET
-
HAS_BYTE_ORDER_MARKER
public static final ParseField HAS_BYTE_ORDER_MARKER
-
FORMAT
public static final ParseField FORMAT
-
MULTILINE_START_PATTERN
public static final ParseField MULTILINE_START_PATTERN
-
EXCLUDE_LINES_PATTERN
public static final ParseField EXCLUDE_LINES_PATTERN
-
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_FIELD
public static final ParseField TIMESTAMP_FIELD
-
JODA_TIMESTAMP_FORMATS
public static final ParseField JODA_TIMESTAMP_FORMATS
-
JAVA_TIMESTAMP_FORMATS
public static final ParseField JAVA_TIMESTAMP_FORMATS
-
NEED_CLIENT_TIMEZONE
public static final ParseField NEED_CLIENT_TIMEZONE
-
MAPPINGS
public static final ParseField MAPPINGS
-
INGEST_PIPELINE
public static final ParseField INGEST_PIPELINE
-
FIELD_STATS
public static final ParseField FIELD_STATS
-
EXPLANATION
public static final ParseField EXPLANATION
-
PARSER
public static final ObjectParser<FileStructure.Builder,Void> PARSER
-
-
Method Detail
-
getNumLinesAnalyzed
public int getNumLinesAnalyzed()
-
getNumMessagesAnalyzed
public int getNumMessagesAnalyzed()
-
getSampleStart
public String getSampleStart()
-
getCharset
public String getCharset()
-
getHasByteOrderMarker
public Boolean getHasByteOrderMarker()
-
getFormat
public FileStructure.Format getFormat()
-
getMultilineStartPattern
public String getMultilineStartPattern()
-
getExcludeLinesPattern
public String getExcludeLinesPattern()
-
getHasHeaderRow
public Boolean getHasHeaderRow()
-
getDelimiter
public Character getDelimiter()
-
getQuote
public Character getQuote()
-
getShouldTrimFields
public Boolean getShouldTrimFields()
-
getGrokPattern
public String getGrokPattern()
-
getTimestampField
public String getTimestampField()
-
needClientTimezone
public boolean needClientTimezone()
-
getFieldStats
public SortedMap<String,FieldStats> getFieldStats()
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
-