public final class LoadVehicleTable extends Object
kv -> table create -name vehicleTable
vehicleTable -> add-field -name type -type STRING
vehicleTable -> add-field -name make -type STRING
vehicleTable -> add-field -name model -type STRING
vehicleTable -> add-field -name class -type STRING
vehicleTable -> add-field -name color -type STRING
vehicleTable -> add-field -name price -type DOUBLE
vehicleTable -> add-field -name count -type INTEGER
vehicleTable -> primary-key -field type -field make -field model
-field class -field color
vehicleTable -> shard-key -field type -field make -field model
vehicleTable -> exit
kv -> plan add-table -wait -name vehicleTable
Rather than executing the commands above interactively in the CLI,
the examples/table/create_vehicle_table.kvs script can instead be used
in the following way:
> cd KVHOME
> java -jar lib/kvcli.jar -host -port -store
kv-> load -file examples/hadoop/table/create_vehicle_table.kvs
Modifier and Type | Field and Description |
---|---|
(package private) static String |
TABLE_NAME |
static final String TABLE_NAME
public static void main(String[] args)
Copyright (c) 2011, 2015 Oracle and/or its affiliates. All rights reserved.