Article by Jay kreps on Kafka
http://tutorials.jenkov.com/software-architecture/index.html
SQL
DATABASES
SELF JOIN
SELECT a.ID, b.NAME, a.SALARY
FROM CUSTOMERS a, CUSTOMERS b
WHERE a.SALARY < b.SALARY;
NESTED SUBQUERY
Select * from RESULT where rollnumber in(Select rollnumber from student where courseid=(select courseId from student where rollno=12)
Steps to install and work on hadoop
1. Please download virtual box or vmware on your machine .
2.Then download corresponding vm image from cloudera website
https://ccp.cloudera.com/display/SUPPORT/Cloudera+QuickStart+VM
Please note to download appropriate vm image according to the vm emulator installed on your machine.
You have eclipse installed on the machine along with hadoop configured .Enjoy..
Example screenshot for mac using oracle VM virtualBox Manager.Likewise you can do it on other machines as well.
C,c++ are procdure oriented programming languages.
Scheme,python and scala are functional programming languages.
The main difference between functional programming language and procedural oriented programming languages are
in Procedure we code with sideeffects
where as in functional we don’t have any side effects/
/** * @author Nikhilesh Reddy Chaduvula<ctillu.nikhil@gmail.com> * convert from base 10 to any other base */ public class BaseConverter2 { // Requirement is given a number convert it into any base smaller base or bigger base /** * @param args */ public static void main(String[] args) { int numberToBeConverted = 123; int baseToBeConverted = 12; BaseConverter2 bc2 = new BaseConverter2(); String s = bc2.baseconvert(numberToBeConverted, baseToBeConverted, ""); System.out.println(s); } public String baseconvert(int number, int base, String str) { if (number < base) { return getAbsolutechar(number) + str; } else { int remainder = number % base; number = number / base; return baseconvert(number, base, getAbsolutechar(remainder) + str); } } private char getAbsolutechar(int number)throws ArrayIndexOutOfBoundsException { String str = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; return str.charAt(number); } }
SOAP
Simple Object Access Protocol—>
REST
Representational state transfer
command+shift+r
command+shift+g
command+alt+r
class Parent {
String message = “parent”;
}
class Child extends Parent {
String message = “child”;
}
public class Test {
public static void main(String[] args) {
Parent yo = new Child();
System.out.println(yo.message);
}
}
OVERRIDING IS ONLY APPLICABLE TO METHODS BUT NOT VARIABLES
SO OUTPUT WOULD BE parent