Updated headers.
This commit is contained in:
parent
70bb0c74dd
commit
e939664d89
6 changed files with 40 additions and 40 deletions
|
@ -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.
|
||||||
*
|
*
|
||||||
|
|
|
@ -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.
|
||||||
*
|
*
|
||||||
|
|
|
@ -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)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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.
|
||||||
*
|
*
|
||||||
|
|
|
@ -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.
|
||||||
*
|
*
|
||||||
|
|
|
@ -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.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue