org.apache.tinkerpop.shaded.kryo.io.Output.writeLong()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(97)

本文整理了Java中org.apache.tinkerpop.shaded.kryo.io.Output.writeLong()方法的一些代码示例,展示了Output.writeLong()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Output.writeLong()方法的具体详情如下:
包路径:org.apache.tinkerpop.shaded.kryo.io.Output
类名称:Output
方法名:writeLong

Output.writeLong介绍

暂无

代码示例

代码示例来源:origin: thinkaurelius/titan

@Override
public void write(Kryo kryo, Output output, Geoshape geoshape) {
  float[][] coordinates = geoshape.coordinates;
  assert (coordinates.length==2);
  assert (coordinates[0].length==coordinates[1].length && coordinates[0].length>0);
  int length = coordinates[0].length;
  output.writeLong(length);
  for (int i = 0; i < 2; i++) {
    for (int j = 0; j < length; j++) {
      output.writeFloat(coordinates[i][j]);
    }
  }
}

代码示例来源:origin: JanusGraph/janusgraph

@Override
public void write(Kryo kryo, Output output, Geoshape geoshape) {
  try {
    ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
    GeoshapeBinarySerializer.write(outputStream, geoshape);
    byte[] bytes = outputStream.toByteArray();
    output.writeLong(bytes.length);
    output.write(bytes);
  } catch (IOException e) {
    throw new RuntimeException("I/O exception writing geoshape", e);
  }
}

代码示例来源:origin: apache/tinkerpop

@Override
public void writeLong(final long l) {
  shadedOutput.writeLong(l);
}

代码示例来源:origin: hugegraph/hugegraph

@Override
  public void write(Kryo kryo, Output output, UUID uuid) {
    output.writeLong(uuid.getMostSignificantBits());
    output.writeLong(uuid.getLeastSignificantBits());
  }
});

代码示例来源:origin: org.apache.tinkerpop/gremlin-core

@Override
public void writeLong(final long l) {
  shadedOutput.writeLong(l);
}

代码示例来源:origin: com.baidu.hugegraph/hugegraph-core

@Override
  public void write(Kryo kryo, Output output, UUID uuid) {
    output.writeLong(uuid.getMostSignificantBits());
    output.writeLong(uuid.getLeastSignificantBits());
  }
});

代码示例来源:origin: lambdazen/bitsy

@Override
public void write(final Kryo kryo, final Output output, final UUID uuid) {
 output.writeLong(uuid.getMostSignificantBits());
 output.writeLong(uuid.getLeastSignificantBits());
}

代码示例来源:origin: pietermartin/sqlg

@Override
public void write(Kryo kryo, Output output) {
  output.writeString(this.getSchemaTable().getSchema());
  output.writeString(this.getSchemaTable().getTable());
  if (hasSequenceId()) {
    output.writeString("s");
    output.writeLong(this.getID().sequenceId);
  } else {
    output.writeString("i");
    output.writeInt(getIdentifiers().size());
    for (Comparable identifier : getIdentifiers()) {
      output.writeString((CharSequence) identifier);
    }
  }
}

代码示例来源:origin: org.umlg/sqlg-core

@Override
public void write(Kryo kryo, Output output) {
  output.writeString(this.getSchemaTable().getSchema());
  output.writeString(this.getSchemaTable().getTable());
  if (hasSequenceId()) {
    output.writeString("s");
    output.writeLong(this.getID().sequenceId);
  } else {
    output.writeString("i");
    output.writeInt(getIdentifiers().size());
    for (Comparable identifier : getIdentifiers()) {
      output.writeString((CharSequence) identifier);
    }
  }
}

相关文章