cognite
.
spark
.
v1
AssetHierarchyBuilder
Related Docs:
object AssetHierarchyBuilder
|
package v1
class
AssetHierarchyBuilder
extends
CdfRelation
Linear Supertypes
CdfRelation
,
Serializable
,
Serializable
,
BaseRelation
,
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
AssetHierarchyBuilder
CdfRelation
Serializable
Serializable
BaseRelation
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
AssetHierarchyBuilder
(
config:
RelationConfig
)
(
sqlContext:
SQLContext
)
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
def
build
(
df:
DataFrame
)
:
IO
[
Unit
]
lazy val
client
:
GenericClient
[
IO
,
Nothing
]
Definition Classes
CdfRelation
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
delete
(
toDelete:
Seq
[
Asset
]
,
deleteMissingAssets:
Boolean
,
batchSize:
Int
)
:
IO
[
Unit
]
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
def
getCdfRootAndTree
(
sourceRootExternalId:
CogniteExternalId
)
:
IO
[(
Option
[
Asset
],
List
[
Asset
])]
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
getValidatedTree
(
root:
AssetsIngestSchema
,
children:
Array
[
AssetsIngestSchema
]
,
ignoreDisconnectedAssets:
Boolean
)
:
Seq
[
AssetsIngestSchema
]
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
def
incMetrics
(
counter:
Counter
,
count:
Int
)
:
IO
[
Unit
]
Definition Classes
CdfRelation
def
insert
(
toInsert:
Seq
[
AssetsIngestSchema
]
,
batchSize:
Int
)
:
IO
[
Unit
]
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
isMostlyEqual
(
child:
AssetsIngestSchema
,
asset:
Asset
)
:
Boolean
lazy val
itemsCreated
:
Counter
Attributes
protected
Definition Classes
CdfRelation
lazy val
itemsRead
:
Counter
Attributes
protected
Definition Classes
CdfRelation
lazy val
itemsUpdated
:
Counter
Attributes
protected
Definition Classes
CdfRelation
def
iterateChildren
(
currentChildren:
Array
[
AssetsIngestSchema
]
,
parents:
Array
[
String
]
,
visited:
Seq
[
AssetsIngestSchema
]
)
:
Seq
[
AssetsIngestSchema
]
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
needConversion
:
Boolean
Definition Classes
BaseRelation
def
needsUpdate
(
child:
AssetsIngestSchema
,
cdfTree:
Seq
[
Asset
]
)
:
Boolean
def
nodesToDeleteInsertUpdate
(
root:
AssetsIngestSchema
,
children:
Seq
[
AssetsIngestSchema
]
,
cdfTree:
Seq
[
Asset
]
)
: (
Seq
[
Asset
],
Seq
[
AssetsIngestSchema
],
Seq
[
AssetsIngestSchema
])
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
implicit
lazy val
retryingSttpBackend
:
SttpBackend
[
IO
,
Nothing
]
Definition Classes
CdfRelation
def
schema
:
StructType
Definition Classes
AssetHierarchyBuilder
→ BaseRelation
def
sizeInBytes
:
Long
Definition Classes
BaseRelation
def
splitIntoRootAndChildren
(
tree:
Array
[
AssetsIngestSchema
]
)
: (
AssetsIngestSchema
,
Array
[
AssetsIngestSchema
])
val
sqlContext
:
SQLContext
Definition Classes
AssetHierarchyBuilder
→ BaseRelation
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
AnyRef → Any
def
unhandledFilters
(
filters:
Array
[
Filter
]
)
:
Array
[
Filter
]
Definition Classes
BaseRelation
def
update
(
toUpdate:
Seq
[
AssetsIngestSchema
]
,
batchSize:
Int
)
:
IO
[
Unit
]
def
upsertRoot
(
root:
AssetsIngestSchema
,
sourceRoot:
Option
[
Asset
]
)
:
IO
[
Unit
]
def
validateAndOrderInput
(
tree:
Array
[
AssetsIngestSchema
]
,
ignoreDisconnectedAssets:
Boolean
)
: (
AssetsIngestSchema
,
Seq
[
AssetsIngestSchema
])
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
(
...
)
Inherited from
CdfRelation
Inherited from
Serializable
Inherited from
Serializable
Inherited from
BaseRelation
Inherited from
AnyRef
Inherited from
Any
Ungrouped