Package java.io

Examples of java.io.DataOutput.writeByte()


            data.write(commit.getTreeId().getRawValue());
            for (ObjectId pId : commit.getParentIds()) {
                data.writeByte(COMMIT_PARENT_REF);
                data.write(pId.getRawValue());
            }
            data.writeByte(COMMIT_AUTHOR_PREFIX);
            FormatCommonV1.writePerson(commit.getAuthor(), data);
            data.writeByte(COMMIT_COMMITTER_PREFIX);
            FormatCommonV1.writePerson(commit.getCommitter(), data);
            data.writeUTF(commit.getMessage());
        }
View Full Code Here


                data.writeByte(COMMIT_PARENT_REF);
                data.write(pId.getRawValue());
            }
            data.writeByte(COMMIT_AUTHOR_PREFIX);
            FormatCommonV1.writePerson(commit.getAuthor(), data);
            data.writeByte(COMMIT_COMMITTER_PREFIX);
            FormatCommonV1.writePerson(commit.getCommitter(), data);
            data.writeUTF(commit.getMessage());
        }
    }
View Full Code Here

            DataOutput data = new DataOutputStream(out);
            writeHeader(data, "feature");
            data.writeInt(feature.getValues().size());
            for (Optional<Object> field : feature.getValues()) {
                FieldType type = FieldType.forValue(field);
                data.writeByte(type.getTag());
                if (type != FieldType.NULL) {
                    DataStreamValueSerializerV1.write(field, data);
                }
            }
        }
View Full Code Here

                    } else {
                        output.write(ptr.get(), ptr.getOffset(), ptr.getLength());
                    }
                }
                if (!indexColumnType.isFixedWidth()) {
                    output.writeByte(QueryConstants.SEPARATOR_BYTE);
                }
            }
            int length = stream.size();
            int minLength = length - maxTrailingNulls;
            byte[] indexRowKey = stream.getBuffer();
View Full Code Here

                if (!sizePrefixDisabled) {
                    bytesOut.restart();
                    looseOut = bytesOut;
                }

                looseOut.writeByte(type);
                dsm.looseMarshal(this, c, looseOut);

                if (!sizePrefixDisabled) {
                    ByteSequence sequence = bytesOut.toByteSequence();
                    dataOut.writeInt(sequence.getLength());
View Full Code Here

            dataRowKeySchema.iterator(rowKeyPtr, ptr, dataPosOffset);
            if (isMultiTenant) {
                dataRowKeySchema.next(ptr, dataPosOffset, maxRowKeyOffset);
                output.write(ptr.get(), ptr.getOffset(), ptr.getLength());
                if (!dataRowKeySchema.getField(dataPosOffset).getDataType().isFixedWidth()) {
                    output.writeByte(QueryConstants.SEPARATOR_BYTE);
                }
                dataPosOffset++;
            }
            if (viewIndexId != null) {
                output.write(viewIndexId);
View Full Code Here

                    } else {
                        output.write(ptr.get(), ptr.getOffset(), ptr.getLength());
                    }
                }
                if (!indexColumnType.isFixedWidth()) {
                    output.writeByte(QueryConstants.SEPARATOR_BYTE);
                }
            }
            int length = stream.size();
            int minLength = length - maxTrailingNulls;
            byte[] indexRowKey = stream.getBuffer();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.