tiny-db icon indicating copy to clipboard operation
tiny-db copied to clipboard

BplusTree Key's are not generic

Open arjunsk opened this issue 2 years ago • 0 comments

In ConstantSerializer we are assuming Index as Integer. We need to modify that logic to be generic enough for Constant class.

public class ConstantSerializer implements Serializer<D_Constant> {

  @Override
  public D_Constant read(LargeByteBuffer bb) {
    int ival = bb.getInt();
    return new D_Constant(ival);
  }

arjunsk avatar Dec 18 '22 18:12 arjunsk