public class NanoDBDefaultIndex<T> extends NanoDBAbstractIndex<T>
| Modifier and Type | Field and Description |
|---|---|
static String |
NANODB_INDEX_0_8_1 |
| Constructor and Description |
|---|
NanoDBDefaultIndex(Class<T> keyType,
NanoDBSerializer<T> ser,
DBIndexValueStoreFactory storeFactory,
Map<T,DBIndexValueStore> index,
File file) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(net.thevpc.nuts.NutsSession session) |
Stream<T> |
findAll(net.thevpc.nuts.NutsSession session) |
void |
flush(net.thevpc.nuts.NutsSession session) |
LongStream |
get(T s,
net.thevpc.nuts.NutsSession session) |
File |
getFile() |
void |
load(File stream,
net.thevpc.nuts.NutsSession session) |
void |
load(NanoDBInputStream in,
net.thevpc.nuts.NutsSession session) |
void |
load(net.thevpc.nuts.NutsSession session) |
void |
put(T s,
long position,
net.thevpc.nuts.NutsSession session) |
protected T |
readKey(NanoDBInputStream in,
net.thevpc.nuts.NutsSession session) |
void |
store(File stream,
net.thevpc.nuts.NutsSession session) |
void |
store(NanoDBOutputStream dos,
net.thevpc.nuts.NutsSession session) |
void |
storeKey(T k,
NanoDBOutputStream dos,
net.thevpc.nuts.NutsSession session) |
public static final String NANODB_INDEX_0_8_1
public NanoDBDefaultIndex(Class<T> keyType, NanoDBSerializer<T> ser, DBIndexValueStoreFactory storeFactory, Map<T,DBIndexValueStore> index, File file)
public File getFile()
public void load(net.thevpc.nuts.NutsSession session)
public void flush(net.thevpc.nuts.NutsSession session)
public void put(T s, long position, net.thevpc.nuts.NutsSession session)
public LongStream get(T s, net.thevpc.nuts.NutsSession session)
public void clear(net.thevpc.nuts.NutsSession session)
public void storeKey(T k, NanoDBOutputStream dos, net.thevpc.nuts.NutsSession session) throws IOException
IOExceptionpublic void store(NanoDBOutputStream dos, net.thevpc.nuts.NutsSession session)
public void load(NanoDBInputStream in, net.thevpc.nuts.NutsSession session)
protected T readKey(NanoDBInputStream in, net.thevpc.nuts.NutsSession session) throws IOException
IOExceptionpublic void store(File stream, net.thevpc.nuts.NutsSession session) throws IOException
IOExceptionpublic void load(File stream, net.thevpc.nuts.NutsSession session)
Copyright © 2022 vpc open source initiative. All rights reserved.