/** * Add an index update. Keeps the latest {@link Put} for a given timestamp * @param tableName * @param m */ public void addIndexUpdate(byte[] tableName, Mutation m) { // we only keep the most recent update ImmutableBytesPtr key = new ImmutableBytesPtr(tableName); Collection<Mutation> updates = map.get(key); if (updates == null) { updates = new TreeSet<Mutation>(COMPARATOR); map.put(key, updates); } if (indexMetaData.getReplayWrite() != null) { // if we're replaying mutations, we don't need to worry about out-of-order updates updates.add(m); } else { fixUpCurrentUpdates(updates, m); } }
this.columnSet.addColumn(ref); boolean requiresPriorRowState = indexMetaData.requiresPriorRowState(update); if (!toCover.isEmpty()) {
BatchMutateContext context = new BatchMutateContext(this.builder.getIndexMetaData(miniBatchOp).getClientVersion()); setBatchMutateContext(c, context); Durability durability = Durability.SKIP_WAL;
BatchMutateContext context = new BatchMutateContext(this.builder.getIndexMetaData(miniBatchOp).getClientVersion()); setBatchMutateContext(c, context); Durability durability = Durability.SKIP_WAL;
@Before public void setup() { mockIndexMetaData = Mockito.mock(IndexMetaData.class); Mockito.when(mockIndexMetaData.getReplayWrite()).thenReturn(null); }
this.columnSet.addColumn(ref); boolean requiresPriorRowState = indexMetaData.requiresPriorRowState(update); if (!toCover.isEmpty()) {
BatchMutateContext context = new BatchMutateContext(this.builder.getIndexMetaData(miniBatchOp).getClientVersion()); setBatchMutateContext(c, context); Durability durability = Durability.SKIP_WAL;
/** * Add an index update. Keeps the latest {@link Put} for a given timestamp * @param tableName * @param m */ public void addIndexUpdate(byte[] tableName, Mutation m) { // we only keep the most recent update ImmutableBytesPtr key = new ImmutableBytesPtr(tableName); Collection<Mutation> updates = map.get(key); if (updates == null) { updates = new TreeSet<Mutation>(COMPARATOR); map.put(key, updates); } if (indexMetaData.getReplayWrite() != null) { // if we're replaying mutations, we don't need to worry about out-of-order updates updates.add(m); } else { fixUpCurrentUpdates(updates, m); } }
this.columnSet.addColumn(ref); boolean requiresPriorRowState = indexMetaData.requiresPriorRowState(update); if (!toCover.isEmpty()) {
/** * Add an index update. Keeps the latest {@link Put} for a given timestamp * @param tableName * @param m */ public void addIndexUpdate(byte[] tableName, Mutation m) { // we only keep the most recent update ImmutableBytesPtr key = new ImmutableBytesPtr(tableName); Collection<Mutation> updates = map.get(key); if (updates == null) { updates = new TreeSet<Mutation>(COMPARATOR); map.put(key, updates); } if (indexMetaData.getReplayWrite() != null) { // if we're replaying mutations, we don't need to worry about out-of-order updates updates.add(m); } else { fixUpCurrentUpdates(updates, m); } }