public class MapRDBTableCache extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FORMAT_MAPRDB_JSON_TABLE_CACHE_ENABLED |
static String |
FORMAT_MAPRDB_JSON_TABLE_CACHE_SIZE |
static String |
FORMAT_MAPRDB_JSON_TABLE_CACHE_TIMEOUT |
Constructor and Description |
---|
MapRDBTableCache(DrillConfig config) |
Modifier and Type | Method and Description |
---|---|
void |
closeTable(com.mapr.db.Table table)
closeTable
|
com.mapr.db.Table |
getTable(org.apache.hadoop.fs.Path tablePath,
com.mapr.db.index.IndexDesc indexDesc,
String userName)
getTable given primary table path and indexDesc.
|
com.mapr.db.Table |
getTable(org.apache.hadoop.fs.Path tablePath,
String userName)
getTable given primary table path.
|
com.mapr.db.Table |
getTable(String tableName,
com.mapr.db.index.IndexDesc indexDesc,
String userName)
getTable given primary table name and indexDesc.
|
com.mapr.db.Table |
getTable(String tableName,
String userName)
getTable given primary table name.
|
public static final String FORMAT_MAPRDB_JSON_TABLE_CACHE_ENABLED
public static final String FORMAT_MAPRDB_JSON_TABLE_CACHE_SIZE
public static final String FORMAT_MAPRDB_JSON_TABLE_CACHE_TIMEOUT
public MapRDBTableCache(DrillConfig config)
public com.mapr.db.Table getTable(org.apache.hadoop.fs.Path tablePath, com.mapr.db.index.IndexDesc indexDesc, String userName) throws DrillRuntimeException
tablePath
- primary table pathindexDesc
- index table descriptorDrillRuntimeException
public com.mapr.db.Table getTable(String tableName, String userName)
tableName
- primary table pathpublic com.mapr.db.Table getTable(org.apache.hadoop.fs.Path tablePath, String userName)
tablePath
- primary table pathpublic com.mapr.db.Table getTable(String tableName, com.mapr.db.index.IndexDesc indexDesc, String userName)
tableName
- primary table nameindexDesc
- index table Descriptorpublic void closeTable(com.mapr.db.Table table)
table
- table to be closed.Copyright © 1970 The Apache Software Foundation. All rights reserved.