com.bigdata.rdf.spo
Class BulkCompleteConverter

java.lang.Object
  extended by com.bigdata.rdf.spo.BulkCompleteConverter
All Implemented Interfaces:
IChunkConverter<ISPO,ISPO>

public class BulkCompleteConverter
extends Object
implements IChunkConverter<ISPO,ISPO>

Bulk completes the StatementEnum and/or statement identifier (SID) for ISPOs using the given statement IIndex.

Version:
$Id: BulkCompleteConverter.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Constructor Summary
BulkCompleteConverter(IIndex ndx)
           
 
Method Summary
 ISPO[] convert(IChunkedOrderedIterator<ISPO> src)
          Convert the next chunk of element(s) from the source iterator into target element(s).
 ISPO[] convert(ISPO[] chunk)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulkCompleteConverter

public BulkCompleteConverter(IIndex ndx)
Parameters:
ndx - The SPO index.
Method Detail

convert

public ISPO[] convert(IChunkedOrderedIterator<ISPO> src)
Description copied from interface: IChunkConverter
Convert the next chunk of element(s) from the source iterator into target element(s).

Note: This method will only be invoked if ChunkedConvertingIterator.hasNext() reports true for the source iterator.

Note: Iterators are single-threaded so the implementation of this method does not need to be thread-safe.

Specified by:
convert in interface IChunkConverter<ISPO,ISPO>
Parameters:
src - The source iterator.
Returns:
The target chunk (not null, but may be empty).

convert

public ISPO[] convert(ISPO[] chunk)


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