public abstract class FullCacheLookupTable extends Object implements LookupTable
| Modifier and Type | Class and Description |
|---|---|
static class |
FullCacheLookupTable.Context
Context for
LookupTable. |
static interface |
FullCacheLookupTable.TableBulkLoader
Bulk loader for the table.
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
appendUdsFieldNumber |
protected FullCacheLookupTable.Context |
context |
protected Object |
lock |
protected RowType |
projectedType |
protected boolean |
refreshAsync |
protected RocksDBStateFactory |
stateFactory |
protected FieldsComparator |
userDefinedSeqComparator |
| Constructor and Description |
|---|
FullCacheLookupTable(FullCacheLookupTable.Context context) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bootstrap() |
void |
close() |
abstract FullCacheLookupTable.TableBulkLoader |
createBulkLoader() |
List<InternalRow> |
get(InternalRow key) |
abstract List<InternalRow> |
innerGet(InternalRow key) |
protected void |
openStateFactory() |
Predicate |
projectedPredicate() |
void |
refresh() |
void |
refresh(Iterator<InternalRow> input) |
protected abstract void |
refreshRow(InternalRow row,
Predicate predicate) |
void |
specificPartitionFilter(Predicate filter) |
abstract byte[] |
toKeyBytes(InternalRow row) |
abstract byte[] |
toValueBytes(InternalRow row) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitopenprotected final Object lock
protected final FullCacheLookupTable.Context context
protected final RowType projectedType
protected final boolean refreshAsync
@Nullable protected final FieldsComparator userDefinedSeqComparator
protected final int appendUdsFieldNumber
protected RocksDBStateFactory stateFactory
public FullCacheLookupTable(FullCacheLookupTable.Context context)
public void specificPartitionFilter(Predicate filter)
specificPartitionFilter in interface LookupTablepublic void refresh()
throws Exception
refresh in interface LookupTableExceptionpublic final List<InternalRow> get(InternalRow key) throws IOException
get in interface LookupTableIOExceptionpublic void refresh(Iterator<InternalRow> input) throws IOException
IOExceptionpublic abstract List<InternalRow> innerGet(InternalRow key) throws IOException
IOExceptionprotected abstract void refreshRow(InternalRow row, Predicate predicate) throws IOException
IOExceptionpublic abstract byte[] toKeyBytes(InternalRow row) throws IOException
IOExceptionpublic abstract byte[] toValueBytes(InternalRow row) throws IOException
IOExceptionpublic abstract FullCacheLookupTable.TableBulkLoader createBulkLoader()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.