public class SecondaryIndexLookupTable extends PrimaryKeyLookupTable
LookupTable
for primary key table which provides lookup by secondary key.FullCacheLookupTable.Context, FullCacheLookupTable.TableBulkLoader
lruCacheSize, primaryKeyRow, tableState
appendUdsFieldNumber, context, lock, projectedType, refreshAsync, stateFactory, userDefinedSeqComparator
Constructor and Description |
---|
SecondaryIndexLookupTable(FullCacheLookupTable.Context context,
long lruCacheSize) |
Modifier and Type | Method and Description |
---|---|
void |
bulkLoadWritePlus(byte[] key,
byte[] value) |
List<InternalRow> |
innerGet(InternalRow key) |
void |
open() |
protected void |
refreshRow(InternalRow row,
Predicate predicate) |
createBulkLoader, createTableState, toKeyBytes, toValueBytes
bootstrap, close, get, openStateFactory, projectedPredicate, refresh, refresh, specificPartitionFilter
public SecondaryIndexLookupTable(FullCacheLookupTable.Context context, long lruCacheSize)
public void open() throws Exception
open
in interface LookupTable
open
in class PrimaryKeyLookupTable
Exception
public List<InternalRow> innerGet(InternalRow key) throws IOException
innerGet
in class PrimaryKeyLookupTable
IOException
protected void refreshRow(InternalRow row, Predicate predicate) throws IOException
refreshRow
in class PrimaryKeyLookupTable
IOException
public void bulkLoadWritePlus(byte[] key, byte[] value) throws IOException
bulkLoadWritePlus
in class PrimaryKeyLookupTable
IOException
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.