public class ServerCacheClient extends Object
Modifier and Type | Class and Description |
---|---|
class |
ServerCacheClient.ServerCache
Client-side representation of a server cache.
|
Modifier and Type | Field and Description |
---|---|
static int |
UUID_LENGTH |
Constructor and Description |
---|
ServerCacheClient(PhoenixConnection connection)
Construct client used to create a serialized cached snapshot of a table and send it to each region server
for caching during hash join processing.
|
Modifier and Type | Method and Description |
---|---|
ServerCacheClient.ServerCache |
addServerCache(ScanRanges keyRanges,
ImmutableBytesWritable cachePtr,
ServerCachingProtocol.ServerCacheFactory cacheFactory,
TableRef cacheUsingTableRef) |
static byte[] |
generateId()
Create an ID to keep the cached information across other operations independent.
|
PhoenixConnection |
getConnection() |
static String |
idToString(byte[] uuid) |
public static final int UUID_LENGTH
public ServerCacheClient(PhoenixConnection connection)
connection
- the client connection
TODO: instead of minMaxKeyRange, have an interface for iterating through ranges as we may be sending to
servers when we don't have to if the min is in first region and max is in last region, especially for point queries.public PhoenixConnection getConnection()
public ServerCacheClient.ServerCache addServerCache(ScanRanges keyRanges, ImmutableBytesWritable cachePtr, ServerCachingProtocol.ServerCacheFactory cacheFactory, TableRef cacheUsingTableRef) throws SQLException
SQLException
public static byte[] generateId()
public static String idToString(byte[] uuid)
Copyright © 2015 Apache Software Foundation. All Rights Reserved.