Updated headers.

This commit is contained in:
Christian P. MOMON 2018-02-28 16:24:59 +01:00
parent 70bb0c74dd
commit e939664d89
6 changed files with 40 additions and 40 deletions

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2013-2017 Christian Pierre MOMON <christian.momon@devinsy.fr> * Copyright (C) 2013-2018 Christian Pierre MOMON <christian.momon@devinsy.fr>
* *
* This file is part of SikevaDB, simple key value database. * This file is part of SikevaDB, simple key value database.
* *

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2013-2017 Christian Pierre MOMON <christian.momon@devinsy.fr> * Copyright (C) 2013-2018 Christian Pierre MOMON <christian.momon@devinsy.fr>
* *
* This file is part of SikevaDB, simple key value database. * This file is part of SikevaDB, simple key value database.
* *

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2013-2017 Christian Pierre MOMON <christian.momon@devinsy.fr> * Copyright (C) 2013-2018 Christian Pierre MOMON <christian.momon@devinsy.fr>
* *
* This file is part of SikevaDB, simple key value database. * This file is part of SikevaDB, simple key value database.
* *
@ -735,40 +735,6 @@ public class FileTreeSikevaDB implements SikevaDB
return result; return result;
} }
/* (non-Javadoc)
* @see fr.devinsy.sikevadb.core.SikevaDB#getKeys()
*/
@Override
public StringList getTopKeys() throws SikevaDBException
{
StringList result;
if (isClosed())
{
throw new ClosedDatabaseException();
}
else
{
result = new StringList((int) countOfElements());
File[] topFiles = this.dataDirectory.listFiles();
for (File file : topFiles)
{
if (file.isFile())
{
result.add(file.getName());
}
else if (file.isDirectory())
{
result.add(file.getName());
}
}
}
//
return result;
}
/** /**
* Gets the login. * Gets the login.
* *
@ -835,6 +801,40 @@ public class FileTreeSikevaDB implements SikevaDB
return result; return result;
} }
/* (non-Javadoc)
* @see fr.devinsy.sikevadb.core.SikevaDB#getKeys()
*/
@Override
public StringList getTopKeys() throws SikevaDBException
{
StringList result;
if (isClosed())
{
throw new ClosedDatabaseException();
}
else
{
result = new StringList((int) countOfElements());
File[] topFiles = this.dataDirectory.listFiles();
for (File file : topFiles)
{
if (file.isFile())
{
result.add(file.getName());
}
else if (file.isDirectory())
{
result.add(file.getName());
}
}
}
//
return result;
}
/* (non-Javadoc) /* (non-Javadoc)
* @see fr.devinsy.sikevadb.core.SikevaDB#getValue(java.lang.String) * @see fr.devinsy.sikevadb.core.SikevaDB#getValue(java.lang.String)
*/ */

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2013-2017 Christian Pierre MOMON <christian.momon@devinsy.fr> * Copyright (C) 2013-2018 Christian Pierre MOMON <christian.momon@devinsy.fr>
* *
* This file is part of SikevaDB, simple key value database. * This file is part of SikevaDB, simple key value database.
* *

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2013-2017 Christian Pierre MOMON, DEVINSY * Copyright (C) 2013-2018 Christian Pierre MOMON, DEVINSY
* *
* This file is part of SikevaDB, simple key value database. * This file is part of SikevaDB, simple key value database.
* *

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2013-2017 Christian Pierre MOMON, DEVINSY * Copyright (C) 2013-2018 Christian Pierre MOMON, DEVINSY
* *
* This file is part of SikevaDB, simple key value database. * This file is part of SikevaDB, simple key value database.
* *