Java Code Examples for com.bigdata.rdf.model.BigdataValueFactory#getValueSerializer()

The following examples show how to use com.bigdata.rdf.model.BigdataValueFactory#getValueSerializer() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: HashCollisionUtility.java    From database with GNU General Public License v2.0 5 votes vote down vote up
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);

 	}
 
Example 2
Source File: HashCollisionUtility.java    From database with GNU General Public License v2.0 4 votes vote down vote up
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();

 	}
 
Example 3
Source File: ReverseIndexWriterTask.java    From database with GNU General Public License v2.0 3 votes vote down vote up
/**
 * 
 * @param idTermIndex
 *            The index on which to write the data.
 * @param valueFactory
 *            This determines how the {@link Value} objects are serialized
 *            on the index.
 * @param a
 *            The terms (in sorted order by their term identifiers).
 * @param ndistinct
 *            The #of elements in <i>a</i>.
 */
public ReverseIndexWriterTask(final IIndex idTermIndex,
        final BigdataValueFactory valueFactory,
        final KVO<BigdataValue>[] a, final int ndistinct,
        final boolean storeBlankNodes) {

    if (idTermIndex == null)
        throw new IllegalArgumentException();

    if (valueFactory == null)
        throw new IllegalArgumentException();

    if (a == null)
        throw new IllegalArgumentException();

    if (ndistinct < 0 || ndistinct > a.length)
        throw new IllegalArgumentException();

    this.idTermIndex = idTermIndex;

    this.ser = valueFactory.getValueSerializer();

    this.a = a;

    this.ndistinct = ndistinct;
    
    this.storeBlankNodes = storeBlankNodes;
    
}