public class TwoColumnTable extends Table
| Constructor and Description |
|---|
TwoColumnTable(@NotNull PersistentStoreTransaction txn,
@NotNull java.lang.String name,
@NotNull jetbrains.exodus.env.StoreConfig config) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeCached() |
boolean |
contains(@NotNull jetbrains.exodus.env.Transaction txn,
@NotNull jetbrains.exodus.ByteIterable first,
@NotNull jetbrains.exodus.ByteIterable second) |
boolean |
contains2(@NotNull jetbrains.exodus.env.Transaction txn,
@NotNull jetbrains.exodus.ByteIterable first,
@NotNull jetbrains.exodus.ByteIterable second) |
boolean |
delete(@NotNull jetbrains.exodus.env.Transaction txn,
@NotNull jetbrains.exodus.ByteIterable first,
@NotNull jetbrains.exodus.ByteIterable second) |
@Nullable jetbrains.exodus.ByteIterable |
get(@NotNull jetbrains.exodus.env.Transaction txn,
@NotNull jetbrains.exodus.ByteIterable first)
Search for the first entry in the first database.
|
@Nullable jetbrains.exodus.ByteIterable |
get2(@NotNull jetbrains.exodus.env.Transaction txn,
@NotNull jetbrains.exodus.ByteIterable second)
Search for the second entry in the second database.
|
@NotNull jetbrains.exodus.env.Cursor |
getFirstIndexCursor(@NotNull jetbrains.exodus.env.Transaction txn) |
long |
getPrimaryCount(@NotNull jetbrains.exodus.env.Transaction txn) |
long |
getSecondaryCount(@NotNull jetbrains.exodus.env.Transaction txn) |
@NotNull jetbrains.exodus.env.Cursor |
getSecondIndexCursor(@NotNull jetbrains.exodus.env.Transaction txn) |
boolean |
put(@NotNull jetbrains.exodus.env.Transaction txn,
@NotNull jetbrains.exodus.ByteIterable first,
@NotNull jetbrains.exodus.ByteIterable second) |
static java.lang.String |
secondColumnDatabaseName(@NotNull java.lang.String name) |
void |
truncateFirst(@NotNull jetbrains.exodus.env.Transaction txn) |
checkStatuspublic TwoColumnTable(@NotNull
@NotNull PersistentStoreTransaction txn,
@NotNull
@NotNull java.lang.String name,
@NotNull
@NotNull jetbrains.exodus.env.StoreConfig config)
public static java.lang.String secondColumnDatabaseName(@NotNull
@NotNull java.lang.String name)
@Nullable
public @Nullable jetbrains.exodus.ByteIterable get(@NotNull
@NotNull jetbrains.exodus.env.Transaction txn,
@NotNull
@NotNull jetbrains.exodus.ByteIterable first)
txn - enclosing transactionfirst - first key.@Nullable
public @Nullable jetbrains.exodus.ByteIterable get2(@NotNull
@NotNull jetbrains.exodus.env.Transaction txn,
@NotNull
@NotNull jetbrains.exodus.ByteIterable second)
second - second key (value for first).public boolean contains(@NotNull
@NotNull jetbrains.exodus.env.Transaction txn,
@NotNull
@NotNull jetbrains.exodus.ByteIterable first,
@NotNull
@NotNull jetbrains.exodus.ByteIterable second)
public boolean contains2(@NotNull
@NotNull jetbrains.exodus.env.Transaction txn,
@NotNull
@NotNull jetbrains.exodus.ByteIterable first,
@NotNull
@NotNull jetbrains.exodus.ByteIterable second)
public boolean put(@NotNull
@NotNull jetbrains.exodus.env.Transaction txn,
@NotNull
@NotNull jetbrains.exodus.ByteIterable first,
@NotNull
@NotNull jetbrains.exodus.ByteIterable second)
public boolean delete(@NotNull
@NotNull jetbrains.exodus.env.Transaction txn,
@NotNull
@NotNull jetbrains.exodus.ByteIterable first,
@NotNull
@NotNull jetbrains.exodus.ByteIterable second)
@NotNull
public @NotNull jetbrains.exodus.env.Cursor getFirstIndexCursor(@NotNull
@NotNull jetbrains.exodus.env.Transaction txn)
@NotNull
public @NotNull jetbrains.exodus.env.Cursor getSecondIndexCursor(@NotNull
@NotNull jetbrains.exodus.env.Transaction txn)
public void truncateFirst(@NotNull
@NotNull jetbrains.exodus.env.Transaction txn)
public long getPrimaryCount(@NotNull
@NotNull jetbrains.exodus.env.Transaction txn)
public long getSecondaryCount(@NotNull
@NotNull jetbrains.exodus.env.Transaction txn)
public boolean canBeCached()
canBeCached in class Table