org.apache.solr.internal.csv

Class CSVStrategy

    • Constructor Detail

      • CSVStrategy

        public CSVStrategy(char delimiter,
                           char encapsulator,
                           char commentStart)
      • CSVStrategy

        public CSVStrategy(char delimiter,
                           char encapsulator,
                           char commentStart,
                           char escape,
                           boolean ignoreLeadingWhitespaces,
                           boolean ignoreTrailingWhitespaces,
                           boolean interpretUnicodeEscapes,
                           boolean ignoreEmptyLines,
                           String printerNewline)
        Customized CSV strategy setter.
        Parameters:
        delimiter - a Char used for value separation
        encapsulator - a Char used as value encapsulation marker
        commentStart - a Char used for comment identification
        escape - a Char used for escaping
        ignoreTrailingWhitespaces - TRUE when trailing whitespaces should be ignored
        ignoreLeadingWhitespaces - TRUE when leading whitespaces should be ignored
        interpretUnicodeEscapes - TRUE when unicode escapes should be interpreted
        ignoreEmptyLines - TRUE when the parser should skip emtpy lines
        printerNewline - The string to use when printing a newline
      • CSVStrategy

        @Deprecated
        public CSVStrategy(char delimiter,
                                       char encapsulator,
                                       char commentStart,
                                       char escape,
                                       boolean ignoreLeadingWhitespaces,
                                       boolean ignoreTrailingWhitespaces,
                                       boolean interpretUnicodeEscapes,
                                       boolean ignoreEmptyLines)
        Deprecated. Use the ctor that also takes printerNewline. This ctor will be removed in Solr 7.
        Customized CSV strategy setter.
        Parameters:
        delimiter - a Char used for value separation
        encapsulator - a Char used as value encapsulation marker
        commentStart - a Char used for comment identification
        escape - a Char used for escaping
        ignoreTrailingWhitespaces - TRUE when trailing whitespaces should be ignored
        ignoreLeadingWhitespaces - TRUE when leading whitespaces should be ignored
        interpretUnicodeEscapes - TRUE when unicode escapes should be interpreted
        ignoreEmptyLines - TRUE when the parser should skip emtpy lines