# ParseExampleDatasetV2

public final class **ParseExampleDatasetV2** Transforms \`input_dataset\` containing \`Example\` protos as vectors of DT_STRING into a dataset of \`Tensor\` or \`SparseTensor\` objects representing the parsed features.

### Nested Classes

|---|---|---|---|
| class | [ParseExampleDatasetV2.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ParseExampleDatasetV2.Options) || Optional attributes for `https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ParseExampleDatasetV2` |

### Public Methods

|---|---|
| [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<Object\> | [asOutput](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ParseExampleDatasetV2#asOutput())() Returns the symbolic handle of a tensor. |
| static [ParseExampleDatasetV2](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ParseExampleDatasetV2) | [create](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ParseExampleDatasetV2#create(org.tensorflow.op.Scope,%20org.tensorflow.Operand<?>,%20org.tensorflow.Operand<java.lang.Long>,%20java.lang.Iterable<org.tensorflow.Operand<?>>,%20java.util.List<java.lang.String>,%20java.util.List<java.lang.String>,%20java.util.List<java.lang.Class<?>>,%20java.util.List<org.tensorflow.Shape>,%20java.util.List<java.lang.Class<?>>,%20java.util.List<org.tensorflow.Shape>,%20java.util.List<java.lang.Class<?>>,%20java.util.List<java.lang.Class<?>>,%20org.tensorflow.op.core.ParseExampleDatasetV2.Options...))([Scope](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/Scope) scope, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<?\> inputDataset, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<Long\> numParallelCalls, Iterable\<[Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<?\>\> denseDefaults, List\<String\> sparseKeys, List\<String\> denseKeys, List\<Class\<?\>\> sparseTypes, List\<[Shape](https://www.tensorflow.org/api_docs/java/org/tensorflow/Shape)\> denseShapes, List\<Class\<?\>\> outputTypes, List\<[Shape](https://www.tensorflow.org/api_docs/java/org/tensorflow/Shape)\> outputShapes, List\<Class\<?\>\> raggedValueTypes, List\<Class\<?\>\> raggedSplitTypes, [Options...](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ParseExampleDatasetV2.Options) options) Factory method to create a class wrapping a new ParseExampleDatasetV2 operation. |
| static [ParseExampleDatasetV2.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ParseExampleDatasetV2.Options) | [deterministic](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ParseExampleDatasetV2#deterministic(java.lang.String))(String deterministic) |
| [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<?\> | [handle](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ParseExampleDatasetV2#handle())() |
| static [ParseExampleDatasetV2.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ParseExampleDatasetV2.Options) | [raggedKeys](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ParseExampleDatasetV2#raggedKeys(java.util.List<java.lang.String>))(List\<String\> raggedKeys) |

### Inherited Methods

From class [org.tensorflow.op.PrimitiveOp](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/PrimitiveOp)

|---|---|
| final boolean | [equals](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/PrimitiveOp#equals(java.lang.Object))(Object obj) |
| final int | [hashCode](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/PrimitiveOp#hashCode())() |
| [Operation](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operation) | [op](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/PrimitiveOp#op())() Returns the underlying `https://www.tensorflow.org/api_docs/java/org/tensorflow/Operation` |
| final String | [toString](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/PrimitiveOp#toString())() |

From class java.lang.Object

|---|---|
| boolean | equals(Object arg0) |
| final Class\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| String | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

From interface [org.tensorflow.Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)

|---|---|
| abstract [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<Object\> | [asOutput](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand#asOutput())() Returns the symbolic handle of a tensor. |

## Public Methods

#### public [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<Object\>
**asOutput**
()

Returns the symbolic handle of a tensor.

Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is
used to obtain a symbolic handle that represents the computation of the input.

<br />

#### public static [ParseExampleDatasetV2](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ParseExampleDatasetV2)
**create**
([Scope](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/Scope) scope, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<?\> inputDataset, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<Long\> numParallelCalls, Iterable\<[Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<?\>\> denseDefaults, List\<String\> sparseKeys, List\<String\> denseKeys, List\<Class\<?\>\> sparseTypes, List\<[Shape](https://www.tensorflow.org/api_docs/java/org/tensorflow/Shape)\> denseShapes, List\<Class\<?\>\> outputTypes, List\<[Shape](https://www.tensorflow.org/api_docs/java/org/tensorflow/Shape)\> outputShapes, List\<Class\<?\>\> raggedValueTypes, List\<Class\<?\>\> raggedSplitTypes, [Options...](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ParseExampleDatasetV2.Options) options)

Factory method to create a class wrapping a new ParseExampleDatasetV2 operation.

##### Parameters

| scope | current scope |
| denseDefaults | A dict mapping string keys to \`Tensor\`s. The keys of the dict must match the dense_keys of the feature. |
| sparseKeys | A list of string keys in the examples features. The results for these keys will be returned as \`SparseTensor\` objects. |
| denseKeys | A list of Ndense string Tensors (scalars). The keys expected in the Examples features associated with dense values. |
| sparseTypes | A list of \`DTypes\` of the same length as \`sparse_keys\`. Only [`tf.float32`](https://www.tensorflow.org/api_docs/python/tf#float32) (\`FloatList\`), [`tf.int64`](https://www.tensorflow.org/api_docs/python/tf#int64) (\`Int64List\`), and [`tf.string`](https://www.tensorflow.org/api_docs/python/tf#string) (\`BytesList\`) are supported. |
| denseShapes | List of tuples with the same length as \`dense_keys\`. The shape of the data for each dense feature referenced by \`dense_keys\`. Required for any input tensors identified by \`dense_keys\`. Must be either fully defined, or may contain an unknown first dimension. An unknown first dimension means the feature is treated as having a variable number of blocks, and the output shape along this dimension is considered unknown at graph build time. Padding is applied for minibatch elements smaller than the maximum number of blocks for the given feature along this dimension. |
| outputTypes | The type list for the return values. |
| outputShapes | The list of shapes being produced. |
| options | carries optional attributes values |
|---|---|

##### Returns

- a new instance of ParseExampleDatasetV2

#### public static [ParseExampleDatasetV2.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ParseExampleDatasetV2.Options)
**deterministic**
(String deterministic)

<br />

##### Parameters

| deterministic | A string indicating the op-level determinism to use. Deterministic controls whether the dataset is allowed to return elements out of order if the next element to be returned isn't available, but a later element is. Options are "true", "false", and "default". "default" indicates that determinism should be decided by the \`experimental_deterministic\` parameter of [`tf.data.Options`](https://www.tensorflow.org/api_docs/python/tf/data/Options). |
|---|---|

#### public [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<?\>
**handle**
()

<br />

#### public static [ParseExampleDatasetV2.Options](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/ParseExampleDatasetV2.Options)
**raggedKeys**
(List\<String\> raggedKeys)

<br />