Package org.apache.jena.dboe.base.record
Class RecordFactory
- java.lang.Object
-
- org.apache.jena.dboe.base.record.RecordFactory
-
public final class RecordFactory extends java.lang.ObjectRecord creator
-
-
Field Summary
Fields Modifier and Type Field Description static RecordMapper<Record>mapperRecord
-
Constructor Summary
Constructors Constructor Description RecordFactory(int keyLength, int valueLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <X> Xaccess(java.nio.ByteBuffer bb, int idx, byte[] keyBytes, RecordMapper<X> mapper)RecordbuildFrom(java.nio.ByteBuffer bb, int idx)Recordcreate()Create a record, allocating space for the key and value (if any)Recordcreate(byte[] key)Create a key and value record (value uninitialized)Recordcreate(byte[] key, byte[] value)Create a key and value recordRecordcreateKeyOnly()Create a key-only record, allocating blank space for the keyRecordcreateKeyOnly(Record record)Create a key-only recordbooleanhasValue()voidinsertInto(Record record, java.nio.ByteBuffer bb, int idx)RecordFactorykeyFactory()Return a RecordFactory that makes key-only records of the same key sizeintkeyLength()intrecordLength()java.lang.StringtoString()intvalueLength()
-
-
-
Field Detail
-
mapperRecord
public static final RecordMapper<Record> mapperRecord
-
-
Method Detail
-
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
-
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, java.nio.ByteBuffer bb, int idx)
-
access
public <X> X access(java.nio.ByteBuffer bb, int idx, byte[] keyBytes, RecordMapper<X> mapper)
-
buildFrom
public Record buildFrom(java.nio.ByteBuffer bb, int idx)
-
hasValue
public boolean hasValue()
-
recordLength
public int recordLength()
-
keyLength
public int keyLength()
-
valueLength
public int valueLength()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-