@Override public Object[] scanRowyKeys(FilterList filterList, String tableName, String columnFamilyName, String columnName, final Class rowKeyClazz) throws IOException { HTableInterface hTable = null; hTable = gethTable(tableName); return hbaseReader.scanRowKeys(hTable, filterList, columnFamilyName, columnName, rowKeyClazz); }
List<HBaseData> results = hbaseReader.LoadData(hTable, joinTableName, rowKey, getFilter(joinTableName));
@Override public List readData(String tableName, EntityMetadata m, final Object rowKey, byte[] startRow, byte[] endRow, List<Map<String, Object>> columnsToOutput, FilterList filterList) throws IOException { Table hTable = gethTable(tableName); filterList = getExtPropertyFilters(m, filterList); boolean isFindKeyOnly = HBaseUtils.isFindKeyOnly(m, columnsToOutput); filterList = onFindKeyOnly(filterList, isFindKeyOnly); List<HBaseDataWrapper> results = hbaseReader.loadData(hTable, rowKey, startRow, endRow, null, filterList, !isFindKeyOnly ? columnsToOutput : new ArrayList<Map<String, Object>>()); return onRead(m, columnsToOutput, hTable, results); }
@Override public List readDataByRange(String tableName, Class clazz, EntityMetadata m, byte[] startRow, byte[] endRow, String[] columns, FilterList f) throws IOException { List output = new ArrayList(); HTableInterface hTable = null; Object entity = null; List<String> relationNames = m.getRelationNames(); Filter filter = getFilter(m.getTableName()); if (filter != null) { if (f == null) { f = new FilterList(); } f.addFilter(filter); } // Load raw data from HBase hTable = gethTable(tableName); List<HBaseData> results = hbaseReader.loadAll(hTable, f, startRow, endRow, m.getTableName(), null, columns); output = onRead(tableName, clazz, m, output, hTable, entity, relationNames, results); return output; }
List<HBaseData> results = hbaseReader.loadAll(gethTable(tableName), f, null, null, m.getTableName(), isCollection ? qualifier : null, null); if (results != null)
@Override public Object[] scanRowyKeys(FilterList filterList, String tableName, String columnFamilyName, String columnName, final Class rowKeyClazz) throws IOException { Table hTable = gethTable(tableName); return hbaseReader.scanRowKeys(hTable, filterList, columnFamilyName, columnName, rowKeyClazz); }
@Override public List readDataByRange(String tableName, Class clazz, EntityMetadata m, byte[] startRow, byte[] endRow, String[] columns, FilterList f) throws IOException { List output = new ArrayList(); HTableInterface hTable = null; Object entity = null; List<String> relationNames = m.getRelationNames(); Filter filter = getFilter(m.getTableName()); if (filter != null) { if (f == null) { f = new FilterList(); } f.addFilter(filter); } // Load raw data from HBase hTable = gethTable(tableName); List<HBaseData> results = hbaseReader.loadAll(hTable, f, startRow, endRow, m.getTableName(), null, columns); output = onRead(tableName, clazz, m, output, hTable, entity, relationNames, results); return output; }
for (String colTableName : secondaryTables) results.addAll(hbaseReader.LoadData(hTable, colTableName, rowKey, f, columns));
List<HBaseDataWrapper> results = hbaseReader.loadData(hTable, rowKey, null, null, joinTableName, getFilter(joinTableName), null); if (results != null && !results.isEmpty())
@Override public Object[] scanRowyKeys(FilterList filterList, String tableName, String columnFamilyName, String columnName, final Class rowKeyClazz) throws IOException { HTableInterface hTable = null; hTable = gethTable(tableName); return hbaseReader.scanRowKeys(hTable, filterList, columnFamilyName, columnName, rowKeyClazz); }
@Override public List readDataByRange(String tableName, Class clazz, EntityMetadata m, byte[] startRow, byte[] endRow, String[] columns, FilterList f) throws IOException { List output = new ArrayList(); HTableInterface hTable = null; Object entity = null; List<String> relationNames = m.getRelationNames(); Filter filter = getFilter(m.getTableName()); if (filter != null) { if (f == null) { f = new FilterList(); } f.addFilter(filter); } // Load raw data from HBase hTable = gethTable(tableName); List<HBaseData> results = hbaseReader.loadAll(hTable, f, startRow, endRow, m.getTableName(), null, columns); output = onRead(tableName, clazz, m, output, hTable, entity, relationNames, results); return output; }
List<HBaseData> results = hbaseReader.LoadData(hTable, joinTableName, rowKey, getFilter(joinTableName));
@Override public Object[] scanRowyKeys(FilterList filterList, String tableName, String columnFamilyName, String columnName, final Class rowKeyClazz) throws IOException { HTableInterface hTable = null; hTable = gethTable(tableName); return hbaseReader.scanRowKeys(hTable, filterList, columnFamilyName, columnName, rowKeyClazz); }
List<HBaseData> results = hbaseReader.loadAll(gethTable(tableName), f, null, null, m.getTableName(), isCollection ? qualifier : null, null); if (results != null)
List<HBaseData> results = hbaseReader.LoadData(hTable, joinTableName, rowKey, getFilter(joinTableName));
List<HBaseData> results = hbaseReader.loadAll(gethTable(tableName), f, null, null, m.getTableName(), isCollection ? qualifier : null, null); if (results != null)
for (String colTableName : secondaryTables) results.addAll(hbaseReader.LoadData(hTable, colTableName, rowKey, f, columns));
for (String colTableName : secondaryTables) results.addAll(hbaseReader.LoadData(hTable, colTableName, rowKey, f, columns));