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(File dir,
String tableName,
NanoDBSerializer<T> serializer,
NanoDB db,
NanoDBIndexDefinition<T>[] indexDefinitions) |
| Modifier and Type | Method and Description |
|---|---|
long |
add(T a) |
void |
close() |
Stream<T> |
findByIndex(String indexName,
Object value) |
<T> Stream<T> |
findIndexValues(String indexName) |
void |
flush() |
T |
get(long position) |
long |
getFileLength() |
static int |
getUTFLength(String s) |
Iterator<T> |
iterator() |
Stream<T> |
stream() |
void |
updateIndices(T a,
long objectId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static final String NANODB_TABLE_0_8_1
public NanoDBTableFile(File dir, String tableName, NanoDBSerializer<T> serializer, NanoDB db, NanoDBIndexDefinition<T>[] indexDefinitions)
public T get(long position)
public long add(T a)
public void flush()
public void close()
close in interface AutoCloseablepublic void updateIndices(T a, long objectId)
public long getFileLength()
public static int getUTFLength(String s)
Copyright © 2021 vpc open source initiative. All rights reserved.