Homepage
Sign inGet started

Code Log

  • JAVA
  • ANDROID
  • Algorithm
  • SHELL
  • Data
  • Other
  • How does Apache Pig handle nulls

    It is important to understand that in Pig the concept of null is the same as in SQL, which is completely different from the concept of null…
    Go to the profile of Chris
    Chris
    Oct 14

    Find ubuntu environment variables

    We know that echo $PATH will print all of the environment variables. There are several places we can put the path variables in.
    Go to the profile of Chris
    Chris
    Oct 13

    Spring Beans scope: Singleton and Prototype

    Singleton
    Go to the profile of Chris
    Chris
    Oct 11

    Spring Autowire beans that have the same type

    With spring annotation @Autowired annotation, we can bind the bean automatically by type.
    Go to the profile of Chris
    Chris
    Oct 9
    Store Scrapy crawled data in PostgresSQL

    Store Scrapy crawled data in PostgresSQL

    Prerequisites: Assume that you are able to craw some data following the tutorial provided by Scrapy official website until the step…
    Go to the profile of Chris
    Chris
    Sep 24

    Overriding hashCode method — Effective Java Notes

    When overriding the equalmethod, always override the hashCode()method, or the HashSet, HashMap... methods would fail.
    Go to the profile of Chris
    Chris
    Aug 1

    5 Rules for overriding equal method — Effective Java Notes

    When we create a new class, most time we need to override the equal method. The book lists 5 rules.
    Go to the profile of Chris
    Chris
    Jul 26

    3 Methods to Create Singleton with Java — Effective Java Notes

    I only know one singleton creation method before, the factory method. The book list three methods and suggusts that the third method-Enum…
    Go to the profile of Chris
    Chris
    Jul 25

    AWK example

    AWK is the abbreviation of three developers’ names.
    Go to the profile of Chris
    Chris
    Jul 24

    Consider builder when facing with many constructor -Effective Java Notes

    When to use? we have many parameters in a class.
    Go to the profile of Chris
    Chris
    Jul 23
    About Code LogLatest StoriesArchiveAbout MediumTermsPrivacy