@Test(expected = IllegalArgumentException.class) public void testSanityCheck() { Mutation m = new Mutation("too big mutation"); m.put("cf", "cq1", "v"); m.estRowAndLargeValSize += (Long.MAX_VALUE / 2); m.put("cf", "cq2", "v"); }
private void put(byte[] cf, byte[] cq, byte[] cv, boolean hasts, long ts, boolean deleted, byte[] val) { put(cf, cf.length, cq, cq.length, cv, hasts, ts, deleted, val, val.length); }
Mutation implements Writable { private void put(byte[] cf, byte[] cq, byte[] cv, boolean hasts, long ts, boolean deleted, byte[] val) { put(cf, cf.length, cq, cq.length, cv, hasts, ts, deleted, val, val.length); } }
Mutation implements Writable { private void put(byte[] cf, byte[] cq, byte[] cv, boolean hasts, long ts, boolean deleted, byte[] val) { put(cf, cf.length, cq, cq.length, cv, hasts, ts, deleted, val, val.length); } Mutation(byte[] row);  Mutation(byte[] row, int initialBufferSize);  Mutation(byte[] row, int start, int length);  Mutation(byte[] row, int start, int length, int initialBufferSize);  Mutation(Text row);  Mutation(Text row, int initialBufferSize);  Mutation(CharSequence row);  Mutation(CharSequence row, int initialBufferSize);  Mutation();  Mutation(TMutation tmutation);  Mutation(Mutation m); }
Mutation implements Writable { private void put(byte[] cf, byte[] cq, byte[] cv, boolean hasts, long ts, boolean deleted, byte[] val) { put(cf, cf.length, cq, cq.length, cv, hasts, ts, deleted, val, val.length); } Mutation(byte[] row);  Mutation(byte[] row, int initialBufferSize);  Mutation(byte[] row, int start, int length);  Mutation(byte[] row, int start, int length, int initialBufferSize);  Mutation(Text row);  Mutation(Text row, int initialBufferSize);  Mutation(CharSequence row);  Mutation(CharSequence row, int initialBufferSize);  Mutation();  Mutation(TMutation tmutation);  Mutation(Mutation m); byte[] getRow(); void put(Text columnFamily, Text columnQualifier, Value value); void put(Text columnFamily, Text columnQualifier, ColumnVisibility columnVisibility,
      Value value); void put(Text columnFamily, Text columnQualifier, long timestamp, Value value); void put(Text columnFamily, Text columnQualifier, ColumnVisibility columnVisibility,
      long timestamp, Value value); void putDelete(Text columnFamily, Text columnQualifier); void putDelete(Text columnFamily, Text columnQualifier,
      ColumnVisibility columnVisibility); void putDelete(Text columnFamily, Text columnQualifier, long timestamp); void putDelete(Text columnFamily, Text columnQualifier, ColumnVisibility columnVisibility,
      long timestamp); void put(CharSequence columnFamily, CharSequence columnQualifier, Value value); void put(CharSequence columnFamily, CharSequence columnQualifier,
      ColumnVisibility columnVisibility, Value value); void put(CharSequence columnFamily, CharSequence columnQualifier, long timestamp,
      Value value); void put(CharSequence columnFamily, CharSequence columnQualifier,
      ColumnVisibility columnVisibility, long timestamp, Value value); void putDelete(CharSequence columnFamily, CharSequence columnQualifier); void putDelete(CharSequence columnFamily, CharSequence columnQualifier,
      ColumnVisibility columnVisibility); void putDelete(CharSequence columnFamily, CharSequence columnQualifier, long timestamp); void putDelete(CharSequence columnFamily, CharSequence columnQualifier,
      ColumnVisibility columnVisibility, long timestamp); void put(CharSequence columnFamily, CharSequence columnQualifier, CharSequence value); void put(CharSequence columnFamily, CharSequence columnQualifier,
      ColumnVisibility columnVisibility, CharSequence value); void put(CharSequence columnFamily, CharSequence columnQualifier, long timestamp,
      CharSequence value); void put(CharSequence columnFamily, CharSequence columnQualifier,
      ColumnVisibility columnVisibility, long timestamp, CharSequence value); void put(byte[] columnFamily, byte[] columnQualifier, byte[] value); void put(byte[] columnFamily, byte[] columnQualifier, ColumnVisibility columnVisibility,
      byte[] value); void put(byte[] columnFamily, byte[] columnQualifier, long timestamp, byte[] value); void put(byte[] columnFamily, byte[] columnQualifier, ColumnVisibility columnVisibility,
      long timestamp, byte[] value); void putDelete(byte[] columnFamily, byte[] columnQualifier); void putDelete(byte[] columnFamily, byte[] columnQualifier,
      ColumnVisibility columnVisibility); void putDelete(byte[] columnFamily, byte[] columnQualifier, long timestamp); void putDelete(byte[] columnFamily, byte[] columnQualifier,
      ColumnVisibility columnVisibility, long timestamp); FamilyOptions at(); List<ColumnUpdate> getUpdates(); long numBytes(); long estimatedMemoryUsed(); int size(); void addReplicationSource(String peer); void setReplicationSources(Set<String> sources); Set<String> getReplicationSources(); @Override void readFields(DataInput in); @Override void write(DataOutput out); @Override boolean equals(Object o); @Override int hashCode(); boolean equals(Mutation m); TMutation toThrift(); }
Mutation implements Writable { private void put(byte[] cf, byte[] cq, byte[] cv, boolean hasts, long ts, boolean deleted, byte[] val) { put(cf, cf.length, cq, cq.length, cv, hasts, ts, deleted, val, val.length); } Mutation(byte[] row);  Mutation(byte[] row, int initialBufferSize);  Mutation(byte[] row, int start, int length);  Mutation(byte[] row, int start, int length, int initialBufferSize);  Mutation(Text row);  Mutation(Text row, int initialBufferSize);  Mutation(CharSequence row);  Mutation(CharSequence row, int initialBufferSize);  Mutation();  Mutation(TMutation tmutation);  Mutation(Mutation m); byte[] getRow(); void put(Text columnFamily, Text columnQualifier, Value value); void put(Text columnFamily, Text columnQualifier, ColumnVisibility columnVisibility,
      Value value); void put(Text columnFamily, Text columnQualifier, long timestamp, Value value); void put(Text columnFamily, Text columnQualifier, ColumnVisibility columnVisibility,
      long timestamp, Value value); void putDelete(Text columnFamily, Text columnQualifier); void putDelete(Text columnFamily, Text columnQualifier,
      ColumnVisibility columnVisibility); void putDelete(Text columnFamily, Text columnQualifier, long timestamp); void putDelete(Text columnFamily, Text columnQualifier, ColumnVisibility columnVisibility,
      long timestamp); void put(CharSequence columnFamily, CharSequence columnQualifier, Value value); void put(CharSequence columnFamily, CharSequence columnQualifier,
      ColumnVisibility columnVisibility, Value value); void put(CharSequence columnFamily, CharSequence columnQualifier, long timestamp,
      Value value); void put(CharSequence columnFamily, CharSequence columnQualifier,
      ColumnVisibility columnVisibility, long timestamp, Value value); void putDelete(CharSequence columnFamily, CharSequence columnQualifier); void putDelete(CharSequence columnFamily, CharSequence columnQualifier,
      ColumnVisibility columnVisibility); void putDelete(CharSequence columnFamily, CharSequence columnQualifier, long timestamp); void putDelete(CharSequence columnFamily, CharSequence columnQualifier,
      ColumnVisibility columnVisibility, long timestamp); void put(CharSequence columnFamily, CharSequence columnQualifier, CharSequence value); void put(CharSequence columnFamily, CharSequence columnQualifier,
      ColumnVisibility columnVisibility, CharSequence value); void put(CharSequence columnFamily, CharSequence columnQualifier, long timestamp,
      CharSequence value); void put(CharSequence columnFamily, CharSequence columnQualifier,
      ColumnVisibility columnVisibility, long timestamp, CharSequence value); void put(byte[] columnFamily, byte[] columnQualifier, byte[] value); void put(byte[] columnFamily, byte[] columnQualifier, ColumnVisibility columnVisibility,
      byte[] value); void put(byte[] columnFamily, byte[] columnQualifier, long timestamp, byte[] value); void put(byte[] columnFamily, byte[] columnQualifier, ColumnVisibility columnVisibility,
      long timestamp, byte[] value); void putDelete(byte[] columnFamily, byte[] columnQualifier); void putDelete(byte[] columnFamily, byte[] columnQualifier,
      ColumnVisibility columnVisibility); void putDelete(byte[] columnFamily, byte[] columnQualifier, long timestamp); void putDelete(byte[] columnFamily, byte[] columnQualifier,
      ColumnVisibility columnVisibility, long timestamp); FamilyOptions at(); List<ColumnUpdate> getUpdates(); long numBytes(); long estimatedMemoryUsed(); int size(); void addReplicationSource(String peer); void setReplicationSources(Set<String> sources); Set<String> getReplicationSources(); @Override void readFields(DataInput in); @Override void write(DataOutput out); @Override boolean equals(Object o); @Override int hashCode(); boolean equals(Mutation m); TMutation toThrift();  }