Skip to content

Start-Up Ideas, Tech Code, Use Cases, Thoughts

  • Home
  • About
  • Blog
  • Scala – Code Snippets
  • Spark – Code Snippets
  • Kafka
  • NoSQL – Cassandra/HBase
  • Elastic Search
  • Machine Learning
  • AWS – Blog
  • Scala Concepts-Code
HomePosts tagged 'scala isinstanceof asinstanceof'

scala isinstanceof asinstanceof

scala – isInstanceOf , asInstanceOf

November 10, 2016November 10, 2016 corerootz - Ravi Kiran Krovvidi Scala scala isinstanceof asinstanceof

To test whether an expression expr has type String, say, you write:
expr.isInstanceOf[String]
To cast the same expression to type String, you use:
expr.asInstanceOf[String]

 

 

Leave a comment

Learning Topics

Amazon Amazon kinesis Audio Engineering - Emotion recognition - Open Emotion Affect Recognition cassandra Graph databases Kafka NoSQL - Cassandra, HBase Scala Spark Uncategorized Unix/ Linux

Recent

  • SPARK – streaming
  • spark – partition
  • spark – performance
  • spark – actions
  • spark – transformations

Tags

Amazon kinesis amazon kinesis producer library cassandra-atomicity-isolation-rowlevel cassandra - blob cassandra - collection cassandra - frozen in collection cassandra - managing data cassandra - Murmur3Partitioner cassandra- single datacenter cluster cassandra - TimeToLive - TTL cassandra - yaml - seed provider cassandra architecture cassandra column type cassandra configuration-key components cassandra consistent hashing cassandra counter type cassandra create table cassandra data model cassandra fn - writetime cassandra generating tokens cassandra GossipingPropertyFileSnitch cassandra keyspace cassandra key structures cassandra partition key cassandra primary key cassandra starting seed nodes first cassandra static column cassandra table properties cassandra writes cassandra yaml Scala scala-function-argument less scala - pattern variable scala - typed pattern scala append to list scala better language scala case classes scala class object scala constant pattern scala constructor pattern scala curry scala erasure exception - arrays scala format string scala identifier scala immutability scala isinstanceof asinstanceof scala lang advantage scala literals scala Map scala null scala Option Type scala pattern guard scala procedure scala questions scala recursion tail scala sealed class scala sequence pattern scala Set scala symbol scala trait scala tuple pattern scala tuples scala type erasure scala variable binding pattern scala variable pattern scala variables vals scala when use trait scala wildcard pattern Spark spark architecture spark configuration location spark job debug spark json spark parquet Unix/Linux

Pages

  • About
  • Blog
  • Contact
  • Datascience – Info
  • Scala Concepts-Code
    • Technology Consciousness – Solving World Problems
  • Spark – org.apache.spark.sql.SparkSession
Blog at WordPress.com.
  • Subscribe Subscribed
    • Start-Up Ideas, Tech Code, Use Cases, Thoughts
    • Already have a WordPress.com account? Log in now.
    • Start-Up Ideas, Tech Code, Use Cases, Thoughts
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar