public class SchemaUtils$ extends Object
Modifier and Type | Field and Description |
---|---|
static SchemaUtils$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
SchemaUtils$() |
Modifier and Type | Method and Description |
---|---|
StructType |
convertToStruct(org.elasticsearch.hadoop.serialization.dto.mapping.Mapping mapping,
Map<String,org.elasticsearch.hadoop.serialization.dto.mapping.GeoField> geoInfo,
Settings cfg) |
scala.Tuple2<Properties,Properties> |
detectRowInfo(Settings settings,
StructType struct) |
SchemaUtils.Schema |
discoverMapping(Settings cfg) |
scala.Tuple2<org.elasticsearch.hadoop.serialization.dto.mapping.Mapping,Map<String,org.elasticsearch.hadoop.serialization.dto.mapping.GeoField>> |
discoverMappingAndGeoFields(Settings cfg) |
scala.Tuple2<scala.collection.mutable.LinkedHashMap<String,scala.collection.Seq<String>>,LinkedHashSet<String>> |
getRowInfo(Settings settings) |
void |
setRowInfo(Settings settings,
StructType struct) |
public static final SchemaUtils$ MODULE$
public SchemaUtils.Schema discoverMapping(Settings cfg)
public scala.Tuple2<org.elasticsearch.hadoop.serialization.dto.mapping.Mapping,Map<String,org.elasticsearch.hadoop.serialization.dto.mapping.GeoField>> discoverMappingAndGeoFields(Settings cfg)
public StructType convertToStruct(org.elasticsearch.hadoop.serialization.dto.mapping.Mapping mapping, Map<String,org.elasticsearch.hadoop.serialization.dto.mapping.GeoField> geoInfo, Settings cfg)
public void setRowInfo(Settings settings, StructType struct)
public scala.Tuple2<scala.collection.mutable.LinkedHashMap<String,scala.collection.Seq<String>>,LinkedHashSet<String>> getRowInfo(Settings settings)
public scala.Tuple2<Properties,Properties> detectRowInfo(Settings settings, StructType struct)