public final class LoadVehicleTable extends Object
To run this class, type a command like the following:
> cd <KVHOME>
> java -classpath lib/kvclient.jar \
[:lib/oraclepki.jar:lib/osdt_cert.jar:lib/oadt_core.jar] \
:examples hadoop.table.LoadVehicleTable \
-store <storename> -host <hostname> -port <port> \
-nops <number-of-rows-to-generate> \
[-security <login-properties-file>] [-delete]
where the additonal JAR files (oraclepki.jar, osdt_cert.jar, and
oadt_core.jar) are required only if the password is stored in an Oracle
Wallet; which is available only in the enterprise edition of Oracle NoSQL
Database.
This class demonstrates the use of Oracle NoSQL Table DDL
(Data Definition Langue) to create a table named
vehicleTable with the following format:
CREATE TABLE IF NOT EXISTS vehicleTable (type STRING, \
make STRING, \
model STRING, \
class STRING, \
color STRING, \
price DOUBLE, \
count INTEGER), \
PRIMARY KEY (SHARD(type, make, model), class, color))
public static void main(String[] args)
Copyright (c) 2011, 2015 Oracle and/or its affiliates. All rights reserved.