public FijiRowFilter createFromJson(JsonNode root) { try { final RowKeyFormat2 rowKeyFormat = (RowKeyFormat2) FromJson.fromAvroJsonString( root.path(ROW_KEY_FORMAT_NODE).getTextValue(), RowKeyFormat2.SCHEMA$); final JsonNode componentsJsonNode = root.path(COMPONENTS_NODE);
/** {@inheritDoc} */ @Override public FijiRowFilter createFromJson(JsonNode root) { final String family = root.path(FAMILY_NODE).getTextValue(); final String qualifier = root.path(QUALIFIER_NODE).getTextValue(); final String schema = root.path(VALUE_NODE).path(SCHEMA_NODE).getTextValue(); final Schema writerSchema = (new Schema.Parser()).parse(schema); final String data = root.path(VALUE_NODE).path(DATA_NODE).getTextValue(); try { final DecodedCell<?> cell = new DecodedCell<Object>(writerSchema, FromJson.fromAvroJsonString(data, writerSchema)); return new ColumnValueEqualsRowFilter(family, qualifier, cell); } catch (IOException ioe) { throw new FijiIOException(ioe); } } }