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, openStateFactory, projectedPredicate, refresh, refresh, specificPartitionFilter
protected 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
IOException
public List<InternalRow> innerGet(InternalRow key) throws IOException
innerGet
in class FullCacheLookupTable
IOException
protected void refreshRow(InternalRow row, Predicate predicate) throws IOException
refreshRow
in class FullCacheLookupTable
IOException
public byte[] toKeyBytes(InternalRow row) throws IOException
toKeyBytes
in class FullCacheLookupTable
IOException
public byte[] toValueBytes(InternalRow row) throws IOException
toValueBytes
in class FullCacheLookupTable
IOException
public FullCacheLookupTable.TableBulkLoader createBulkLoader()
createBulkLoader
in class FullCacheLookupTable
public void bulkLoadWritePlus(byte[] key, byte[] value) throws IOException
IOException
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.