public class NanoDBTableStoreFile<T> extends Object implements NanoDBTableStore<T>
| Modifier and Type | Field and Description |
|---|---|
static String |
NANODB_TABLE_0_8_1 |
| Constructor and Description |
|---|
NanoDBTableStoreFile(Class<T> rowType,
File dir,
String tableName,
NanoDBSerializer<T> serializer,
NanoDB db,
NanoDBIndexDefinition<T>[] indexDefinitions) |
| Modifier and Type | Method and Description |
|---|---|
long |
add(T a) |
void |
close() |
NStream<T> |
findByIndex(String indexName,
Object value) |
<T> NStream<T> |
findIndexValues(String indexName) |
void |
flush() |
T |
get(long position) |
long |
getFileLength() |
static int |
getUTFLength(String s) |
Iterable<T> |
items() |
Iterator<T> |
iterator() |
NStream<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 NanoDBTableStoreFile(Class<T> rowType, File dir, String tableName, NanoDBSerializer<T> serializer, NanoDB db, NanoDBIndexDefinition<T>[] indexDefinitions)
public static int getUTFLength(String s)
public T get(long position)
get in interface NanoDBTableStore<T>public long add(T a)
add in interface NanoDBTableStore<T>public void flush()
flush in interface NanoDBTableStore<T>public void close()
close in interface AutoCloseableclose in interface NanoDBTableStore<T>public NStream<T> stream()
stream in interface NanoDBTableStore<T>public Iterable<T> items()
items in interface NanoDBTableStore<T>public void updateIndices(T a, long objectId)
updateIndices in interface NanoDBTableStore<T>public NStream<T> findByIndex(String indexName, Object value)
findByIndex in interface NanoDBTableStore<T>public <T> NStream<T> findIndexValues(String indexName)
findIndexValues in interface NanoDBTableStore<T>public long getFileLength()
getFileLength in interface NanoDBTableStore<T>Copyright © 2026 vpc open source initiative. All rights reserved.