public class VectorSchemaRoot extends Object implements AutoCloseable
コンストラクタと説明 |
---|
VectorSchemaRoot(FieldVector parent) |
VectorSchemaRoot(Iterable<FieldVector> vectors) |
VectorSchemaRoot(List<Field> fields,
List<FieldVector> fieldVectors,
int rowCount) |
VectorSchemaRoot(Schema schema,
List<FieldVector> fieldVectors,
int rowCount) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
allocateNew()
Do an adaptive allocation of each vector for memory purposes.
|
void |
clear()
Release all the memory for each vector held in this root.
|
void |
close() |
String |
contentToTSVString() |
static VectorSchemaRoot |
create(Schema schema,
BufferAllocator allocator) |
List<FieldVector> |
getFieldVectors() |
int |
getRowCount() |
Schema |
getSchema() |
FieldVector |
getVector(String name) |
static VectorSchemaRoot |
of(FieldVector... vectors) |
void |
setRowCount(int rowCount)
Set the row count of all the vectors in this container.
|
public VectorSchemaRoot(Iterable<FieldVector> vectors)
public VectorSchemaRoot(FieldVector parent)
public VectorSchemaRoot(List<Field> fields, List<FieldVector> fieldVectors, int rowCount)
public VectorSchemaRoot(Schema schema, List<FieldVector> fieldVectors, int rowCount)
public static VectorSchemaRoot create(Schema schema, BufferAllocator allocator)
public static VectorSchemaRoot of(FieldVector... vectors)
public void allocateNew()
public void clear()
public List<FieldVector> getFieldVectors()
public FieldVector getVector(String name)
public Schema getSchema()
public int getRowCount()
public void setRowCount(int rowCount)
rowCount
- Number of records.public void close()
close
インタフェース内 AutoCloseable
public String contentToTSVString()
Copyright © 2018 The Apache Software Foundation. All rights reserved.