• Home
  • Algorithms
  • Java
  • Hive
  • Learn Java
  • Hadoop
  • OrientDB
  • Database
  • Others
YouTube Twitter RSS
My IT Learnings
Posts related to computer science, algorithms, software development, databases etc
 
Skip to content
  • Home
  • Algorithms
  • Java
  • Hive
  • Learn Java
  • Hadoop
  • OrientDB
  • Database
  • Others
2016 May

Monthly Archives: May 2016

Depth First Search (DFS) for traversing a Graph

rajesh • May 6, 2016algorithms algorithms, dfs, graph, java
0

Depth First Search (DFS) is an algorithm for traversing a graph or a tree(any acyclic connected graph is a tree). We start at a starting node, traverse on a single path in the graph, backtrack when the path ends and again traverse non-visited paths while backtracking. DFS has the following…

Continue reading

Using reflection to call methods of a Java class – A simple use case

rajesh • May 2, 2016java java, reflection
0

We can use reflection feature of Java to invoke methods of a Java class. Suppose we have a class Employee, with getter methods for fields – name, age sex, salary, city. A user may want to send an array of property names to a method and based on the input…

Continue reading

Reading a File from same package in a Java Class

rajesh • May 2, 2016java java, resource loading
0

Sometimes we may need to read data from a file in a Java class and this file lies in the same package as that of the class. Different Java classes may need to read data from a file lying in their own package. If all the files in different packages…

Continue reading

  • YouTube Twitter RSS
  • Archives

    • August 2016 (3)
    • July 2016 (3)
    • May 2016 (3)
    • April 2016 (2)
    • March 2016 (30)
    • February 2016 (2)
    • January 2016 (5)
    • December 2015 (3)
    • November 2015 (4)
    • October 2015 (6)
  • Categories

    • algorithms (5)
    • bigdata (34)
    • computer science (3)
    • database (7)
    • eclipse (1)
    • hadoop (3)
    • java (8)
    • maven (1)
  • Tags

    algorithms ArrayList base64 bfs bigdata binary search BlockingQueue bucketing complex data type consumer create table database data structures data types eclipse encoding external graph hadoop hdfs hive IN operator insert java jdbc jsch load data maven metastore mysql oracle orc partitioning performance producer remote script select sequencefile sql sqlldr ssh ssh2 stack unicode update
  • Home
  • Algorithms
  • Java
  • Hive
  • Learn Java
  • Hadoop
  • OrientDB
  • Database
  • Others
Powered by Nirvana & WordPress.
YouTube Twitter RSS