throw new IllegalArgumentException("FieldValueFilter does not support this compare operator: " + compareOp);
}
FieldType fieldType = repository.getTypeManager().getFieldTypeByName(filter.getField());
DataOutput dataOutput = new DataOutputImpl();
fieldType.getValueType().write(filter.getFieldValue(), dataOutput, new IdentityRecordStack());
byte[] fieldValue = dataOutput.toByteArray();
LilyFieldSingleColumnValueFilter hbaseFilter = new LilyFieldSingleColumnValueFilter(RecordCf.DATA.bytes,
((FieldTypeImpl)fieldType).getQualifier(), HBaseRecordFilterUtil.translateCompareOp(compareOp), fieldValue);
hbaseFilter.setFilterIfMissing(filter.getFilterIfMissing());