Module org.elasticsearch.xcore
Class TextStructure
java.lang.Object
org.elasticsearch.xpack.core.textstructure.structurefinder.TextStructure
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
Stores the determined file format.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enumNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final Stringstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ObjectParser<TextStructure.Builder, Void> static final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionTextStructure(int numLinesAnalyzed, int numMessagesAnalyzed, String sampleStart, String charset, Boolean hasByteOrderMarker, TextStructure.Format format, String multilineStartPattern, String excludeLinesPattern, List<String> columnNames, Boolean hasHeaderRow, Character delimiter, Character quote, Boolean shouldTrimFields, String grokPattern, String ecsCompatibility, String timestampField, List<String> jodaTimestampFormats, List<String> javaTimestampFormats, boolean needClientTimezone, Map<String, Object> mappings, Map<String, Object> ingestPipeline, Map<String, FieldStats> fieldStats, List<String> explanation) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintintgetQuote()inthashCode()booleantoXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
EXPLAIN
- See Also:
-
NUM_LINES_ANALYZED
-
NUM_MESSAGES_ANALYZED
-
SAMPLE_START
-
CHARSET
-
HAS_BYTE_ORDER_MARKER
-
FORMAT
-
MULTILINE_START_PATTERN
-
EXCLUDE_LINES_PATTERN
-
COLUMN_NAMES
-
HAS_HEADER_ROW
-
DELIMITER
-
QUOTE
-
SHOULD_TRIM_FIELDS
-
GROK_PATTERN
-
ECS_COMPATIBILITY
-
TIMESTAMP_FIELD
-
JODA_TIMESTAMP_FORMATS
-
JAVA_TIMESTAMP_FORMATS
-
NEED_CLIENT_TIMEZONE
-
MAPPINGS
-
INGEST_PIPELINE
-
FIELD_STATS
-
EXPLANATION
-
PARSER
-
-
Constructor Details
-
TextStructure
public TextStructure(int numLinesAnalyzed, int numMessagesAnalyzed, String sampleStart, String charset, Boolean hasByteOrderMarker, TextStructure.Format format, String multilineStartPattern, String excludeLinesPattern, List<String> columnNames, Boolean hasHeaderRow, Character delimiter, Character quote, Boolean shouldTrimFields, String grokPattern, String ecsCompatibility, String timestampField, List<String> jodaTimestampFormats, List<String> javaTimestampFormats, boolean needClientTimezone, Map<String, Object> mappings, Map<String, Object> ingestPipeline, Map<String, FieldStats> fieldStats, List<String> explanation) -
TextStructure
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getNumLinesAnalyzed
public int getNumLinesAnalyzed() -
getNumMessagesAnalyzed
public int getNumMessagesAnalyzed() -
getSampleStart
-
getCharset
-
getHasByteOrderMarker
-
getFormat
-
getMultilineStartPattern
-
getExcludeLinesPattern
-
getColumnNames
-
getHasHeaderRow
-
getDelimiter
-
getQuote
-
getShouldTrimFields
-
getGrokPattern
-
getEcsCompatibility
-
getTimestampField
-
getJodaTimestampFormats
-
getJavaTimestampFormats
-
needClientTimezone
public boolean needClientTimezone() -
getMappings
-
getIngestPipeline
-
getFieldStats
-
getExplanation
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-