Class RecordFactory

java.lang.Object
org.apache.jena.tdb1.base.record.RecordFactory

public final class RecordFactory extends Object
Record creator
  • Constructor Details

    • RecordFactory

      public RecordFactory(int keyLength, int valueLength)
  • Method Details

    • keyFactory

      public RecordFactory keyFactory()
      Return a RecordFactory that makes key-only records of the same key size
    • createKeyOnly

      public Record createKeyOnly()
      Create a key-only record, allocating blank space for the key
    • createKeyOnly

      public Record createKeyOnly(Record record)
      Create a key-only record
    • create

      public Record create(byte[] key)
      Create a key and value record (value uninitialized)
    • create

      public Record create()
      Create a record, allocating space for the key and value (if any)
    • create

      public Record create(byte[] key, byte[] value)
      Create a key and value record
    • insertInto

      public void insertInto(Record record, ByteBuffer bb, int idx)
    • buildFrom

      public Record buildFrom(ByteBuffer bb, int idx)
    • hasValue

      public boolean hasValue()
    • recordLength

      public int recordLength()
    • keyLength

      public int keyLength()
    • valueLength

      public int valueLength()
    • toString

      public String toString()
      Overrides:
      toString in class Object