@Test public void testEncodeLong() throws Exception { encoder.writeLong(1L); assertArrayEquals(new byte[] { (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x01 }, byteOutputStream.toByteArray()); byteOutputStream.reset(); encoder.writeLong(-1L); assertArrayEquals(new byte[] { (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff }, byteOutputStream.toByteArray()); byteOutputStream.reset(); encoder.writeLong(0L); assertArrayEquals(new byte[] { (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00 }, byteOutputStream.toByteArray()); }
@Override public void writeLong(long n) throws IOException { out.write(Bytes.toBytes(n)); }
ColumnEncoder extends Encoder { @Override public void writeLong(long n) throws IOException { out.write(Bytes.toBytes(n)); } }
ColumnEncoder extends Encoder { @Override public void writeLong(long n) throws IOException { out.write(Bytes.toBytes(n)); } ColumnEncoder(OutputStream out);  ColumnEncoder(OutputStream out, ColumnEncoder reuse); }
ColumnEncoder extends Encoder { @Override public void writeLong(long n) throws IOException { out.write(Bytes.toBytes(n)); } ColumnEncoder(OutputStream out);  ColumnEncoder(OutputStream out, ColumnEncoder reuse); @Override void flush(); @Override void writeNull(); @Override void writeBoolean(boolean b); @Override void writeInt(int n); @Override void writeLong(long n); @Override void writeFloat(float f); @Override void writeDouble(double d); @Override void writeString(Utf8 utf8); @Override void writeBytes(ByteBuffer bytes); @Override void writeBytes(byte[] bytes, int start, int len); @Override void writeFixed(byte[] bytes, int start, int len); @Override void writeEnum(int e); @Override void writeArrayStart(); @Override void setItemCount(long itemCount); @Override void startItem(); @Override void writeArrayEnd(); @Override void writeMapStart(); @Override void writeMapEnd(); @Override void writeIndex(int unionIndex); }
ColumnEncoder extends Encoder { @Override public void writeLong(long n) throws IOException { out.write(Bytes.toBytes(n)); } ColumnEncoder(OutputStream out);  ColumnEncoder(OutputStream out, ColumnEncoder reuse); @Override void flush(); @Override void writeNull(); @Override void writeBoolean(boolean b); @Override void writeInt(int n); @Override void writeLong(long n); @Override void writeFloat(float f); @Override void writeDouble(double d); @Override void writeString(Utf8 utf8); @Override void writeBytes(ByteBuffer bytes); @Override void writeBytes(byte[] bytes, int start, int len); @Override void writeFixed(byte[] bytes, int start, int len); @Override void writeEnum(int e); @Override void writeArrayStart(); @Override void setItemCount(long itemCount); @Override void startItem(); @Override void writeArrayEnd(); @Override void writeMapStart(); @Override void writeMapEnd(); @Override void writeIndex(int unionIndex);  }