Class SourceCSV

java.lang.Object
com.algolia.model.ingestion.SourceCSV
All Implemented Interfaces:
SourceInput, SourceUpdateInput

public class SourceCSV extends Object implements SourceInput, SourceUpdateInput
SourceCSV
  • Constructor Details

    • SourceCSV

      public SourceCSV()
  • Method Details

    • setUrl

      public SourceCSV setUrl(String url)
    • getUrl

      @Nonnull public String getUrl()
      URL of the file.
    • setUniqueIDColumn

      public SourceCSV setUniqueIDColumn(String uniqueIDColumn)
    • getUniqueIDColumn

      @Nullable public String getUniqueIDColumn()
      Name of a column that contains a unique ID which will be used as `objectID` in Algolia.
    • setMapping

      public SourceCSV setMapping(Map<String,MappingTypeCSV> mapping)
    • putMapping

      public SourceCSV putMapping(String key, MappingTypeCSV mappingItem)
    • getMapping

      @Nullable public Map<String,MappingTypeCSV> getMapping()
      Key-value pairs of column names and their expected types.
    • setMethod

      public SourceCSV setMethod(MethodType method)
    • getMethod

      @Nullable public MethodType getMethod()
      Get method
    • setDelimiter

      public SourceCSV setDelimiter(String delimiter)
    • getDelimiter

      @Nullable public String getDelimiter()
      The character used to split the value on each line, default to a comma (\\r, \\n, 0xFFFD, and space are forbidden).
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object