Interface DatamartContext.DataLoader

  • Enclosing interface:
    DatamartContext

    public static interface DatamartContext.DataLoader
    API for DataFeed loading from a formula context.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addRow​(Object... values)
      Adds a row to the data buffer that will ultimately be loaded in the feed table.
      void addRow​(List<Object> rowAsList)
      Adds a row to the data buffer that will ultimately be loaded in the feed table.
      void addRow​(Map<String,​Object> rowAsMap)
      Adds a row to the data buffer that will ultimately be loaded in the feed table.
      void flush()
      Flushes the data to the DB.
    • Method Detail

      • addRow

        void addRow​(Map<String,​Object> rowAsMap)
        Adds a row to the data buffer that will ultimately be loaded in the feed table.
        Parameters:
        rowAsMap - Row to add in map of (field,value) pairs format.
      • addRow

        void addRow​(List<Object> rowAsList)
        Adds a row to the data buffer that will ultimately be loaded in the feed table.
        Parameters:
        rowAsList - Row to add as a list of values matching the header fields order.
      • addRow

        void addRow​(Object... values)
        Adds a row to the data buffer that will ultimately be loaded in the feed table.
        Parameters:
        values - Row to add as an array of values matching the header fields order.
      • flush

        void flush()
        Flushes the data to the DB. This is in addition to the implicit flush that occurs when the internal buffer fills up. The internal buffer size is determined by the datamart.dataLoad.maxRowsPerBatch Price f(x) node instance parameter, with a default value of 20k rows.