public class RemoteTableQuery extends Object implements TableQuery
TableQuery
to lookup data from remote service.Constructor and Description |
---|
RemoteTableQuery(Table table) |
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
cancel() |
void |
close() |
InternalRowSerializer |
createValueSerializer() |
static boolean |
isRemoteServiceAvailable(FileStoreTable table) |
InternalRow |
lookup(BinaryRow partition,
int bucket,
InternalRow key) |
RemoteTableQuery |
withValueProjection(int[] projection) |
RemoteTableQuery |
withValueProjection(int[][] projection) |
public RemoteTableQuery(Table table)
public static boolean isRemoteServiceAvailable(FileStoreTable table)
@Nullable public InternalRow lookup(BinaryRow partition, int bucket, InternalRow key) throws IOException
lookup
in interface TableQuery
IOException
public RemoteTableQuery withValueProjection(int[] projection)
withValueProjection
in interface TableQuery
public RemoteTableQuery withValueProjection(int[][] projection)
withValueProjection
in interface TableQuery
public InternalRowSerializer createValueSerializer()
createValueSerializer
in interface TableQuery
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
@VisibleForTesting public CompletableFuture<Void> cancel()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.