From: <mrp...@us...> - 2010-08-03 00:14:15
|
Revision: 3397 http://bigdata.svn.sourceforge.net/bigdata/?rev=3397&view=rev Author: mrpersonick Date: 2010-08-03 00:14:08 +0000 (Tue, 03 Aug 2010) Log Message: ----------- rolling back my changes to previous revision Modified Paths: -------------- trunk/bigdata-rdf/src/java/com/bigdata/rdf/rio/AsynchronousStatementBufferFactory.java Modified: trunk/bigdata-rdf/src/java/com/bigdata/rdf/rio/AsynchronousStatementBufferFactory.java =================================================================== --- trunk/bigdata-rdf/src/java/com/bigdata/rdf/rio/AsynchronousStatementBufferFactory.java 2010-08-02 23:19:07 UTC (rev 3396) +++ trunk/bigdata-rdf/src/java/com/bigdata/rdf/rio/AsynchronousStatementBufferFactory.java 2010-08-03 00:14:08 UTC (rev 3397) @@ -2803,28 +2803,11 @@ */ @SuppressWarnings("unchecked") static <V extends BigdataValue> IChunkedIterator<V> newT2IdIterator( - final LexiconRelation r, final Iterator<V> itr, - final int chunkSize) { + final Iterator<V> itr, final int chunkSize) { - return new ChunkedWrappedIterator(new Striterator(itr) - .addFilter(new Filter() { + return new ChunkedWrappedIterator(new Striterator(itr), chunkSize, + BigdataValue.class); - private static final long serialVersionUID = 1L; - - /* - * Filter hides inline terms since we don't want to write - * them on the forward index. - */ - @Override - protected boolean isValid(Object obj) { - - // will set IV on BigdataValues as a side-effect - return r.getInlineIV((Value) obj) != null; - - } - - }), chunkSize, BigdataValue.class); - } /** @@ -3081,13 +3064,6 @@ } - if (v.getIV().isInline()) { - - // Do not write inline terms on the reverse index. - continue; - - } - final byte[] key = v.getIV().encode(tmp.reset()) .getKey(); @@ -3791,9 +3767,8 @@ try { final Callable<Void> task = new AsyncTerm2IdIndexWriteTask( - tidsLatch, lexiconRelation, newT2IdIterator( - lexiconRelation, values.values().iterator(), - producerChunkSize), + tidsLatch, lexiconRelation, newT2IdIterator(values + .values().iterator(), producerChunkSize), buffer_t2id); // queue chunks onto the write buffer. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |