Model information.
Nested Class Summary
class | Model.Builder | Builder class. |
class | Model.ModelLocation | Where to load the model from. |
Public Method Summary
long |
fileDescriptor()
Returns the model file descriptor if
Model.ModelLocation was created with
Model.ModelLocation.fromFileDescriptor(long, long, long) .
|
long |
fileOffset()
Returns the model file offset if
Model.ModelLocation was created with
Model.ModelLocation.fromFileDescriptor(long, long, long) .
|
String |
filePath()
Returns the model file path if
Model.ModelLocation was created with
Model.ModelLocation.fromFilePath(String) or
Model.ModelLocation.fromFile(File) .
|
ByteBuffer |
modelBuffer()
Returns the model data if
Model.ModelLocation was created with
Model.ModelLocation.fromByteBuffer(ByteBuffer) .
|
String |
modelId()
Returns the unique model id.
|
long |
modelLength()
Returns the model file length if
Model.ModelLocation was created with
Model.ModelLocation.fromFileDescriptor(long, long, long) .
|
String |
modelNamespace()
Returns the model namespace.
|
Inherited Method Summary
Public Methods
public long fileDescriptor ()
Returns the model file descriptor if
Model.ModelLocation
was created with
Model.ModelLocation.fromFileDescriptor(long, long, long)
. Returns
0
otherwise.
public long fileOffset ()
Returns the model file offset if
Model.ModelLocation
was created with
Model.ModelLocation.fromFileDescriptor(long, long, long)
. Returns
0
otherwise.
public String filePath ()
Returns the model file path if
Model.ModelLocation
was created with
Model.ModelLocation.fromFilePath(String)
or
Model.ModelLocation.fromFile(File)
. Returns null
otherwise.
public ByteBuffer modelBuffer ()
Returns the model data if
Model.ModelLocation
was created with
Model.ModelLocation.fromByteBuffer(ByteBuffer)
. Returns null
otherwise.
public String modelId ()
Returns the unique model id.
public long modelLength ()
Returns the model file length if
Model.ModelLocation
was created with
Model.ModelLocation.fromFileDescriptor(long, long, long)
. Returns
0
otherwise.
public String modelNamespace ()
Returns the model namespace.