public class PrimaryKeyLookupTable extends FullCacheLookupTable
LookupTable for primary key table.FullCacheLookupTable.Context, FullCacheLookupTable.TableBulkLoader| Modifier and Type | Field and Description |
|---|---|
protected long |
lruCacheSize |
protected KeyProjectedRow |
primaryKeyRow |
protected RocksDBValueState<InternalRow,InternalRow> |
tableState |
appendUdsFieldNumber, context, lock, projectedType, refreshAsync, stateFactory, userDefinedSeqComparator| Constructor and Description |
|---|
PrimaryKeyLookupTable(FullCacheLookupTable.Context context,
long lruCacheSize,
List<String> joinKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
bulkLoadWritePlus(byte[] key,
byte[] value) |
FullCacheLookupTable.TableBulkLoader |
createBulkLoader() |
protected void |
createTableState() |
List<InternalRow> |
innerGet(InternalRow key) |
void |
open() |
protected void |
refreshRow(InternalRow row,
Predicate predicate) |
byte[] |
toKeyBytes(InternalRow row) |
byte[] |
toValueBytes(InternalRow row) |
bootstrap, close, get, getRefreshFuture, init, projectedPredicate, refresh, refresh, specificPartitionFilter, specifyCacheRowFilterprotected final long lruCacheSize
protected final KeyProjectedRow primaryKeyRow
protected RocksDBValueState<InternalRow,InternalRow> tableState
public PrimaryKeyLookupTable(FullCacheLookupTable.Context context, long lruCacheSize, List<String> joinKey)
protected void createTableState()
throws IOException
IOExceptionpublic List<InternalRow> innerGet(InternalRow key) throws IOException
innerGet in class FullCacheLookupTableIOExceptionprotected void refreshRow(InternalRow row, Predicate predicate) throws IOException
refreshRow in class FullCacheLookupTableIOExceptionpublic byte[] toKeyBytes(InternalRow row) throws IOException
toKeyBytes in class FullCacheLookupTableIOExceptionpublic byte[] toValueBytes(InternalRow row) throws IOException
toValueBytes in class FullCacheLookupTableIOExceptionpublic FullCacheLookupTable.TableBulkLoader createBulkLoader()
createBulkLoader in class FullCacheLookupTablepublic void bulkLoadWritePlus(byte[] key,
byte[] value)
throws IOException
IOExceptionCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.