@Override public void commitDeletes() { _currentDelDocIds = _delDocIdSet.toIntArray(); }
public void commitDeletes() { _currentDelDocIds = _delDocIdSet.toIntArray(); }
public void commitDeletes() { _currentDelDocIds = _delDocIdSet.toIntArray(); }
public static int[] mapUID(long[] uidArray, DocIDMapper mapper) { IntRBTreeSet idSet = new IntRBTreeSet(); for (long uid : uidArray) { if (uid != ZoieSegmentReader.DELETED_UID) { int docid = mapper.getDocID(uid); if (docid != DocIDMapper.NOT_FOUND) { idSet.add(docid); } } } return idSet.toIntArray(); }
public static int[] mapUID(long[] uidArray, DocIDMapper mapper) { IntRBTreeSet idSet = new IntRBTreeSet(); for (long uid : uidArray) { if (uid != ZoieSegmentReader.DELETED_UID) { int docid = mapper.getDocID(uid); if (docid != DocIDMapper.NOT_FOUND) { idSet.add(docid); } } } return idSet.toIntArray(); }
public static int[] mapUID(long[] uidArray,DocIDMapper<?> mapper) { IntRBTreeSet idSet = new IntRBTreeSet(); for (long uid : uidArray) { if (uid != ZoieIndexReader.DELETED_UID) { int docid = mapper.getDocID(uid); if (docid!=DocIDMapper.NOT_FOUND) { idSet.add(docid); } } } return idSet.toIntArray(); }