Class InMemoryReadOnlyKeyValueTable

  • All Implemented Interfaces:
    com.snowflake.connectors.common.table.KeyValueTable

    public class InMemoryReadOnlyKeyValueTable
    extends Object
    implements com.snowflake.connectors.common.table.KeyValueTable
    In memory, read-only implementation of KeyValueTable.
    • Constructor Detail

      • InMemoryReadOnlyKeyValueTable

        public InMemoryReadOnlyKeyValueTable​(Map<String,​Variant> repository)
    • Method Detail

      • fetch

        public Variant fetch​(String key)
        Specified by:
        fetch in interface com.snowflake.connectors.common.table.KeyValueTable
      • fetchAll

        public Map<String,​Variant> fetchAll()
        Specified by:
        fetchAll in interface com.snowflake.connectors.common.table.KeyValueTable
      • update

        public void update​(String key,
                           Variant value)
        Specified by:
        update in interface com.snowflake.connectors.common.table.KeyValueTable
      • getAllWhere

        public List<Variant> getAllWhere​(Column filter)
        Specified by:
        getAllWhere in interface com.snowflake.connectors.common.table.KeyValueTable
      • updateMany

        public void updateMany​(List<String> ids,
                               String fieldName,
                               Variant fieldValue)
        Specified by:
        updateMany in interface com.snowflake.connectors.common.table.KeyValueTable
      • updateAll

        public void updateAll​(List<com.snowflake.connectors.common.table.KeyValue> keyValues)
        Specified by:
        updateAll in interface com.snowflake.connectors.common.table.KeyValueTable
      • delete

        public void delete​(String key)
        Specified by:
        delete in interface com.snowflake.connectors.common.table.KeyValueTable