@API.Internal public class MapRDBTableImplHelper extends Object
| Constructor and Description |
|---|
MapRDBTableImplHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Map<Integer,List<String>> |
condFieldPathMapToCondFieldPathStrMap(Map<Integer,? extends Set<org.ojai.FieldPath>> inMap) |
static void |
doDeletes(org.ojai.FieldPath condFP,
org.ojai.Document doc,
String... paths) |
static org.ojai.Document |
doGet(MapRDBTableImpl table,
ByteBuffer id,
boolean excludeId) |
static org.ojai.Document |
doGet(MapRDBTableImpl table,
ByteBuffer id,
boolean excludeId,
String... paths) |
static org.ojai.Document |
doGet(MapRDBTableImpl table,
ByteBuffer id,
org.ojai.store.QueryCondition c,
boolean excludeId) |
static org.ojai.Document |
doGet(MapRDBTableImpl table,
ByteBuffer id,
org.ojai.store.QueryCondition c,
boolean excludeId,
String... paths) |
static byte[] |
fieldPathsToSerRowConstraint(Map<Integer,List<String>> fieldsMap) |
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 Map<Integer,List<String>> |
getPerFamPaths(Map<org.ojai.FieldPath,Integer> pathCFidMap,
boolean excludeEmbeddedFamilies,
String... paths) |
static void |
insertOrReplace(MapRDBTableImpl table,
ByteBuffer id,
SerializedFamilyInfo[] info) |
static Map<Integer,List<String>> |
mergeFieldPathList(Map<Integer,List<String>> map1,
Map<Integer,List<String>> map2) |
static com.mapr.db.impl.MapRDBTableImplHelper.CondAndProjPaths |
setPaths(org.ojai.store.QueryCondition 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,
org.ojai.store.QueryCondition 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 Map<Integer,List<String>> getPerFamPaths(Map<org.ojai.FieldPath,Integer> pathCFidMap, boolean excludeEmbeddedFamilies, String... paths)
public static com.mapr.fs.jni.MapRRowConstraint toRowConstraint(MapRDBTableImpl table, String... paths) throws DBException
DBExceptionpublic static org.ojai.Document doGet(MapRDBTableImpl table, ByteBuffer id, boolean excludeId) throws DBException
DBExceptionpublic static org.ojai.Document doGet(MapRDBTableImpl table, ByteBuffer id, boolean excludeId, String... paths) throws DBException
DBExceptionpublic static org.ojai.Document doGet(MapRDBTableImpl table, ByteBuffer id, org.ojai.store.QueryCondition c, boolean excludeId) throws DBException
DBExceptionpublic static void doDeletes(org.ojai.FieldPath condFP,
org.ojai.Document doc,
String... paths)
public static com.mapr.db.impl.MapRDBTableImplHelper.CondAndProjPaths setPaths(org.ojai.store.QueryCondition c,
String[] projPaths,
com.mapr.db.impl.MapRDBTableImplHelper.CondAndProjPaths ret)
public static org.ojai.Document doGet(MapRDBTableImpl table, ByteBuffer id, org.ojai.store.QueryCondition 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, org.ojai.store.QueryCondition 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)
public static List<String> getColumnFamiliesList(String columnSpec)
columnSpec - public static Map<Integer,List<String>> condFieldPathMapToCondFieldPathStrMap(Map<Integer,? extends Set<org.ojai.FieldPath>> inMap)
public static Map<Integer,List<String>> mergeFieldPathList(Map<Integer,List<String>> map1, Map<Integer,List<String>> map2)
Copyright © 2016 Mapr Technologies, Inc.. All rights reserved.