@API.Internal public class MapRDBTableImplHelper extends Object
| Constructor and Description |
|---|
MapRDBTableImplHelper() |
| Modifier and Type | Method and Description |
|---|---|
static DBDocument |
doGet(MapRDBTableImpl table,
ByteBuffer id,
boolean excludeId) |
static DBDocument |
doGet(MapRDBTableImpl table,
ByteBuffer id,
boolean excludeId,
String... paths) |
static DBDocument |
doGet(MapRDBTableImpl table,
ByteBuffer id,
Condition c,
boolean excludeId) |
static DBDocument |
doGet(MapRDBTableImpl table,
ByteBuffer id,
Condition c,
boolean excludeId,
String... paths) |
static com.google.common.collect.BiMap<org.ojai.FieldPath,Integer> |
getCFIdPathMap(List<com.mapr.fs.proto.Dbserver.ColumnFamilyAttr> cfAttrs) |
static List<String> |
getColumnFamiliesList(String columnSpec)
Parse the comma-separated list of families/columns passed in with
"-columns" to return a list of the column families to be copied.
|
static com.mapr.fs.proto.Dbserver.ColumnFamilyAttr |
getColumnFamilyAttr(String cfName,
String cfPath,
Integer ttl) |
static int |
getDefaultFamilyId(com.mapr.fs.MapRHTable maprTable) |
static com.mapr.fs.proto.Dbserver.SchemaFamily |
getDefaultSchemaFamily(String cfName,
Integer ttl) |
static EncodedBufFamIdInfo |
getEncBufsAndFamilyIds(SerializedFamilyInfo[] info) |
static com.mapr.fs.MapRFileSystem |
getMapRFileSystem() |
static com.mapr.fs.MapRFileSystem |
getMapRFileSystem(org.apache.hadoop.conf.Configuration config) |
static void |
getMaps(List<com.mapr.fs.proto.Dbserver.ColumnFamilyAttr> cfAttrs,
com.mapr.db.impl.MapRDBTableImplHelper.ComboMap cm) |
static void |
insertOrReplace(MapRDBTableImpl table,
ByteBuffer id,
SerializedFamilyInfo[] info) |
static com.mapr.db.impl.MapRDBTableImplHelper.CondAndProjPaths |
setPaths(Condition c,
String[] projPaths,
com.mapr.db.impl.MapRDBTableImplHelper.CondAndProjPaths ret) |
static com.google.common.collect.BiMap<org.ojai.FieldPath,Integer> |
sortByPath(Map<org.ojai.FieldPath,Integer> map) |
static com.google.common.collect.BiMap<org.ojai.FieldPath,Integer> |
sortByValue(com.google.common.collect.BiMap<org.ojai.FieldPath,Integer> map) |
static List<Map.Entry<org.ojai.FieldPath,Integer>> |
sortByValueToList(Map<org.ojai.FieldPath,Integer> map) |
static com.mapr.fs.jni.MapRPut |
toMapRPut(ByteBuffer id,
int[] famIds,
ByteBuffer[] bbuf,
byte type) |
static com.mapr.fs.jni.MapRScan |
toMapRScan(MapRDBTableImpl table) |
static com.mapr.fs.jni.MapRScan |
toMapRScan(MapRDBTableImpl table,
Condition c,
String... paths) |
static com.mapr.fs.jni.MapRScan |
toMapRScan(MapRDBTableImpl table,
String... paths) |
static com.mapr.fs.jni.MapRRowConstraint |
toRowConstraint(MapRDBTableImpl table,
String... paths) |
public static com.mapr.fs.proto.Dbserver.SchemaFamily getDefaultSchemaFamily(String cfName, Integer ttl)
public static com.mapr.fs.proto.Dbserver.ColumnFamilyAttr getColumnFamilyAttr(String cfName, String cfPath, Integer ttl)
public static int getDefaultFamilyId(com.mapr.fs.MapRHTable maprTable)
throws DBException
DBExceptionpublic static com.mapr.fs.jni.MapRRowConstraint toRowConstraint(MapRDBTableImpl table, String... paths) throws DBException
DBExceptionpublic static DBDocument doGet(MapRDBTableImpl table, ByteBuffer id, boolean excludeId) throws DBException
DBExceptionpublic static DBDocument doGet(MapRDBTableImpl table, ByteBuffer id, boolean excludeId, String... paths) throws DBException
DBExceptionpublic static DBDocument doGet(MapRDBTableImpl table, ByteBuffer id, Condition c, boolean excludeId) throws DBException
DBExceptionpublic static com.mapr.db.impl.MapRDBTableImplHelper.CondAndProjPaths setPaths(Condition c, String[] projPaths, com.mapr.db.impl.MapRDBTableImplHelper.CondAndProjPaths ret)
public static DBDocument doGet(MapRDBTableImpl table, ByteBuffer id, Condition c, boolean excludeId, String... paths) throws DBException
DBExceptionpublic static List<Map.Entry<org.ojai.FieldPath,Integer>> sortByValueToList(Map<org.ojai.FieldPath,Integer> map)
public static com.google.common.collect.BiMap<org.ojai.FieldPath,Integer> sortByPath(Map<org.ojai.FieldPath,Integer> map)
public static com.google.common.collect.BiMap<org.ojai.FieldPath,Integer> sortByValue(com.google.common.collect.BiMap<org.ojai.FieldPath,Integer> map)
public static com.mapr.fs.jni.MapRPut toMapRPut(ByteBuffer id, int[] famIds, ByteBuffer[] bbuf, byte type)
public static void getMaps(List<com.mapr.fs.proto.Dbserver.ColumnFamilyAttr> cfAttrs, com.mapr.db.impl.MapRDBTableImplHelper.ComboMap cm) throws TableNotFoundException
TableNotFoundExceptionpublic static com.google.common.collect.BiMap<org.ojai.FieldPath,Integer> getCFIdPathMap(List<com.mapr.fs.proto.Dbserver.ColumnFamilyAttr> cfAttrs) throws TableNotFoundException
TableNotFoundExceptionpublic static EncodedBufFamIdInfo getEncBufsAndFamilyIds(SerializedFamilyInfo[] info)
public static void insertOrReplace(MapRDBTableImpl table, ByteBuffer id, SerializedFamilyInfo[] info) throws DBException
DBExceptionpublic static com.mapr.fs.jni.MapRScan toMapRScan(MapRDBTableImpl table) throws DBException
DBExceptionpublic static com.mapr.fs.jni.MapRScan toMapRScan(MapRDBTableImpl table, String... paths) throws DBException
DBExceptionpublic static com.mapr.fs.jni.MapRScan toMapRScan(MapRDBTableImpl table, Condition c, String... paths) throws DBException
DBExceptionpublic static com.mapr.fs.MapRFileSystem getMapRFileSystem()
public static com.mapr.fs.MapRFileSystem getMapRFileSystem(org.apache.hadoop.conf.Configuration config)
Copyright © 2015 Mapr Technologies, Inc.. All rights reserved.