Class DataSourceToIndexFieldMapping

    • Method Detail

      • dataSourceFieldName

        public final String dataSourceFieldName()

        The name of the field in the data source. You must first create the index field using the UpdateIndex API.

        Returns:
        The name of the field in the data source. You must first create the index field using the UpdateIndex API.
      • dateFieldFormat

        public final String dateFieldFormat()

        The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.

        Returns:
        The format for date fields in the data source. If the field specified in DataSourceFieldName is a date field, you must specify the date format. If the field is not a date field, an exception is thrown.
      • indexFieldName

        public final String indexFieldName()

        The name of the index field to map to the data source field. The index field type must match the data source field type.

        Returns:
        The name of the index field to map to the data source field. The index field type must match the data source field type.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)