@@ -0,0 +1,2486 @@
+/*%0A * Licensed to the Apache Software Foundation (ASF) under one%0A * or more contributor license agreements.  See the NOTICE file%0A * distributed with this work for additional information%0A * regarding copyright ownership.  The ASF licenses this file%0A * to you under the Apache License, Version 2.0 (the%0A * %22License%22); you may not use this file except in compliance%0A * with the License.  You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.hp.hpl.jena.tdb.index;%0A%0Aimport java.util.Iterator ;%0A%0Aimport org.apache.jena.atlas.lib.ColumnMap ;%0Aimport org.apache.jena.atlas.lib.Tuple ;%0A%0Aimport com.hp.hpl.jena.tdb.index.TupleIndex ;%0Aimport com.hp.hpl.jena.tdb.store.NodeId ;%0A%0Apublic class TupleIndexWrapper implements TupleIndex%0A%7B%0A    protected final TupleIndex index ;%0A%0A    public TupleIndexWrapper(TupleIndex index) %7B this.index = index ; %7D%0A%0A    @Override%0A    public boolean add(Tuple%3CNodeId%3E tuple) %7B%0A        return index.add(tuple) ;%0A    %7D%0A%0A    @Override%0A    public boolean delete(Tuple%3CNodeId%3E tuple) %7B%0A        return index.delete(tuple) ;%0A    %7D%0A%0A    @Override%0A    public Iterator%3CTuple%3CNodeId%3E%3E find(Tuple%3CNodeId%3E pattern) %7B%0A        return index.find(pattern) ;%0A    %7D%0A%0A    @Override%0A    public Iterator%3CTuple%3CNodeId%3E%3E all() %7B%0A        return index.all() ;%0A    %7D%0A%0A    @Override%0A    public int getTupleLength() %7B%0A        return index.getTupleLength() ;%0A    %7D%0A%0A    @Override%0A    public String getMapping() %7B%0A        return index.getMapping() ;%0A    %7D%0A%0A    @Override%0A    public ColumnMap getColumnMap() %7B%0A        return index.getColumnMap() ;%0A    %7D%0A%0A    @Override%0A    public String getName() %7B%0A        return index.getName() ;%0A    %7D%0A%0A    @Override%0A    public int weight(Tuple%3CNodeId%3E pattern) %7B%0A        return index.weight(pattern) ;%0A    %7D%0A%0A    @Override%0A    public long size() %7B%0A        return index.size() ;%0A    %7D%0A%0A    @Override%0A    public boolean isEmpty() %7B%0A        return index.isEmpty() ;%0A    %7D%0A%0A    @Override%0A    public void clear() %7B%0A        index.clear() ;%0A    %7D%0A%0A    @Override%0A    public void sync() %7B%0A        index.sync() ;%0A    %7D%0A%0A    @Override%0A    public void close() %7B%0A        index.close() ;%0A    %7D%0A%7D%0A

Add TupleIndexWrapper