All Downloads are FREE. Search and download functionalities are using the official Maven repository.

water.api.FrameSynopsisV3 Maven / Gradle / Ivy

package water.api;

import water.Iced;
import water.api.KeyV3.FrameKeyV3;
import water.fvec.ByteVec;
import water.fvec.Frame;
import water.fvec.Vec;

/**
 * The minimal amount of information on a Frame.
 * @see water.api.FramesHandler#list(int, FramesV3)
 */
public class FrameSynopsisV3 extends FrameBase {

  public FrameSynopsisV3() {}

  // Output fields
  @API(help="Number of rows in the Frame", direction=API.Direction.OUTPUT)
  public long rows;

  @API(help="Number of columns in the Frame", direction=API.Direction.OUTPUT)
  public long columns;

  FrameSynopsisV3(Frame fr) {
    Vec[] vecs = fr.vecs();

    frame_id = new FrameKeyV3(fr._key);
    _fr = fr;
    rows = fr.numRows();
    columns = vecs.length;
    byte_size = fr.byteSize();
    is_text = fr.numCols()==1 && vecs[0] instanceof ByteVec;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy