public byte[] readIntBytes() throws IOException { int len = readInt(); return read(len); } public byte[] read(int len) throws IOException {
public int[] readArray(int[] data) throws IOException { int length = readShort(); data = new int[length]; for (int i = 0; i < length; i++) { data[i] = readInt(); } return data; }
public int[] readArray(int[] data) throws IOException { int length = readShort(); data = new int[length]; for (int i = 0; i < length; i++) { data[i] = readInt(); } return data; }
private void processEndInfo(byte [] data){ DataInputX input = new DataInputX(data); try{ String key = new StringBuilder(50).append(input.readText()).append('-').append(input.readInt()).append('-').append(input.readLong()).toString(); checkDays(); endBatchs++; Main.batchMap.remove(key); }catch(Exception ex){ ex.printStackTrace(); } } }
public Pack read(DataInputX din) throws IOException { this.xtype = din.readText(); this.hash = din.readInt(); this.text = din.readText(); return this; }
public Pack read(DataInputX din) throws IOException { this.xtype = din.readText(); this.hash = din.readInt(); this.text = din.readText(); return this; }
public Pack read(DataInputX din) throws IOException { this.xtype = din.readText(); this.hash = din.readInt(); this.text = din.readText(); return this; }
public Pack read(DataInputX din) throws IOException { this.xtype = din.readText(); this.hash = din.readInt(); this.text = din.readText(); return this; }
public Pack read(DataInputX din) throws IOException { this.xtype = din.readText(); this.hash = din.readInt(); this.text = din.readText(); return this; }
public static CounterKey toCounterKey(byte[] param) { try { DataInputX in = new DataInputX(param); CounterKey ck = new CounterKey(); ck.objHash = in.readInt(); ck.counter = in.readText(); ck.timetype = in.readByte(); return ck; } catch (Exception e) { throw new RuntimeException(e); } }
public Value read(DataInputX in) throws IOException { this.sum = in.readLong(); this.count = in.readInt(); this.min = in.readLong(); this.max = in.readLong(); return this; }
public Value read(DataInputX in) throws IOException { this.sum = in.readDouble(); this.count = in.readInt(); this.min = in.readDouble(); this.max = in.readDouble(); return this; }
public static CounterKey toCounterKey(byte[] param) { try { DataInputX in = new DataInputX(param); CounterKey ck = new CounterKey(); ck.objHash = in.readInt(); ck.counter = in.readText(); ck.timetype = in.readByte(); return ck; } catch (Exception e) { throw new RuntimeException(e); } }
public static CounterKey toCounterKey(byte[] param) { try { DataInputX in = new DataInputX(param); CounterKey ck = new CounterKey(); ck.objHash = in.readInt(); ck.counter = in.readText(); ck.timetype = in.readByte(); return ck; } catch (Exception e) { throw new RuntimeException(e); } }
public Pack read(DataInputX n) throws IOException { this.time = n.readDecimal(); this.objHash = n.readInt(); this.objType = n.readText(); this.stype = n.readByte(); this.table=(MapValue)n.readValue(); return this; }
public Pack read(DataInputX n) throws IOException { this.time = n.readDecimal(); this.objHash = n.readInt(); this.objType = n.readText(); this.stype = n.readByte(); this.table=(MapValue)n.readValue(); return this; }
public Pack read(DataInputX n) throws IOException { this.time = n.readDecimal(); this.objHash = n.readInt(); this.objType = n.readText(); this.stype = n.readByte(); this.table=(MapValue)n.readValue(); return this; }
public Pack read(DataInputX din) throws IOException { // this.key = din.readLong(); this.time = din.readLong(); this.level = din.readByte(); this.objType = din.readText(); this.objHash = din.readInt(); this.title = din.readText(); this.message = din.readText(); this.tags = (MapValue) din.readValue(); return this; }
public Pack read(DataInputX din) throws IOException { // this.key = din.readLong(); this.time = din.readLong(); this.level = din.readByte(); this.objType = din.readText(); this.objHash = din.readInt(); this.title = din.readText(); this.message = din.readText(); this.tags = (MapValue) din.readValue(); return this; }
public Pack read(DataInputX din) throws IOException { // this.key = din.readLong(); this.time = din.readLong(); this.level = din.readByte(); this.objType = din.readText(); this.objHash = din.readInt(); this.title = din.readText(); this.message = din.readText(); this.tags = (MapValue) din.readValue(); return this; }