hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stack <st...@duboce.net>
Subject Re: column family names
Date Wed, 04 Feb 2009 17:49:38 GMT
Yeah, the architecture document is starting to showing its age.  Needs a nip
and tuck.

No big reasons for family name being 'text'/'printable'.  Is it an onerous
restriction?

St.Ack



On Wed, Feb 4, 2009 at 8:09 AM, Toby White <toby@scrtplns.com> wrote:

> From the HBase documentation (
> http://wiki.apache.org/hadoop/Hbase/HbaseArchitecture)
>
> 'A column name has the form "<family>:<label>" where <family> and <label>
> can be arbitrary byte arrays'
>
> yet in HColumnDescriptor.java:
>
>    for (int i = 0; i < (b.length - 1); i++) {
>      if (Character.isLetterOrDigit(b[i]) || b[i] == '_' || b[i] == '.') {
>        continue;
>      }
>      throw new IllegalArgumentException("Illegal character <" + b[i] +
>        ">. Family names  can only contain  'word characters' and must end"
> +
>        "with a colon: " + Bytes.toString(b));
>    }
>
> Presumably the code is the authoritative source here; but why is there such
> a restriction on family names?
>
> Toby
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message