Module org.elasticsearch.xcore
Class TextStructure
java.lang.Object
org.elasticsearch.xpack.core.textstructure.structurefinder.TextStructure
- All Implemented Interfaces:
Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public class TextStructure
extends Object
implements org.elasticsearch.xcontent.ToXContentObject, Writeable
Stores the determined file format.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enumNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.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 org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final Stringstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ObjectParser<TextStructure.Builder, Void> static final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.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()booleanorg.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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
public static final org.elasticsearch.xcontent.ParseField NUM_LINES_ANALYZED -
NUM_MESSAGES_ANALYZED
public static final org.elasticsearch.xcontent.ParseField NUM_MESSAGES_ANALYZED -
SAMPLE_START
public static final org.elasticsearch.xcontent.ParseField SAMPLE_START -
CHARSET
public static final org.elasticsearch.xcontent.ParseField CHARSET -
HAS_BYTE_ORDER_MARKER
public static final org.elasticsearch.xcontent.ParseField HAS_BYTE_ORDER_MARKER -
FORMAT
public static final org.elasticsearch.xcontent.ParseField FORMAT -
MULTILINE_START_PATTERN
public static final org.elasticsearch.xcontent.ParseField MULTILINE_START_PATTERN -
EXCLUDE_LINES_PATTERN
public static final org.elasticsearch.xcontent.ParseField EXCLUDE_LINES_PATTERN -
COLUMN_NAMES
public static final org.elasticsearch.xcontent.ParseField COLUMN_NAMES -
HAS_HEADER_ROW
public static final org.elasticsearch.xcontent.ParseField HAS_HEADER_ROW -
DELIMITER
public static final org.elasticsearch.xcontent.ParseField DELIMITER -
QUOTE
public static final org.elasticsearch.xcontent.ParseField QUOTE -
SHOULD_TRIM_FIELDS
public static final org.elasticsearch.xcontent.ParseField SHOULD_TRIM_FIELDS -
GROK_PATTERN
public static final org.elasticsearch.xcontent.ParseField GROK_PATTERN -
ECS_COMPATIBILITY
public static final org.elasticsearch.xcontent.ParseField ECS_COMPATIBILITY -
TIMESTAMP_FIELD
public static final org.elasticsearch.xcontent.ParseField TIMESTAMP_FIELD -
JODA_TIMESTAMP_FORMATS
public static final org.elasticsearch.xcontent.ParseField JODA_TIMESTAMP_FORMATS -
JAVA_TIMESTAMP_FORMATS
public static final org.elasticsearch.xcontent.ParseField JAVA_TIMESTAMP_FORMATS -
NEED_CLIENT_TIMEZONE
public static final org.elasticsearch.xcontent.ParseField NEED_CLIENT_TIMEZONE -
MAPPINGS
public static final org.elasticsearch.xcontent.ParseField MAPPINGS -
INGEST_PIPELINE
public static final org.elasticsearch.xcontent.ParseField INGEST_PIPELINE -
FIELD_STATS
public static final org.elasticsearch.xcontent.ParseField FIELD_STATS -
EXPLANATION
public static final org.elasticsearch.xcontent.ParseField 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 org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-