Class InMemoryAppendOnlyKeyValueTable
- java.lang.Object
-
- com.snowflake.connectors.common.table.InMemoryAppendOnlyKeyValueTable
-
- All Implemented Interfaces:
com.snowflake.connectors.common.table.AppendOnlyTable
public class InMemoryAppendOnlyKeyValueTable extends Object implements com.snowflake.connectors.common.table.AppendOnlyTable
In memory implementation ofAppendOnlyTable
.
-
-
Constructor Summary
Constructors Constructor Description InMemoryAppendOnlyKeyValueTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Variant
fetch(String key)
List<Variant>
getAllWhere(Column filter)
void
insert(String key, Variant value)
void
setGetAllWherePredicate(Predicate<Map.Entry<String,Collection<FakeKeyValue>>> getAllWherePredicate)
Sets the predicate used by thegetAllWhere
method.
-
-
-
Method Detail
-
fetch
public Variant fetch(String key)
- Specified by:
fetch
in interfacecom.snowflake.connectors.common.table.AppendOnlyTable
-
insert
public void insert(String key, Variant value)
- Specified by:
insert
in interfacecom.snowflake.connectors.common.table.AppendOnlyTable
-
getAllWhere
public List<Variant> getAllWhere(Column filter)
- Specified by:
getAllWhere
in interfacecom.snowflake.connectors.common.table.AppendOnlyTable
-
setGetAllWherePredicate
public void setGetAllWherePredicate(Predicate<Map.Entry<String,Collection<FakeKeyValue>>> getAllWherePredicate)
Sets the predicate used by thegetAllWhere
method.- Parameters:
getAllWherePredicate
- new predicate
-
-