Example usage for java.io DataInput readLong

List of usage examples for java.io DataInput readLong

Introduction

In this page you can find the example usage for java.io DataInput readLong.

Prototype

long readLong() throws IOException;

Source Link

Document

Reads eight input bytes and returns a long value.

Usage

From source file:net.geertvos.theater.core.util.UUIDGen.java

/** reads a uuid from an input stream. */
public static UUID read(DataInput dis) throws IOException {
    return new UUID(dis.readLong(), dis.readLong());
}

From source file:com.sirius.hadoop.job.onlinetime.OnlineRecord.java

@Override
public void readFields(DataInput in) throws IOException {
    onlineTime = in.readLong();
    offlineTime = in.readLong();/* w w  w. jav a  2  s  .  c o m*/
    cost = in.readLong();
}

From source file:com.sirius.hadoop.job.onlinetime.StatusKey.java

@Override
public void readFields(DataInput in) throws IOException {
    userId = in.readUTF();
    time = in.readLong();
}

From source file:org.springdata.ehcache.core.Book.java

@Override
public void readFields(DataInput in) throws IOException {
    id = in.readLong();
    author = in.readUTF();/*from  w  w  w.  ja v a 2  s .c o m*/
    price = in.readDouble();
}

From source file:com.marklogic.mapreduce.ForestDocument.java

@Override
public void readFields(DataInput in) throws IOException {
    fragmentOrdinal = in.readLong();
    collections = WritableUtils.readStringArray(in);
}

From source file:edu.iu.lda.TopicCountList.java

@Override
public void read(DataInput in) throws IOException {
    int size = in.readInt();
    for (int i = 0; i < size; i++) {
        topicCount.add(in.readLong());
    }//from   www  .  jav a2 s  . c om
    topicCount.trim();
}

From source file:com.davidgildeh.hadoop.input.simpledb.SimpleDBInputSplit.java

/**
 * Read the Split from the serialised Split file to initialise InputSplit for
 * processing/*from   ww  w. j ava2 s. c o m*/
 * 
 * @param input         The input stream of file to read from
 * @throws IOException 
 */
public void readFields(DataInput input) throws IOException {

    startRow = input.readLong();
    endRow = input.readLong();
    splitToken = input.readUTF();
    if (splitToken.equals("NULL")) {
        splitToken = null;
    }
}

From source file:edu.umn.cs.spatialHadoop.osm.OSMEdge.java

@Override
public void readFields(DataInput in) throws IOException {
    edgeId = in.readLong();
    nodeId1 = in.readLong();/* w  ww  .  j  a  va 2  s  .c  o  m*/
    lat1 = in.readDouble();
    lon1 = in.readDouble();
    nodeId2 = in.readLong();
    lat2 = in.readDouble();
    lon2 = in.readDouble();
    wayId = in.readLong();
    tags = in.readUTF();
}

From source file:com.blackberry.logdriver.boom.LogLineData.java

@Override
public void readFields(DataInput in) throws IOException {
    timestamp = in.readLong();
    createTime = in.readLong();//  w  w w .j  a v a 2  s. c  o m
    blockNumber = in.readLong();
    lineNumber = in.readLong();
    eventId = in.readInt();
}

From source file:com.netflix.aegisthus.input.AegSplit.java

@Override
public void readFields(DataInput in) throws IOException {
    end = in.readLong();
    hosts = WritableUtils.readStringArray(in);
    path = new Path(WritableUtils.readString(in));
    compressed = in.readBoolean();//from  w  ww.  j av  a 2 s  . co  m
    if (compressed) {
        compressedPath = new Path(WritableUtils.readString(in));
    }
    start = in.readLong();
    type = WritableUtils.readEnum(in, Type.class);
    int size = in.readInt();
    if (type == Type.sstable) {
        convertors = Maps.newHashMap();
        for (int i = 0; i < size; i++) {
            String[] parts = WritableUtils.readStringArray(in);
            try {
                convertors.put(parts[0], TypeParser.parse(parts[1]));
            } catch (ConfigurationException e) {
                throw new IOException(e);
            } catch (SyntaxException e) {
                throw new IOException(e);
            }
        }
    }
}