| Modifier and Type | Class and Description |
|---|---|
static class |
StructuredRecord.Builder
Builder for creating a
StructuredRecord. |
| Modifier and Type | Method and Description |
|---|---|
static StructuredRecord.Builder |
builder(Schema schema)
Get a builder for creating a record with the given schema.
|
boolean |
equals(Object o) |
<T> T |
get(String fieldName)
Get the value of a field in the record.
|
Schema |
getSchema()
Get the schema of the record.
|
int |
hashCode() |
public Schema getSchema()
public <T> T get(String fieldName)
T - type of object of the field value.fieldName - field to get.public static StructuredRecord.Builder builder(Schema schema) throws UnexpectedFormatException
schema - schema for the record to build.UnexpectedFormatException - if the given schema is not a record with at least one field.Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.