public class Frame extends Lockable
| Modifier and Type | Field and Description |
|---|---|
java.lang.String[] |
_names |
| Constructor and Description |
|---|
Frame(Frame fr) |
Frame(Key key) |
Frame(Key key,
java.lang.String[] names,
Vec[] vecs) |
Frame(java.lang.String[] names,
Vec[] vecs) |
Frame(Vec... vecs) |
| Modifier and Type | Method and Description |
|---|---|
Frame |
add(Frame fr) |
Vec |
add(java.lang.String name,
Vec vec) |
Vec |
add(Vec vec) |
Vec |
anyVec()
Returns the first readable vector.
|
long |
byteSize() |
boolean |
checkCompatible(Frame fr) |
Frame |
deepcopy() |
java.lang.String[][] |
domains()
All the domains for enum columns; null for non-enum columns.
|
java.lang.String |
errStr() |
Frame |
extractFrame(int startIdx,
int endIdx) |
int |
find(java.lang.String name)
Finds the first column with a matching name.
|
int |
find(Vec vec) |
Vec |
lastVec() |
java.lang.String[] |
names() |
int |
numCols() |
long |
numRows() |
Futures |
postWrite(Futures fs) |
Vec[] |
reloadVecs() |
Futures |
remove_impl(Futures fs)
Actually remove/delete all Vecs from memory, not just from the Frame.
|
Vec |
remove(int idx)
Removes a numbered column.
|
Vec[] |
remove(int[] idxs)
Removes a numbered column.
|
Vec |
remove(java.lang.String name)
Removes the first column with a matching name.
|
Vec |
replace(int col,
Vec nv) |
boolean[] |
strings()
true/false whether each Vec is a string
|
Frame |
subframe(java.lang.String[] names)
Returns a subframe of this frame containing only vectors with desired names.
|
Frame[] |
subframe(java.lang.String[] names,
double c)
Returns a new frame composed of vectors of this frame selected by given names.
|
void |
swap(int lo,
int hi) |
byte[] |
times()
Time status for every Vec
|
boolean[] |
uuids()
true/false whether each Vec is a UUID
|
Vec |
vec(int idx)
Returns the vector by given index.
|
Vec |
vec(java.lang.String name) |
Vec[] |
vecs() |
delete_and_lock, delete, delete, delete, read_lock, read_lock, unlock_all, unlock, update, write_lockclone, frozenType, read_impl, read, readJSON_impl, readJSON, write_impl, write, writeHTML_impl, writeHTML, writeJSON_impl, writeJSONpublic Frame(Vec... vecs)
public Frame(java.lang.String[] names,
Vec[] vecs)
public Frame(Key key)
public Frame(Frame fr)
public void swap(int lo,
int hi)
public boolean checkCompatible(Frame fr)
public Frame deepcopy()
public Frame subframe(java.lang.String[] names)
names - list of vector namesjava.lang.IllegalArgumentException - if there is no vector with desired name in this frame.public Frame[] subframe(java.lang.String[] names, double c)
names - names of vector to compose a subframec - value to fill missing columns.public final Vec anyVec()
public final Vec[] vecs()
public boolean[] uuids()
public boolean[] strings()
public byte[] times()
public java.lang.String[][] domains()
public java.lang.String[] names()
public long byteSize()
public Futures remove_impl(Futures fs)
remove_impl in class Keyedpublic Frame extractFrame(int startIdx, int endIdx)
public int numCols()
public long numRows()
public Vec lastVec()
public Vec vec(java.lang.String name)
public Vec vec(int idx)
The call is direct equivalent to call vecs()[i] and
it does not do any array bounds checking.
idx - idx of columnnullpublic final Vec[] reloadVecs()
public int find(java.lang.String name)
public int find(Vec vec)
public Vec remove(java.lang.String name)
public Vec[] remove(int[] idxs)
public Vec remove(int idx)