removed unused classes

pull/1/head
orbiter 13 years ago
parent f9c0e6e950
commit 2571e0d47a

@ -1,119 +0,0 @@
/**
* DocumentMetadata
* Copyright 2012 by Michael Peter Christen
* First released 3.4.2012 at http://yacy.net
*
* This file is part of YaCy Content Integration
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program in the file lgpl21.txt
* If not, see <http://www.gnu.org/licenses/>.
*/
package net.yacy.search.index;
import java.io.IOException;
import net.yacy.cora.order.CloneableIterator;
import net.yacy.cora.sorting.WeakPriorityBlockingQueue.Element;
import net.yacy.kelondro.data.meta.URIMetadata;
import net.yacy.kelondro.data.word.WordReference;
public class DocumentMetadata implements Metadata {
@Override
public void clearCache() {
// TODO Auto-generated method stub
}
@Override
public void clear() throws IOException {
// TODO Auto-generated method stub
}
@Override
public int size() {
// TODO Auto-generated method stub
return 0;
}
@Override
public synchronized void close() {
// TODO Auto-generated method stub
}
@Override
public int writeCacheSize() {
// TODO Auto-generated method stub
return 0;
}
@Override
public URIMetadata load(final Element<WordReference> obrwi) {
// TODO Auto-generated method stub
return null;
}
@Override
public URIMetadata load(final byte[] urlHash) {
// TODO Auto-generated method stub
return null;
}
@Override
public void store(final URIMetadata entry) throws IOException {
// TODO Auto-generated method stub
}
@Override
public boolean remove(final byte[] urlHashBytes) {
// TODO Auto-generated method stub
return false;
}
@Override
public boolean exists(final byte[] urlHash) {
// TODO Auto-generated method stub
return false;
}
@Override
public CloneableIterator<byte[]> keys(final boolean up, final byte[] firstKey) {
// TODO Auto-generated method stub
return null;
}
@Override
public CloneableIterator<URIMetadata> entries() throws IOException {
// TODO Auto-generated method stub
return null;
}
@Override
public CloneableIterator<URIMetadata> entries(final boolean up, final String firstHash)
throws IOException {
// TODO Auto-generated method stub
return null;
}
@Override
public int deleteDomain(final String hosthash) throws IOException {
// TODO Auto-generated method stub
return 0;
}
}

@ -1,90 +0,0 @@
/**
* DocumentReference
* Copyright 2012 by Michael Peter Christen
* First released 3.4.2012 at http://yacy.net
*
* This file is part of YaCy Content Integration
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program in the file lgpl21.txt
* If not, see <http://www.gnu.org/licenses/>.
*/
package net.yacy.search.index;
import java.io.IOException;
import net.yacy.cora.order.CloneableIterator;
import net.yacy.cora.sorting.WeakPriorityBlockingQueue;
import net.yacy.cora.storage.MapStore;
import net.yacy.kelondro.data.meta.URIReference;
import net.yacy.kelondro.data.word.WordReference;
public class DocumentReference {
public MapStore data;
public void clear() {
this.data.clear();
}
public int size() {
return this.data.size();
}
public synchronized void close() {
if (this.data != null) {
this.data.close();
}
this.data = null;
}
public URIReference load(final WeakPriorityBlockingQueue.Element<WordReference> obrwi) {
return null;
}
public URIReference load(final byte[] urlHash){
return null;
}
public boolean remove(final byte[] urlHashBytes) {
return false;
}
public boolean exists(final byte[] urlHash) {
return false;
}
public CloneableIterator<byte[]> keys(final boolean up, final byte[] firstKey) {
return null;
}
public CloneableIterator<URIReference> entries() {
return null;
}
public CloneableIterator<URIReference> entries(final boolean up, final String firstHash) {
return null;
}
/**
* using a fragment of the url hash (5 bytes: bytes 6 to 10) it is possible to address all urls from a specific domain
* here such a fragment can be used to delete all these domains at once
* @param hosthash
* @return number of deleted domains
* @throws IOException
*/
public int deleteDomain(final String hosthash) throws IOException {
return -1;
}
}

@ -1,34 +0,0 @@
/**
* MetadataMigration
* Copyright 2012 by Michael Peter Christen
* First released 3.4.2012 at http://yacy.net
*
* This file is part of YaCy Content Integration
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program in the file lgpl21.txt
* If not, see <http://www.gnu.org/licenses/>.
*/
package net.yacy.search.index;
/*
* migration class that combines old MetadataRepository classes
* with the new DocumentMetadata class
*/
public class MetadataMigration /*implements Metadata*/ {
private MetadataRepository metadataRepository;
private DocumentMetadata documentMetadata;
}
Loading…
Cancel
Save