Yes, you can have view mapping to multiple column families on a existing
table .

CREATE VIEW "your_table_name"(PK VARCHAR PRIMARY KEY,
"c"."column_1" VARCHAR ,"p"."column_2" VARCHAR)

On Fri, Dec 19, 2014 at 9:19 AM, Jamie Murray <jamie.mur...@d2l.com> wrote:
>
>  Hello,
>
>
>
> I am looking to map a phoenix view to an existing table. The existing
> table represents a graph structure in that each row references related rows
> using this format of (column family) : (column qualifier)
>
>  c:{key}
>
> p:{key}
>
>
>
> Where c and p are column families and {key} references another rowkey in
> this table.  Ideally I would like to be able to map a Phoenix view in such
> a way that for each row we have column c: and the value is an array type of
> corresponding {key}.  Similarly, for each row we would have column p: and
> the value is also an array type of corresponding {key}.   Aside from this
> exact mapping, another question would be – Is it possible to map Phoenix
> onto an existing table and use the column qualifiers as values?
>
>
>
> Any help is appreciated!
>
>
>
> Thanks,
>
>
>
> Jamie
>

Reply via email to