/** * Get rows specified by their row keys. * * @param keyspace * @param columnFamilyName * @param rowKeys */ @SuppressWarnings("unchecked") public HystrixCassandraGetRowsByKeys(Keyspace keyspace, String columnFamilyName, RowKeyType... rowKeys) { this.keyspace = keyspace; this.columnFamily = getColumnFamilyViaColumnName(columnFamilyName, rowKeys[0]); this.rowKeys = rowKeys; this.startKey = null; this.endKey = null; this.startToken = null; this.endToken = null; this.maxRows = -1; }
public Rows<String, String> getByFilterIds(List<String> filterIds) { String[] list = new String[filterIds.size()]; for (int i = 0; i < filterIds.size(); i++) { list[i] = filterIds.get(i); } return new HystrixCassandraGetRowsByKeys<String>(keyspace, COLUMN_FAMILY, list).execute(); } }
@Override public Rows<String, String> getByFilterIds(List<String> filterIds) { String[] list = new String[filterIds.size()]; for (int i = 0; i < filterIds.size(); i++) { list[i] = filterIds.get(i); } return new HystrixCassandraGetRowsByKeys<String>(keyspace, COLUMN_FAMILY, list).execute(); } }
/** * Get rows specified by their row keys. * * @param keyspace * @param columnFamilyName * @param rowKeys */ @SuppressWarnings("unchecked") public HystrixCassandraGetRowsByKeys(Keyspace keyspace, String columnFamilyName, RowKeyType... rowKeys) { this.keyspace = keyspace; this.columnFamily = getColumnFamilyViaColumnName(columnFamilyName, rowKeys[0]); this.rowKeys = rowKeys; this.startKey = null; this.endKey = null; this.startToken = null; this.endToken = null; this.maxRows = -1; }
/** * Get a range of rows. * * @param keyspace * @param columnFamilyName * @param startKey * @param endKey * @param startToken * @param endToken * @param maxRows */ @SuppressWarnings("unchecked") public HystrixCassandraGetRowsByKeys(Keyspace keyspace, String columnFamilyName, RowKeyType startKey, RowKeyType endKey, String startToken, String endToken, int maxRows) { this.keyspace = keyspace; this.columnFamily = getColumnFamilyViaColumnName(columnFamilyName, startKey); this.rowKeys = null; this.startKey = startKey; this.endKey = endKey; this.startToken = startToken; this.endToken = endToken; this.maxRows = maxRows; }
/** * Get a range of rows. * * @param keyspace * @param columnFamilyName * @param startKey * @param endKey * @param startToken * @param endToken * @param maxRows */ @SuppressWarnings("unchecked") public HystrixCassandraGetRowsByKeys(Keyspace keyspace, String columnFamilyName, RowKeyType startKey, RowKeyType endKey, String startToken, String endToken, int maxRows) { this.keyspace = keyspace; this.columnFamily = getColumnFamilyViaColumnName(columnFamilyName, startKey); this.rowKeys = null; this.startKey = startKey; this.endKey = endKey; this.startToken = startToken; this.endToken = endToken; this.maxRows = maxRows; }