Class UpsertConfig

    • Method Detail

      • getComparisonColumn

        public String getComparisonColumn()
      • isEnableSnapshot

        public boolean isEnableSnapshot()
      • getMetadataManagerClass

        @Nullable
        public String getMetadataManagerClass()
      • getMetadataManagerConfigs

        @Nullable
        public Map<String,​String> getMetadataManagerConfigs()
      • setHashFunction

        public void setHashFunction​(HashFunction hashFunction)
      • setPartialUpsertStrategies

        public void setPartialUpsertStrategies​(Map<String,​UpsertConfig.Strategy> partialUpsertStrategies)
        PartialUpsertStrategies maintains the mapping of merge strategies per column. Each key in the map is a columnName, value is a partial upsert merging strategy. Supported strategies are {OVERWRITE|INCREMENT|APPEND|UNION|IGNORE}.
      • setDefaultPartialUpsertStrategy

        public void setDefaultPartialUpsertStrategy​(UpsertConfig.Strategy defaultPartialUpsertStrategy)
        If strategy is not specified for a column, the merger on that column will be "defaultPartialUpsertStrategy". The default value of defaultPartialUpsertStrategy is OVERWRITE.
      • setComparisonColumn

        public void setComparisonColumn​(String comparisonColumn)
        By default, Pinot uses the value in the time column to determine the latest record. For two records with the same primary key, the record with the larger value of the time column is picked as the latest update. However, there are cases when users need to use another column to determine the order. In such case, you can use option comparisonColumn to override the column used for comparison.
      • setEnableSnapshot

        public void setEnableSnapshot​(boolean enableSnapshot)
      • setMetadataManagerClass

        public void setMetadataManagerClass​(String metadataManagerClass)
      • setMetadataManagerConfigs

        public void setMetadataManagerConfigs​(Map<String,​String> metadataManagerConfigs)