FeaturesOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
|
Public Methods
public
abstract
boolean
containsFeature
(String key)
Map from feature name to feature.
map<string, .tensorflow.Feature> feature = 1;
public
abstract
Map<String, Feature>
getFeature
()
public
abstract
int
getFeatureCount
()
Map from feature name to feature.
map<string, .tensorflow.Feature> feature = 1;
public
abstract
Map<String, Feature>
getFeatureMap
()
Map from feature name to feature.
map<string, .tensorflow.Feature> feature = 1;
public
abstract
Feature
getFeatureOrDefault
(String key, Feature defaultValue)
Map from feature name to feature.
map<string, .tensorflow.Feature> feature = 1;
public
abstract
Feature
getFeatureOrThrow
(String key)
Map from feature name to feature.
map<string, .tensorflow.Feature> feature = 1;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-11-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-11-29 UTC."],[],[],null,["# FeaturesOrBuilder\n\npublic interface **FeaturesOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [Features](/jvm/api_docs/java/org/tensorflow/proto/example/Features), [Features.Builder](/jvm/api_docs/java/org/tensorflow/proto/example/Features.Builder) |--------------------------------------------------------------------------------------|-------------------------------------| | [Features](/jvm/api_docs/java/org/tensorflow/proto/example/Features) | Protobuf type `tensorflow.Features` | | [Features.Builder](/jvm/api_docs/java/org/tensorflow/proto/example/Features.Builder) | Protobuf type `tensorflow.Features` | |||\n\n### Public Methods\n\n|--------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract boolean | [containsFeature](/jvm/api_docs/java/org/tensorflow/proto/example/FeaturesOrBuilder#containsFeature(java.lang.String))(String key) ``` Map from feature name to feature. ``` |\n| abstract Map\\\u003cString, [Feature](/jvm/api_docs/java/org/tensorflow/proto/example/Feature)\\\u003e | [getFeature](/jvm/api_docs/java/org/tensorflow/proto/example/FeaturesOrBuilder#getFeature())() Use [getFeatureMap()](/jvm/api_docs/java/org/tensorflow/proto/example/FeaturesOrBuilder#getFeatureMap()) instead. |\n| abstract int | [getFeatureCount](/jvm/api_docs/java/org/tensorflow/proto/example/FeaturesOrBuilder#getFeatureCount())() ``` Map from feature name to feature. ``` |\n| abstract Map\\\u003cString, [Feature](/jvm/api_docs/java/org/tensorflow/proto/example/Feature)\\\u003e | [getFeatureMap](/jvm/api_docs/java/org/tensorflow/proto/example/FeaturesOrBuilder#getFeatureMap())() ``` Map from feature name to feature. ``` |\n| abstract [Feature](/jvm/api_docs/java/org/tensorflow/proto/example/Feature) | [getFeatureOrDefault](/jvm/api_docs/java/org/tensorflow/proto/example/FeaturesOrBuilder#getFeatureOrDefault(java.lang.String, org.tensorflow.proto.example.Feature))(String key, [Feature](/jvm/api_docs/java/org/tensorflow/proto/example/Feature) defaultValue) ``` Map from feature name to feature. ``` |\n| abstract [Feature](/jvm/api_docs/java/org/tensorflow/proto/example/Feature) | [getFeatureOrThrow](/jvm/api_docs/java/org/tensorflow/proto/example/FeaturesOrBuilder#getFeatureOrThrow(java.lang.String))(String key) ``` Map from feature name to feature. ``` |\n\nPublic Methods\n--------------\n\n#### public abstract boolean\n**containsFeature**\n(String key)\n\n\u003cbr /\u003e\n\n```\n Map from feature name to feature.\n \n```\n`map\u003cstring, .tensorflow.Feature\u003e feature = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract Map\\\u003cString, [Feature](/jvm/api_docs/java/org/tensorflow/proto/example/Feature)\\\u003e\n**getFeature**\n()\n\nUse [getFeatureMap()](/jvm/api_docs/java/org/tensorflow/proto/example/FeaturesOrBuilder#getFeatureMap()) instead. \n\n#### public abstract int\n**getFeatureCount**\n()\n\n\u003cbr /\u003e\n\n```\n Map from feature name to feature.\n \n```\n`map\u003cstring, .tensorflow.Feature\u003e feature = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract Map\\\u003cString, [Feature](/jvm/api_docs/java/org/tensorflow/proto/example/Feature)\\\u003e\n**getFeatureMap**\n()\n\n\u003cbr /\u003e\n\n```\n Map from feature name to feature.\n \n```\n`map\u003cstring, .tensorflow.Feature\u003e feature = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract [Feature](/jvm/api_docs/java/org/tensorflow/proto/example/Feature)\n**getFeatureOrDefault**\n(String key, [Feature](/jvm/api_docs/java/org/tensorflow/proto/example/Feature) defaultValue)\n\n\u003cbr /\u003e\n\n```\n Map from feature name to feature.\n \n```\n`map\u003cstring, .tensorflow.Feature\u003e feature = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract [Feature](/jvm/api_docs/java/org/tensorflow/proto/example/Feature)\n**getFeatureOrThrow**\n(String key)\n\n\u003cbr /\u003e\n\n```\n Map from feature name to feature.\n \n```\n`map\u003cstring, .tensorflow.Feature\u003e feature = 1;`\n\n\u003cbr /\u003e"]]