public class NanoDBTableFile<T> extends Object implements Iterable<T>, AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
static String |
NANODB_TABLE_0_8_1 |
| Constructor and Description |
|---|
NanoDBTableFile(Class<T> rowType,
File dir,
String tableName,
NanoDBSerializer<T> serializer,
NanoDB db,
NanoDBIndexDefinition<T>[] indexDefinitions,
net.thevpc.nuts.NutsSession session0) |
| Modifier and Type | Method and Description |
|---|---|
long |
add(T a,
net.thevpc.nuts.NutsSession session) |
void |
close() |
net.thevpc.nuts.NutsStream<T> |
findByIndex(String indexName,
Object value,
net.thevpc.nuts.NutsSession session) |
<T> net.thevpc.nuts.NutsStream<T> |
findIndexValues(String indexName,
net.thevpc.nuts.NutsSession session) |
void |
flush(net.thevpc.nuts.NutsSession session) |
T |
get(long position,
net.thevpc.nuts.NutsSession session) |
long |
getFileLength() |
static int |
getUTFLength(String s,
net.thevpc.nuts.NutsSession session) |
Iterable<T> |
items(net.thevpc.nuts.NutsSession s) |
Iterator<T> |
iterator() |
Iterator<T> |
iterator(net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsStream<T> |
stream(net.thevpc.nuts.NutsSession session) |
void |
updateIndices(T a,
long objectId,
net.thevpc.nuts.NutsSession session) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static final String NANODB_TABLE_0_8_1
public NanoDBTableFile(Class<T> rowType, File dir, String tableName, NanoDBSerializer<T> serializer, NanoDB db, NanoDBIndexDefinition<T>[] indexDefinitions, net.thevpc.nuts.NutsSession session0)
public static int getUTFLength(String s, net.thevpc.nuts.NutsSession session)
public T get(long position, net.thevpc.nuts.NutsSession session)
public long add(T a, net.thevpc.nuts.NutsSession session)
public void flush(net.thevpc.nuts.NutsSession session)
public void close()
close in interface AutoCloseablepublic net.thevpc.nuts.NutsStream<T> stream(net.thevpc.nuts.NutsSession session)
public void updateIndices(T a, long objectId, net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsStream<T> findByIndex(String indexName, Object value, net.thevpc.nuts.NutsSession session)
public <T> net.thevpc.nuts.NutsStream<T> findIndexValues(String indexName, net.thevpc.nuts.NutsSession session)
public long getFileLength()
Copyright © 2022 vpc open source initiative. All rights reserved.