HBASE-4837 book.xml, schema design
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1204627 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7a8c36be23
commit
211553dd35
|
@ -538,9 +538,9 @@ String table = "myTable";
|
||||||
admin.disableTable(table);
|
admin.disableTable(table);
|
||||||
|
|
||||||
HColumnDescriptor cf1 = ...;
|
HColumnDescriptor cf1 = ...;
|
||||||
admin.addColumn(table, cf1 ); // adding new ColumnFamily
|
admin.addColumn(table, cf1); // adding new ColumnFamily
|
||||||
HColumnDescriptor cf2 = ...;
|
HColumnDescriptor cf2 = ...;
|
||||||
admin.modifyColumn(table, cf2 ); // modifying existing ColumnFamily
|
admin.modifyColumn(table, cf2); // modifying existing ColumnFamily
|
||||||
|
|
||||||
admin.enableTable(table);
|
admin.enableTable(table);
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
@ -548,6 +548,13 @@ admin.enableTable(table);
|
||||||
<para>Note: online schema changes are supported in the 0.92.x codebase, but the 0.90.x codebase requires the table
|
<para>Note: online schema changes are supported in the 0.92.x codebase, but the 0.90.x codebase requires the table
|
||||||
to be disabled.
|
to be disabled.
|
||||||
</para>
|
</para>
|
||||||
|
<section xml:id="schema.updates"><title>Schema Updates</title>
|
||||||
|
<para>When changes are made to either Tables or ColumnFamilies (e.g., region size, block size), these changes
|
||||||
|
take effect the next time there is a major compaction and the StoreFiles get re-written.
|
||||||
|
</para>
|
||||||
|
<para>See <xref linkend="store"/> for more information on StoreFiles.
|
||||||
|
</para>
|
||||||
|
</section>
|
||||||
</section>
|
</section>
|
||||||
<section xml:id="number.of.cfs">
|
<section xml:id="number.of.cfs">
|
||||||
<title>
|
<title>
|
||||||
|
|
Loading…
Reference in New Issue