Skip navigation links
Oracle NoSQL Database Examples
version 12cR2.4.5.12
A B C E F G H I K L M N O P R S T U 

A

addExample(String, Example) - Static method in class table.TableAPIExample
Adds given example with given name.
age - Variable in class coherence.Person
 
ArrayIndexExample - Class in table
Example 6: Secondary index on array This example demonstrates use of a secondary index on an array.
ArrayIndexExample() - Constructor for class table.ArrayIndexExample
 
AuthenticationExample - Class in security
An extremely simple KVStore client application that authenticates access to a security-enabled KVStore instance, and then writes and reads a single record.
AuthenticationExample(String[]) - Constructor for class security.AuthenticationExample
Parses command line args and opens the KVStore.

B

BaseExample - Class in table
Derivable base implementation for table examples.
BaseExample() - Constructor for class table.BaseExample
 
BinaryStoreExample - Class in coherence
This is a simple Oracle NoSQL Database client application that demonstrates an integration of an existing Oracle Coherence application with Oracle NoSQL Database.
BinaryStoreExample(String[]) - Constructor for class coherence.BinaryStoreExample
Parses the command line args, opens the cache.

C

call() - Method in class table.ArrayIndexExample
 
call() - Method in class table.ChildTableExample
 
call() - Method in class table.ComplexFieldExample
Example 5: Complex fields This example demonstrates how to create, populate and read complex fields (Array, Map, Record) in a table.
call() - Method in class table.IndexReadAndWrite
This example uses 2 indexes on the table "simpleUsers." One is a simple, single-field index on "firstName" and the other is a composite index on "lastName, firstName".
call() - Method in class table.MapIndexExample
 
call() - Method in class table.SelectExample
 
call() - Method in class table.ShardKeysExample
 
call() - Method in class table.SimpleReadWriteExample
 
call() - Method in class table.TTLExample
Demonstrates TTL usage during insert or update of records.
ChildTableExample - Class in table
Example 4: Parent and Child tables This example demonstrates use of parent and child tables.
ChildTableExample() - Constructor for class table.ChildTableExample
 
coherence - package coherence
Two client applications that illustrate integration of Oracle NoSQL DB with Oracle Coherence.
ComplexFieldExample - Class in table
Example: Complex fields This example demonstrates definition and use of complex data types -- RECORD, MAP and ARRAY.
ComplexFieldExample() - Constructor for class table.ComplexFieldExample
 
CountMinorKeys - Class in hadoop
A simple example demonstrating how to use the Oracle NoSQL DB Hadoop oracle.kv.hadoop.KVInputFormat class to read data from NoSQL Database in a Map/Reduce job and count the number of records for each major key in the store.
CountMinorKeys() - Constructor for class hadoop.CountMinorKeys
 
CountMinorKeys.Map - Class in hadoop
 
CountMinorKeys.Reduce - Class in hadoop
 
CountTableRows - Class in hadoop.table
A basic example demonstrating how to use the class oracle.kv.hadoop.table.TableInputFormat to access the rows of a table in an Oracle NoSQL Database from within a Hadoop MapReduce job for the purpose of counting the number of records in the table.
CountTableRows() - Constructor for class hadoop.table.CountTableRows
 
CountTableRows.Map - Class in hadoop.table
Nested class used to map input key/value pairs to a set of intermediate key/value pairs in preparation for the reduce phase of the associated MapReduce job.
CountTableRows.Reduce - Class in hadoop.table
Nested class used to reduce to a smaller set of values, the set of intermediate values, sharing a key, which were produced by the mapping phase of the job.
createLocalKVSecurity(String, String) - Static method in class hadoop.table.KVSecurityUtil
Creates the artifacts required to connect to and interact with a secure store; specifically, a login file, a trust file, and PasswordCredentials.

E

end() - Method in class table.BaseExample
 
end() - Method in interface table.Example
End the sample run, preferably clearing up all resources such as deleting tables, closing database connection etc.
Example - Interface in table
Defines protocol of a table-based example.
executeDDL(String) - Method in class table.BaseExample
Executes given DDL statement synchronously against a store.
externaltables - package externaltables
Classes used in the simple External Tables Cookbook.

F

firstname - Variable in class coherence.Person
 

G

getAddress() - Method in class externaltables.UserInfo
Returns the address attribute.
getAge() - Method in class coherence.Person
Gets the value of the 'age' field.
getCauseOfFailure() - Method in class pubsub.NoSQLStreamSubscriberExample
 
getClientTrustFlnm() - Static method in class hadoop.table.KVSecurityUtil
 
getEmail() - Method in class externaltables.UserInfo
Returns the email identifier.
getFirstname() - Method in class coherence.Person
Gets the value of the 'firstname' field.
getGender() - Method in class externaltables.UserInfo
Returns the gender attribute.
getKVStore() - Method in class table.BaseExample
Returns the store object.
getLastname() - Method in class coherence.Person
Gets the value of the 'lastname' field.
getName() - Method in class externaltables.UserInfo
Returns the name attribute.
getPasswordCredentials() - Static method in class hadoop.table.KVSecurityUtil
 
getPhone() - Method in class coherence.Person
Gets the value of the 'phone' field.
getPhone() - Method in class externaltables.UserInfo
Returns the phone attribute.
getProcessOps() - Method in class pubsub.NoSQLStreamSubscriberExample
 
getServerLoginFlnm() - Static method in class hadoop.table.KVSecurityUtil
 
getShortDescription() - Method in class table.ArrayIndexExample
 
getShortDescription() - Method in class table.BaseExample
Gets a short description fit for printing on console.
getShortDescription() - Method in class table.ChildTableExample
 
getShortDescription() - Method in class table.ComplexFieldExample
 
getShortDescription() - Method in interface table.Example
Return a short description for user.
getShortDescription() - Method in class table.IndexReadAndWrite
 
getShortDescription() - Method in class table.MapIndexExample
 
getShortDescription() - Method in class table.SelectExample
 
getShortDescription() - Method in class table.ShardKeysExample
 
getShortDescription() - Method in class table.SimpleReadWriteExample
 
getShortDescription() - Method in class table.TTLExample
 
getStoreKey() - Method in class externaltables.UserInfo
Returns a Key that can be used to write or read the UserInfo.
getStoreValue() - Method in class externaltables.UserInfo
Serializes user info attributes into the byte array of a Value.
getStreamOps() - Method in class pubsub.NoSQLStreamSubscriberExample
 
getSubscription() - Method in class pubsub.NoSQLStreamSubscriberExample
 
getSubscriptionConfig() - Method in class pubsub.NoSQLStreamSubscriberExample
 
getTable(String) - Method in class table.BaseExample
Returns a table of given name.
getTableAPI() - Method in class table.BaseExample
Returns api for table operations.

H

hadoop - package hadoop
A client application that illustrates basic connectivity between NoSQL Database and hadoop.
hadoop.hive.table - package hadoop.hive.table
The Table API Hive Cookbook: documentation that describes how to run example Apache Hive or Oracle Big Data SQL queries against data written via the Oracle NoSQL Database Table API.
hadoop.table - package hadoop.table
The Table API MapReduce Cookbook: example code for a MapReduce job, along with supporting code and scripts, that can be run against data written via the Oracle NoSQL Database Table API.
hello - package hello
An extremely simple client application that writes and reads a single record.
HelloBigDataWorld - Class in hello
An extremely simple Oracle NoSQL DB application that writes and reads a single record.
HelloBigDataWorld(String[]) - Constructor for class hello.HelloBigDataWorld
Parses command line args and opens the KVStore.

I

incrementAndGet() - Method in class seqnum.SequenceNumber
Returns the next number in the sequence after it synchronizes with the store, making a maximum of noOfRetries attempts.
There are three possible outcomes when calling this method:
- the next number in the sequence is returned.
- the maximum number of retries is reached for trying to synchronize with the store and a RuntimeException is thrown
- other exception if thrown by the store
IndexReadAndWrite - Class in table
Example: Index read and write This example demonstrates definition and use of indexes by creating a simple single-field index and a 2-field composite index.
IndexReadAndWrite() - Constructor for class table.IndexReadAndWrite
 
init(KVStore) - Method in class table.BaseExample
 
init(KVStore) - Method in interface table.Example
Initialize connection to a store and any other initialization such as creating tables, indices.
isSubscriptionSucc() - Method in class pubsub.NoSQLStreamSubscriberExample
 

K

KerberosAuthenticationExample - Class in security
A complete example to show how to use Kerberos to authenticate to Oracle NoSQL Database.
KerberosAuthenticationExample(String[]) - Constructor for class security.KerberosAuthenticationExample
 
kvConfig - Variable in class security.KerberosAuthenticationExample
 
KVSecurityCreation - Class in hadoop.table
Standalone program that creates (or deletes) a password file or Oracle Wallet for use when running the associated example MapReduce job with a secure KVStore.
KVSecurityUtil - Class in hadoop.table
Utility class that provides convenience methods related to the Oracle NoSQL Database security model.

L

lastname - Variable in class coherence.Person
 
LoadCookbookData - Class in externaltables
A class used in the External Tables Cookbook example to create sample records in the NoSQL Database.
LoadRmvTable - Class in hadoop.hive.table
Class that creates an example table in a given NoSQL Database store and then uses the Table API to populate the table with sample records.
LoadVehicleTable - Class in hadoop.table
Class that creates an example table in a given NoSQL Database store and then uses the Table API to populate the table with sample records.

M

main(String[]) - Static method in class coherence.BinaryStoreExample
Runs the BinaryStoreExample command line program.
main(String[]) - Static method in class externaltables.LoadCookbookData
 
main(String[]) - Static method in class hadoop.CountMinorKeys
 
main(String[]) - Static method in class hadoop.hive.table.LoadRmvTable
 
main(String[]) - Static method in class hadoop.table.CountTableRows
 
main(String[]) - Static method in class hadoop.table.KVSecurityCreation
 
main(String[]) - Static method in class hadoop.table.LoadVehicleTable
 
main(String[]) - Static method in class hello.HelloBigDataWorld
Runs the HelloBigDataWorld command line program.
main(String[]) - Static method in class pubsub.NoSQLStreamExample
 
main(String[]) - Static method in class security.AuthenticationExample
Runs the HelloBigDataWorld command line program.
main(String[]) - Static method in class security.KerberosAuthenticationExample
 
main(String[]) - Static method in class seqnum.SequenceNumber
 
main(String[]) - Static method in class table.TableAPIExample
Run the examples.
main(String[]) - Static method in class table.UpdateJSON
 
Map() - Constructor for class hadoop.CountMinorKeys.Map
 
map(Text, Text, Mapper<Text, Text, Text, IntWritable>.Context) - Method in class hadoop.CountMinorKeys.Map
 
Map() - Constructor for class hadoop.table.CountTableRows.Map
 
map(PrimaryKey, Row, Mapper<PrimaryKey, Row, Text, IntWritable>.Context) - Method in class hadoop.table.CountTableRows.Map
 
MapIndexExample - Class in table
This is an example of using map indexes.
MapIndexExample() - Constructor for class table.MapIndexExample
 
MyFormatter - Class in externaltables
A simple Formatter and TableFormatter implementation used by the External Tables Cookbook example.

N

NoSQLStreamExample - Class in pubsub
This is to demonstrate the NoSQL Stream publish/subscriber feature in Oracle NoSQL Database.
NoSQLStreamSubscriberExample - Class in pubsub
Example subscriber used in NoSQLStreamExample
NoSQLStreamSubscriberExample(NoSQLSubscriptionConfig, int, long) - Constructor for class pubsub.NoSQLStreamSubscriberExample
 

O

onCheckpointComplete(StreamPosition, Throwable) - Method in class pubsub.NoSQLStreamSubscriberExample
 
onComplete() - Method in class pubsub.NoSQLStreamSubscriberExample
 
onError(Throwable) - Method in class pubsub.NoSQLStreamSubscriberExample
 
onNext(StreamOperation) - Method in class pubsub.NoSQLStreamSubscriberExample
 
onSubscribe(Subscription) - Method in class pubsub.NoSQLStreamSubscriberExample
 
onWarn(Throwable) - Method in class pubsub.NoSQLStreamSubscriberExample
 

P

Person - Class in coherence
 
Person() - Constructor for class coherence.Person
 
phone - Variable in class coherence.Person
 
printTTL(String, Row, TimeUnit) - Method in class table.TTLExample
Prints the absolute expiration time for a given record as well as duration from current clock time before tyhe record is cleaned.
pubsub - package pubsub
A client application that illustrates basic NoSQLStream publish/subscribe functionality.

R

Reduce() - Constructor for class hadoop.CountMinorKeys.Reduce
 
Reduce() - Constructor for class hadoop.table.CountTableRows.Reduce
 
removeDir(File) - Static method in class hadoop.table.KVSecurityUtil
 
run(String[]) - Method in class hadoop.CountMinorKeys
 
run(String[]) - Method in class hadoop.table.CountTableRows
 
runExample() - Method in class coherence.BinaryStoreExample
Insert a kv pair if it doesn't exist, or read/update it if it does.
runExample() - Method in class hello.HelloBigDataWorld
Performs example operations and closes the KVStore.
runExample() - Method in class security.AuthenticationExample
Performs example operations and closes the KVStore.

S

security - package security
A client application that illustrates the security authentication functionality.
SelectExample - Class in table
Example: Execute select queries and read the results.
SelectExample() - Constructor for class table.SelectExample
 
seqnum - package seqnum
A simple implementation of a Sequence Number Generator.
SequenceNumber - Class in seqnum
A simple implementation of a Sequence Number Generator.
SequenceNumber(KVStore, String, int, long) - Constructor for class seqnum.SequenceNumber
Creates an instance of the sequence number generator.
setAddress(String) - Method in class externaltables.UserInfo
Changes the address attribute.
setAge(Integer) - Method in class coherence.Person
Sets the value of the 'age' field.
setFirstname(String) - Method in class coherence.Person
Sets the value of the 'firstname' field.
setGender(String) - Method in class externaltables.UserInfo
Changes the gender attribute.
setLastname(String) - Method in class coherence.Person
Sets the value of the 'lastname' field.
setName(String) - Method in class externaltables.UserInfo
Changes the name attribute.
setPhone(String) - Method in class coherence.Person
Sets the value of the 'phone' field.
setPhone(String) - Method in class externaltables.UserInfo
Changes the phone attribute.
setup() - Method in class table.ArrayIndexExample
 
setup() - Method in class table.BaseExample
Create requisite tables and indices.
setup() - Method in class table.ChildTableExample
 
setup() - Method in class table.ComplexFieldExample
 
setup() - Method in class table.IndexReadAndWrite
 
setup() - Method in class table.MapIndexExample
 
setup() - Method in class table.SelectExample
 
setup() - Method in class table.ShardKeysExample
 
setup() - Method in class table.SimpleReadWriteExample
 
setup() - Method in class table.TTLExample
 
ShardKeysExample - Class in table
Example 3: Shard keys This example uses a table that has a composite primary key and a defined shard key.
ShardKeysExample() - Constructor for class table.ShardKeysExample
 
SimpleReadWriteExample - Class in table
Example: Simple read and write This example shows a simple use of tables, it uses a simple table holding an id field as a primary key and 2 fields -- name and surname -- as Strings.
SimpleReadWriteExample() - Constructor for class table.SimpleReadWriteExample
 

T

table - package table
The code and scripts in this package demonstrate some of the basic functions of the Oracle NoSQL Database table API, including creation and use of secondary indexes.
TableAPIExample - Class in table
Executes examples that demonstrate some of the features of tables and secondary indexes in Oracle NoSQL Database.
TableAPIExample() - Constructor for class table.TableAPIExample
 
teardown() - Method in class table.ArrayIndexExample
 
teardown() - Method in class table.BaseExample
Drop tables and indices created earlier.
teardown() - Method in class table.ChildTableExample
 
teardown() - Method in class table.ComplexFieldExample
 
teardown() - Method in class table.IndexReadAndWrite
 
teardown() - Method in class table.MapIndexExample
 
teardown() - Method in class table.SelectExample
 
teardown() - Method in class table.ShardKeysExample
 
teardown() - Method in class table.SimpleReadWriteExample
 
teardown() - Method in class table.TTLExample
 
toOracleLoaderFormat(KeyValueVersion, KVStore) - Method in class externaltables.MyFormatter
 
toOracleLoaderFormat(Row, KVStore) - Method in class externaltables.MyFormatter
Converts Row from TableAPI to a string that will be consumed by ORA process.
toString() - Method in class externaltables.UserInfo
 
TTLExample - Class in table
Example: TTL This example demonstrates basic use of the TTL (time-to-live) feature.
TTLExample() - Constructor for class table.TTLExample
 

U

UpdateJSON - Class in table
 
UpdateJSON() - Constructor for class table.UpdateJSON
 
useJAAS - Variable in class security.KerberosAuthenticationExample
 
USER_OBJECT_TYPE - Static variable in class externaltables.LoadCookbookData
 
UserInfo - Class in externaltables
A simple class which represents a User in the External Tables Cookbook example.
UserInfo(String) - Constructor for class externaltables.UserInfo
Constructs a user object with its unique identifier, the email address.
A B C E F G H I K L M N O P R S T U 
Skip navigation links
Oracle NoSQL Database Examples
version 12cR2.4.5.12

Copyright (c) 2011, 2017 Oracle and/or its affiliates. All rights reserved.