@Override public BigdataValueSerializer<BigdataValue> getValueSerializer() { return valueFactory.getValueSerializer(); }
@Override public BigdataValueSerializer<BigdataValue> getValueSerializer() { return valueFactory.getValueSerializer(); }
public StatementHandler(// final int valueBufSize, final Counters c, final LexiconConfiguration<BigdataValue> conf, final BigdataValueFactory vf, final IMemoryManager memoryManager, final BlockingQueue<ValueBuffer> valueQueue, final AtomicBoolean parsing) { this.valueBufSize = valueBufSize; this.c = c; this.conf = conf; this.memoryManager = memoryManager; this.valueQueue = valueQueue; this.parsing = parsing; this.valSer = vf.getValueSerializer(); }
public StatementHandler(// final int valueBufSize, final Counters c, final LexiconConfiguration<BigdataValue> conf, final BigdataValueFactory vf, final IMemoryManager memoryManager, final BlockingQueue<ValueBuffer> valueQueue, final AtomicBoolean parsing) { this.valueBufSize = valueBufSize; this.c = c; this.conf = conf; this.memoryManager = memoryManager; this.valueQueue = valueQueue; this.parsing = parsing; this.valSer = vf.getValueSerializer(); }
public Id2TermTupleSerializer(final String namespace, final BigdataValueFactory valueFactory, final IKeyBuilderFactory keyBuilderFactory, final IRabaCoder leafKeysCoder, final IRabaCoder leafValsCoder) { super(keyBuilderFactory, leafKeysCoder, leafValsCoder); if (namespace == null) throw new IllegalArgumentException(); this.namespace = namespace; this.valueFactory = valueFactory; this.valueSer = this.valueFactory.getValueSerializer(); }
public Id2TermTupleSerializer(final String namespace, final BigdataValueFactory valueFactory, final IKeyBuilderFactory keyBuilderFactory, final IRabaCoder leafKeysCoder, final IRabaCoder leafValsCoder) { super(keyBuilderFactory, leafKeysCoder, leafValsCoder); if (namespace == null) throw new IllegalArgumentException(); this.namespace = namespace; this.valueFactory = valueFactory; this.valueSer = this.valueFactory.getValueSerializer(); }
public StatementHandler(// final int valueBufSize, final Counters c, final LexiconConfiguration<BigdataValue> conf, final BigdataValueFactory vf, final IMemoryManager memoryManager, final BlockingQueue<ValueBuffer> valueQueue, final AtomicBoolean parsing) { this.valueBufSize = valueBufSize; this.c = c; this.conf = conf; this.memoryManager = memoryManager; this.valueQueue = valueQueue; this.parsing = parsing; this.valSer = vf.getValueSerializer(); }
public IndexValueBufferTask(final MemoryManager mmgr, final ValueBuffer vbuf, final BTree termsIndex, final BigdataValueFactory vf, final Counters c) { if(mmgr == null) throw new IllegalArgumentException(); if(vbuf == null) throw new IllegalArgumentException(); if(termsIndex== null) throw new IllegalArgumentException(); if(vf == null) throw new IllegalArgumentException(); if(c == null) throw new IllegalArgumentException(); this.mmgr = mmgr; this.vbuf = vbuf; this.termsIndex = termsIndex; this.c = c; /* * Note: debugging only. */ this.valSer = vf.getValueSerializer(); this.compressor = new RecordCompressor(Deflater.BEST_SPEED); }
public IndexValueBufferTask(final MemoryManager mmgr, final ValueBuffer vbuf, final BTree termsIndex, final BigdataValueFactory vf, final Counters c) { if(mmgr == null) throw new IllegalArgumentException(); if(vbuf == null) throw new IllegalArgumentException(); if(termsIndex== null) throw new IllegalArgumentException(); if(vf == null) throw new IllegalArgumentException(); if(c == null) throw new IllegalArgumentException(); this.mmgr = mmgr; this.vbuf = vbuf; this.termsIndex = termsIndex; this.c = c; /* * Note: debugging only. */ this.valSer = vf.getValueSerializer(); this.compressor = new RecordCompressor(Deflater.BEST_SPEED); }
/** * * @param keyBuilderFactory * A factory that does not support unicode and has an * initialCapacity of {@value Bytes#SIZEOF_LONG}. */ public BlobsTupleSerializer(final String namespace, final BigdataValueFactory valueFactory) { super(// new ASCIIKeyBuilderFactory( BlobsIndexHelper.TERMS_INDEX_KEY_SIZE),// getDefaultLeafKeysCoder(),// // getDefaultValuesCoder() SimpleRabaCoder.INSTANCE); if (namespace == null) throw new IllegalArgumentException(); this.namespace = namespace; this.valueFactory = valueFactory; this.valueSer = this.valueFactory.getValueSerializer(); }
/** * * @param keyBuilderFactory * A factory that does not support unicode and has an * initialCapacity of {@value Bytes#SIZEOF_LONG}. */ public BlobsTupleSerializer(final String namespace, final BigdataValueFactory valueFactory) { super(// new ASCIIKeyBuilderFactory( BlobsIndexHelper.TERMS_INDEX_KEY_SIZE),// getDefaultLeafKeysCoder(),// // getDefaultValuesCoder() SimpleRabaCoder.INSTANCE); if (namespace == null) throw new IllegalArgumentException(); this.namespace = namespace; this.valueFactory = valueFactory; this.valueSer = this.valueFactory.getValueSerializer(); }
/** * Test of {@link BigdataValueSerializer}. */ private BigdataValue doBigdataValueSerializationTest( final BigdataValue expected) { final BigdataValueSerializer<BigdataValue> ser = expected .getValueFactory().getValueSerializer(); // serialize final byte[] data = ser.serialize(expected); // deserialize final BigdataValue actual = ser.deserialize(data); // Values compare as equal. assertTrue(expected.equals(actual)); return actual; }
/** * Test of {@link BigdataValueSerializer}. */ private BigdataValue doBigdataValueSerializationTest( final BigdataValue expected) { final BigdataValueSerializer<BigdataValue> ser = expected .getValueFactory().getValueSerializer(); // serialize final byte[] data = ser.serialize(expected); // deserialize final BigdataValue actual = ser.deserialize(data); // Values compare as equal. assertTrue(expected.equals(actual)); return actual; }
public IndexValueBufferTask(final MemoryManager mmgr, final ValueBuffer vbuf, final BTree termsIndex, final BigdataValueFactory vf, final Counters c) { if(mmgr == null) throw new IllegalArgumentException(); if(vbuf == null) throw new IllegalArgumentException(); if(termsIndex== null) throw new IllegalArgumentException(); if(vf == null) throw new IllegalArgumentException(); if(c == null) throw new IllegalArgumentException(); this.mmgr = mmgr; this.vbuf = vbuf; this.termsIndex = termsIndex; this.c = c; /* * Note: debugging only. */ this.valSer = vf.getValueSerializer(); this.compressor = new RecordCompressor(Deflater.BEST_SPEED); }
/** * Test of {@link BigdataValueSerializer}. */ private BigdataValue doBigdataValueSerializationTest( final BigdataValue expected) { final BigdataValueSerializer<BigdataValue> ser = expected .getValueFactory().getValueSerializer(); // serialize final byte[] data = ser.serialize(expected); // deserialize final BigdataValue actual = ser.deserialize(data); // Values compare as equal. assertTrue(expected.equals(actual)); return actual; }
BigdataValue value = valueFactory.getValueSerializer().deserialize(data);
BigdataValue value = valueFactory.getValueSerializer().deserialize(data);
BigdataValue value = valueFactory.getValueSerializer().deserialize(data);
BigdataValue value = valueFactory.getValueSerializer().deserialize(data);
final byte[] val = vf.getValueSerializer().serialize(asValue);