public class DataFrame
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
DataFrame.Builder
RecordBuilder for DataFrame instances.
|
Modifier and Type | Field and Description |
---|---|
List<DataValue> |
data
Deprecated.
|
List<Long> |
index
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
Constructor and Description |
---|
DataFrame()
Default constructor.
|
DataFrame(List<Long> index,
List<DataValue> data)
All-args constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(int field$) |
static org.apache.avro.Schema |
getClassSchema() |
List<DataValue> |
getData()
Gets the value of the 'data' field.
|
List<Long> |
getIndex()
Gets the value of the 'index' field.
|
org.apache.avro.Schema |
getSchema() |
static DataFrame.Builder |
newBuilder()
Creates a new DataFrame RecordBuilder
|
static DataFrame.Builder |
newBuilder(DataFrame.Builder other)
Creates a new DataFrame RecordBuilder by copying an existing Builder
|
static DataFrame.Builder |
newBuilder(DataFrame other)
Creates a new DataFrame RecordBuilder by copying an existing DataFrame instance
|
void |
put(int field$,
Object value$) |
void |
setData(List<DataValue> value)
Sets the value of the 'data' field.
|
void |
setIndex(List<Long> value)
Sets the value of the 'index' field.
|
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public List<Long> index
@Deprecated public List<DataValue> data
public DataFrame()
newBuilder()
.public static org.apache.avro.Schema getClassSchema()
public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
getSchema
in class org.apache.avro.specific.SpecificRecordBase
public Object get(int field$)
get
in interface org.apache.avro.generic.IndexedRecord
get
in class org.apache.avro.specific.SpecificRecordBase
public void put(int field$, Object value$)
put
in interface org.apache.avro.generic.IndexedRecord
put
in class org.apache.avro.specific.SpecificRecordBase
public void setIndex(List<Long> value)
value
- the value to set.public void setData(List<DataValue> value)
value
- the value to set.public static DataFrame.Builder newBuilder()
public static DataFrame.Builder newBuilder(DataFrame.Builder other)
public static DataFrame.Builder newBuilder(DataFrame other)
Copyright © 2023 Petroware AS - https://petroware.no