Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
Refactor TransactionalTable.filter()
Browse files Browse the repository at this point in the history
  • Loading branch information
dgomezferro committed Jun 4, 2012
1 parent d15b13c commit 98da94c
Show file tree
Hide file tree
Showing 4 changed files with 155 additions and 184 deletions.
38 changes: 0 additions & 38 deletions src/main/java/com/yahoo/omid/client/ByteArray.java

This file was deleted.

47 changes: 47 additions & 0 deletions src/main/java/com/yahoo/omid/client/ColumnWrapper.java
@@ -0,0 +1,47 @@
package com.yahoo.omid.client;

import java.util.Arrays;

public class ColumnWrapper {
private byte[] family;
private byte[] qualifier;

public ColumnWrapper(byte[] family, byte[] qualifier) {
this.family = family;
this.qualifier = qualifier;
}

public byte[] getFamily() {
return family;
}

public byte[] getQualifier() {
return qualifier;
}

@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + Arrays.hashCode(family);
result = prime * result + Arrays.hashCode(qualifier);
return result;
}

@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
ColumnWrapper other = (ColumnWrapper) obj;
if (!Arrays.equals(family, other.family))
return false;
if (!Arrays.equals(qualifier, other.qualifier))
return false;
return true;
}

}

0 comments on commit 98da94c

Please sign in to comment.