This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.inferdata.hadoop; | |
import org.apache.hadoop.fs.Path; | |
import org.apache.hadoop.conf.*; | |
import org.apache.hadoop.io.*; | |
import org.apache.hadoop.mapreduce.Job; | |
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat; | |
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.inferdata.hadoop; | |
import org.apache.hadoop.fs.Path; | |
import org.apache.hadoop.conf.*; | |
import org.apache.hadoop.io.*; | |
//import org.apache.hadoop.mapred.lib.IdentityReducer; | |
import org.apache.hadoop.mapreduce.Job; | |
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat; | |
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.inferdata.examples.simplethread; | |
public class MainObj implements Runnable { | |
private int finished_actions; | |
public void run() { | |
System.out.println("starting secondary threads..."); | |
new Thread(new SecondaryThread(this, "action 1")).start(); | |
new Thread(new SecondaryThread(this, "action 2")).start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Wrapper around the Google_DatastoreService class. | |
*/ | |
// Assumes v1 of client libs: https://github.com/google/google-api-php-client | |
// 1.0-alpha paths | |
require_once 'Google/Client.php'; | |
require_once 'Google/Auth/AssertionCredentials.php'; | |
require_once 'Google/Service/Datastore.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Model.php - Basic base class for Cloud DataStore Objects. | |
*/ | |
require_once 'DatastoreService.php'; | |
abstract class Model { | |
// See https://developers.google.com/datastore/docs/concepts/#Datastore_Kinds_keys_and_identifiers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'Model.php'; | |
/** | |
* Model class for feed objects | |
*/ | |
class FeedModel extends Model { | |
const FEED_MODEL_KIND = 'FeedModel'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'Model.php'; | |
/** | |
* Model class for User objects | |
*/ | |
class UserModel extends Model { | |
const USER_MODEL_KIND = 'User'; | |
const USER_EMAIL_PROPERTY_NAME = 'email'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Example code for connecting to the Google Cloud Datastore | |
require_once 'config.php'; | |
require_once 'Google/Client.php'; | |
require_once 'Google/Auth/AssertionCredentials.php'; | |
require_once 'Google/Service/Datastore.php'; | |
// assumes that an array like the following is defined in config.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Example code for connecting to the Google Cloud Datastore | |
require_once 'config.php'; | |
require_once 'DatastoreService.php'; | |
require_once 'Google/Client.php'; | |
require_once 'Google/Auth/AssertionCredentials.php'; | |
require_once 'Google/Service/Datastore.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1beta1 | |
id: mysql | |
desiredState: | |
manifest: | |
version: v1beta1 | |
id: mysql | |
containers: | |
- name: mysql | |
image: mysql | |
env: |
OlderNewer