com.bigdata.rdf.lexicon
Class Term2IdWriteTask

java.lang.Object
  extended by com.bigdata.rdf.lexicon.Term2IdWriteTask
All Implemented Interfaces:
Callable<KVO<BigdataValue>[]>

public class Term2IdWriteTask
extends Object
implements Callable<KVO<BigdataValue>[]>

Synchronous RPC write on the TERM2ID index.

Version:
$Id: Term2IdWriteTask.java 5287 2011-10-04 20:19:12Z thompsonbry $
Author:
Bryan Thompson

Constructor Summary
Term2IdWriteTask(IIndex termIdIndex, boolean readOnly, boolean storeBlankNodes, int termIdBitsToReverse, int numTerms, BigdataValue[] terms, WriteTaskStats stats)
           
 
Method Summary
 KVO<BigdataValue>[] call()
          Unify the BigdataValues with the TERM2ID index, setting the term identifiers (TIDs) on those values as a side-effect.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Term2IdWriteTask

public Term2IdWriteTask(IIndex termIdIndex,
                        boolean readOnly,
                        boolean storeBlankNodes,
                        int termIdBitsToReverse,
                        int numTerms,
                        BigdataValue[] terms,
                        WriteTaskStats stats)
Method Detail

call

public KVO<BigdataValue>[] call()
                         throws Exception
Unify the BigdataValues with the TERM2ID index, setting the term identifiers (TIDs) on those values as a side-effect.

Specified by:
call in interface Callable<KVO<BigdataValue>[]>
Returns:
A dense KVO[] chunk consisting of only those distinct terms whose term identifier was not already known. (This may be used to write on the reverse index).
Throws:
Exception


Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.