我在 Java 中有这个结构要使用 TupleSerialBinding 存储在 berkeley DB 中:
public class SampleValues implements Serializable, MarshalledEntity {
private static final long serialVersionUID = 1L;
protected double min;
protected double max;
protected ArrayList<Double> values = new ArrayList<Double>();
}
键是使用类创建的最小值以进行 EntryBinding。在我创建基于 SamplesValues 的 EntityBinding 之后
我没有找到如何使用 TupleSerialBinding 存储“值数组”。
存储 min 和 max 的值,但不存储 values 数组。