@API.Internal
public class MapRDBTableImplHelper
extends java.lang.Object
| Constructor and Description |
|---|
MapRDBTableImplHelper() |
| Modifier and Type | Method and Description |
|---|---|
static org.ojai.FieldPath |
cfQualifierToJsonPath(java.lang.String cf,
java.lang.String qual,
java.util.List<com.mapr.fs.proto.Dbserver.ColumnFamilyAttr> cfAttrs) |
static java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> |
condFieldPathMapToCondFieldPathStrMap(java.util.Map<java.lang.Integer,? extends java.util.Set<org.ojai.FieldPath>> inMap) |
static org.ojai.Document |
doGet(MapRDBTableImpl table,
java.nio.ByteBuffer id,
boolean excludeId) |
static org.ojai.Document |
doGet(MapRDBTableImpl table,
java.nio.ByteBuffer id,
boolean excludeId,
java.lang.String... paths) |
static org.ojai.Document |
doGet(MapRDBTableImpl table,
java.nio.ByteBuffer id,
org.ojai.store.QueryCondition c,
boolean excludeId) |
static org.ojai.Document |
doGet(MapRDBTableImpl table,
java.nio.ByteBuffer id,
org.ojai.store.QueryCondition c,
boolean excludeId,
java.lang.String... paths) |
static byte[] |
fieldPathsToSerRowConstraint(java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> fieldsMap) |
static com.google.common.collect.BiMap<org.ojai.FieldPath,java.lang.Integer> |
getCFIdPathMap(java.util.List<com.mapr.fs.proto.Dbserver.ColumnFamilyAttr> cfAttrs) |
static java.util.List<java.lang.String> |
getColumnFamiliesList(java.lang.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(java.lang.String cfName,
java.lang.String cfPath,
java.lang.Integer ttl) |
static int |
getDefaultFamilyId(com.mapr.fs.MapRHTable maprTable) |
static com.mapr.fs.proto.Dbserver.SchemaFamily |
getDefaultSchemaFamily(java.lang.String cfName,
java.lang.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(java.util.List<com.mapr.fs.proto.Dbserver.ColumnFamilyAttr> cfAttrs,
com.mapr.db.impl.MapRDBTableImplHelper.ComboMap cm) |
static java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> |
getMultipleCFQualifiers(java.util.Map<org.ojai.FieldPath,java.lang.Integer> pathCFIdMap,
boolean excludeEmbeddedFamilies,
java.lang.String... paths) |
static java.util.Map<java.lang.Integer,org.ojai.FieldPath> |
getOneCFQualifier(org.ojai.FieldPath field,
java.util.Map<org.ojai.FieldPath,java.lang.Integer> pathIdMap,
boolean excludeEmbeddedCfs) |
static void |
insertOrReplace(MapRDBTableImpl table,
java.nio.ByteBuffer id,
SerializedFamilyInfo[] info) |
static java.lang.String |
jsonPathToCfQualifier(java.lang.String jsonPath,
java.util.List<com.mapr.fs.proto.Dbserver.ColumnFamilyAttr> cfAttrs) |
static java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> |
mergeFieldPathList(java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> map1,
java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> map2) |
static com.mapr.db.impl.MapRDBTableImplHelper.CondAndProjPaths |
setPaths(org.ojai.store.QueryCondition c,
java.lang.String[] projPaths,
com.mapr.db.impl.MapRDBTableImplHelper.CondAndProjPaths ret) |
static com.google.common.collect.BiMap<org.ojai.FieldPath,java.lang.Integer> |
sortByPath(java.util.Map<org.ojai.FieldPath,java.lang.Integer> map) |
static com.google.common.collect.BiMap<org.ojai.FieldPath,java.lang.Integer> |
sortByValue(com.google.common.collect.BiMap<org.ojai.FieldPath,java.lang.Integer> map) |
static java.util.List<java.util.Map.Entry<org.ojai.FieldPath,java.lang.Integer>> |
sortByValueToList(java.util.Map<org.ojai.FieldPath,java.lang.Integer> map) |
static com.mapr.fs.jni.MapRPut |
toMapRPut(java.nio.ByteBuffer id,
int[] famIds,
java.nio.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,
java.lang.String... paths) |
static com.mapr.fs.jni.MapRScan |
toMapRScan(MapRDBTableImpl table,
java.lang.String... paths) |
static com.mapr.fs.jni.MapRRowConstraint |
toRowConstraint(MapRDBTableImpl table,
java.lang.String... paths) |
public static com.mapr.fs.proto.Dbserver.SchemaFamily getDefaultSchemaFamily(java.lang.String cfName,
java.lang.Integer ttl)
public static com.mapr.fs.proto.Dbserver.ColumnFamilyAttr getColumnFamilyAttr(java.lang.String cfName,
java.lang.String cfPath,
java.lang.Integer ttl)
public static int getDefaultFamilyId(com.mapr.fs.MapRHTable maprTable)
throws DBException
DBExceptionpublic static org.ojai.FieldPath cfQualifierToJsonPath(java.lang.String cf,
java.lang.String qual,
java.util.List<com.mapr.fs.proto.Dbserver.ColumnFamilyAttr> cfAttrs)
throws java.lang.NullPointerException,
java.lang.IllegalArgumentException
java.lang.NullPointerExceptionjava.lang.IllegalArgumentExceptionpublic static java.lang.String jsonPathToCfQualifier(java.lang.String jsonPath,
java.util.List<com.mapr.fs.proto.Dbserver.ColumnFamilyAttr> cfAttrs)
public static java.util.Map<java.lang.Integer,org.ojai.FieldPath> getOneCFQualifier(org.ojai.FieldPath field,
java.util.Map<org.ojai.FieldPath,java.lang.Integer> pathIdMap,
boolean excludeEmbeddedCfs)
public static java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> getMultipleCFQualifiers(java.util.Map<org.ojai.FieldPath,java.lang.Integer> pathCFIdMap,
boolean excludeEmbeddedFamilies,
java.lang.String... paths)
public static com.mapr.fs.jni.MapRRowConstraint toRowConstraint(MapRDBTableImpl table, java.lang.String... paths) throws DBException
DBExceptionpublic static org.ojai.Document doGet(MapRDBTableImpl table, java.nio.ByteBuffer id, boolean excludeId) throws DBException
DBExceptionpublic static org.ojai.Document doGet(MapRDBTableImpl table, java.nio.ByteBuffer id, boolean excludeId, java.lang.String... paths) throws DBException
DBExceptionpublic static org.ojai.Document doGet(MapRDBTableImpl table, java.nio.ByteBuffer id, org.ojai.store.QueryCondition c, boolean excludeId) throws DBException
DBExceptionpublic static com.mapr.db.impl.MapRDBTableImplHelper.CondAndProjPaths setPaths(org.ojai.store.QueryCondition c,
java.lang.String[] projPaths,
com.mapr.db.impl.MapRDBTableImplHelper.CondAndProjPaths ret)
public static org.ojai.Document doGet(MapRDBTableImpl table, java.nio.ByteBuffer id, org.ojai.store.QueryCondition c, boolean excludeId, java.lang.String... paths) throws DBException
DBExceptionpublic static java.util.List<java.util.Map.Entry<org.ojai.FieldPath,java.lang.Integer>> sortByValueToList(java.util.Map<org.ojai.FieldPath,java.lang.Integer> map)
public static com.google.common.collect.BiMap<org.ojai.FieldPath,java.lang.Integer> sortByPath(java.util.Map<org.ojai.FieldPath,java.lang.Integer> map)
public static com.google.common.collect.BiMap<org.ojai.FieldPath,java.lang.Integer> sortByValue(com.google.common.collect.BiMap<org.ojai.FieldPath,java.lang.Integer> map)
public static com.mapr.fs.jni.MapRPut toMapRPut(java.nio.ByteBuffer id,
int[] famIds,
java.nio.ByteBuffer[] bbuf,
byte type)
public static void getMaps(java.util.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,java.lang.Integer> getCFIdPathMap(java.util.List<com.mapr.fs.proto.Dbserver.ColumnFamilyAttr> cfAttrs)
throws TableNotFoundException
TableNotFoundExceptionpublic static EncodedBufFamIdInfo getEncBufsAndFamilyIds(SerializedFamilyInfo[] info)
public static void insertOrReplace(MapRDBTableImpl table, java.nio.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, java.lang.String... paths) throws DBException
DBExceptionpublic static com.mapr.fs.jni.MapRScan toMapRScan(MapRDBTableImpl table, org.ojai.store.QueryCondition c, java.lang.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 java.util.List<java.lang.String> getColumnFamiliesList(java.lang.String columnSpec)
columnSpec - public static java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> condFieldPathMapToCondFieldPathStrMap(java.util.Map<java.lang.Integer,? extends java.util.Set<org.ojai.FieldPath>> inMap)
public static java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> mergeFieldPathList(java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> map1,
java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> map2)
public static byte[] fieldPathsToSerRowConstraint(java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> fieldsMap)