class MapJSONFeature[K, V] extends MapFeature[K, V] with JSONFeature
- Alphabetic
- By Inheritance
- MapJSONFeature
- JSONFeature
- MapFeature
- Feature
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new MapJSONFeature(model: HasFeatures, name: String)(jsonSerializer: (Map[K, V]) ⇒ String, jsonDeserializer: (String) ⇒ Map[K, V])(implicit arg0: ClassTag[K], arg1: ClassTag[V])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
final
var
broadcastValue: Option[Broadcast[Map[K, V]]]
- Attributes
- protected
- Definition Classes
- Feature
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
deserialize(spark: SparkSession, path: String, field: String): Option[_]
- Definition Classes
- Feature
-
def
deserializeDataset(spark: SparkSession, path: String, field: String): Option[Map[K, V]]
- Definition Classes
- MapFeature → Feature
-
def
deserializeObject(spark: SparkSession, path: String, field: String): Option[Map[K, V]]
- Definition Classes
- MapJSONFeature → MapFeature → Feature
-
def
deserializeWithFallback[ObjectType](spark: SparkSession, path: String)(implicit arg0: ClassTag[ObjectType]): RDD[ObjectType]
Loads an object from a SequenceFile containing serialized objects.
Loads an object from a SequenceFile containing serialized objects. It tries to load the tuple across Scala version, handling serialVersionUID mismatches.
Adapted from sparkContext.objectFile:
"Load an RDD saved as a SequenceFile containing serialized objects, with NullWritable keys and BytesWritable values that contain a serialized partition."
- path
directory to the input data files, the path can be comma separated paths as a list of inputs
- returns
RDD representing deserialized data from the file(s)
- Attributes
- protected
- Definition Classes
- Feature
-
implicit
val
encoder: Encoder[(K, V)]
- Definition Classes
- MapFeature
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
var
fallbackLazyValue: Option[() ⇒ Map[K, V]]
- Attributes
- protected
- Definition Classes
- Feature
-
final
var
fallbackRawValue: Option[Map[K, V]]
- Attributes
- protected
- Definition Classes
- Feature
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
get: Option[Map[K, V]]
- Definition Classes
- Feature
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
getFieldPath(path: String, field: String): Path
- Attributes
- protected
- Definition Classes
- Feature
-
final
def
getOrDefault: Map[K, V]
- Definition Classes
- Feature
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
var
isProtected: Boolean
- Attributes
- protected
- Definition Classes
- Feature
-
final
def
isSet: Boolean
- Definition Classes
- Feature
-
lazy val
logger: Logger
- Attributes
- protected
- Definition Classes
- Feature
-
val
name: String
- Definition Classes
- MapJSONFeature → MapFeature → Feature
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
orDefault: Option[Map[K, V]]
- Definition Classes
- Feature
-
final
var
rawValue: Option[Map[K, V]]
- Attributes
- protected
- Definition Classes
- Feature
-
def
readFieldJSON(spark: SparkSession, path: String, field: String): Option[JValue]
- Definition Classes
- JSONFeature
-
def
readFieldJSONString(spark: SparkSession, path: String, field: String): Option[String]
- Attributes
- protected
- Definition Classes
- JSONFeature
-
def
resolveCustomLegacyClasses(osc: ObjectStreamClass): ObjectStreamClass
Method to provide additional legacy class descriptor mappings for custom classes.
Method to provide additional legacy class descriptor mappings for custom classes. If none are found, should return null.
- osc
The ObjectStreamClass to resolve
- returns
The resolved ObjectStreamClass, or null if not found
- Attributes
- protected
- Definition Classes
- Feature
-
val
serializationMode: String
- Definition Classes
- Feature
-
final
def
serialize(spark: SparkSession, path: String, field: String, value: Map[K, V]): Unit
- Definition Classes
- Feature
-
def
serializeDataset(spark: SparkSession, path: String, field: String, value: Map[K, V]): Unit
- Definition Classes
- MapFeature → Feature
-
final
def
serializeInfer(spark: SparkSession, path: String, field: String, value: Any): Unit
- Definition Classes
- Feature
-
def
serializeObject(spark: SparkSession, path: String, field: String, value: Map[K, V]): Unit
- Definition Classes
- MapJSONFeature → MapFeature → Feature
-
def
setFallback(v: Option[() ⇒ Map[K, V]]): HasFeatures
- Definition Classes
- Feature
-
final
def
setProtected(): MapJSONFeature.this.type
Sets this feature to be protected and only settable once.
Sets this feature to be protected and only settable once.
- returns
This Feature
- Definition Classes
- Feature
-
final
def
setValue(value: Option[Any]): HasFeatures
- Definition Classes
- Feature
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
val
useBroadcast: Boolean
- Definition Classes
- Feature
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
writeFieldJSON(spark: SparkSession, path: String, field: String, jsonSerialized: String): Unit
- Attributes
- protected
- Definition Classes
- JSONFeature