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