@Override public Result[] get(List<Get> gets) throws IOException { byte[][] rows = new byte[gets.size()][]; int maxVersions = 1; int count = 0; for(Get g:gets) { if ( count == 0 ) { maxVersions = g.getMaxVersions(); } else if (g.getMaxVersions() != maxVersions) { LOG.warn("MaxVersions on Gets do not match, using the first in the list ("+maxVersions+")"); } if (g.getFilter() != null) { LOG.warn("filters not supported on gets"); } rows[count] = g.getRow(); count ++; } String spec = buildMultiRowSpec(rows, maxVersions); return getResults(spec); }
public Result[] get(List<Get> gets) throws IOException { byte[][] rows = new byte[gets.size()][]; int maxVersions = 1; int count = 0; for (Get g : gets) { if (count == 0) { maxVersions = g.getMaxVersions(); } else if (g.getMaxVersions() != maxVersions) { LOG.warn("MaxVersions on Gets do not match, using the first in the list (" + maxVersions +")"); } if (g.getFilter() != null) { LOG.warn("filters not supported on gets"); } rows[count] = g.getRow(); count++; } String spec = buildMultiRowSpec(rows, maxVersions); return getResults(spec); }
@Override public Result[] get(List<Get> gets) throws IOException { byte[][] rows = new byte[gets.size()][]; int maxVersions = 1; int count = 0; for(Get g:gets) { if ( count == 0 ) { maxVersions = g.getMaxVersions(); } else if (g.getMaxVersions() != maxVersions) { LOG.warn("MaxVersions on Gets do not match, using the first in the list ("+maxVersions+")"); } if (g.getFilter() != null) { LOG.warn("filters not supported on gets"); } rows[count] = g.getRow(); count ++; } String spec = buildMultiRowSpec(rows, maxVersions); return getResults(spec); }
@Override public Result[] get(List<Get> gets) throws IOException { byte[][] rows = new byte[gets.size()][]; int maxVersions = 1; int count = 0; for(Get g:gets) { if ( count == 0 ) { maxVersions = g.getMaxVersions(); } else if (g.getMaxVersions() != maxVersions) { LOG.warn("MaxVersions on Gets do not match, using the first in the list ("+maxVersions+")"); } if (g.getFilter() != null) { LOG.warn("filters not supported on gets"); } rows[count] = g.getRow(); count ++; } String spec = buildMultiRowSpec(rows, maxVersions); return getResults(spec); }