Example usage for java.io ObjectOutput writeBoolean

List of usage examples for java.io ObjectOutput writeBoolean

Introduction

In this page you can find the example usage for java.io ObjectOutput writeBoolean.

Prototype

void writeBoolean(boolean v) throws IOException;

Source Link

Document

Writes a boolean value to this output stream.

Usage

From source file:xbird.xquery.expr.func.LazyFunctionCall.java

@Override
public void writeExternal(ObjectOutput out) throws IOException {
    super.writeExternal(out);
    out.writeBoolean(_inlined);
}

From source file:com.splicemachine.derby.impl.sql.execute.operations.GroupedAggregateOperation.java

@Override
public void writeExternal(ObjectOutput out) throws IOException {
    super.writeExternal(out);
    out.writeBoolean(isRollup);
    out.writeObject(groupedAggregateContext);
}

From source file:com.splicemachine.derby.stream.output.update.UpdateTableWriterBuilder.java

@Override
public void writeExternal(ObjectOutput out) throws IOException {
    out.writeBoolean(operationContext != null);
    if (operationContext != null)
        out.writeObject(operationContext);
    out.writeLong(heapConglom);/*from   ww  w. j a  va 2 s.c o  m*/
    ArrayUtil.writeIntArray(out, formatIds);
    ArrayUtil.writeIntArray(out, columnOrdering);
    ArrayUtil.writeIntArray(out, pkCols);
    out.writeObject(pkColumns);
    out.writeObject(heapList);
    out.writeUTF(tableVersion);
    SIDriver.driver().getOperationFactory().writeTxn(txn, out);
    ArrayUtil.writeIntArray(out, execRowTypeFormatIds);
}

From source file:com.splicemachine.derby.stream.output.PipelineWriterBuilder.java

@Override
public void writeExternal(ObjectOutput out) throws IOException {
    try {//from w  ww .  j  ava2  s.c om
        SIDriver.driver().getOperationFactory().writeTxn(txn, out);
        out.writeLong(heapConglom);
        out.writeBoolean(skipIndex);
    } catch (Exception e) {
        throw new IOException(e);
    }

}

From source file:com.splicemachine.derby.stream.output.delete.DeleteTableWriterBuilder.java

@Override
public void writeExternal(ObjectOutput out) throws IOException {
    out.writeLong(heapConglom);/*from w  ww . j  ava2  s  .co  m*/
    SIDriver.driver().getOperationFactory().writeTxn(txn, out);
    out.writeBoolean(operationContext != null);
    if (operationContext != null)
        out.writeObject(operationContext);
}

From source file:com.splicemachine.derby.stream.output.insert.InsertTableWriterBuilder.java

@Override
public void writeExternal(ObjectOutput out) throws IOException {
    try {/*w  ww.j a v  a 2 s. c o  m*/
        out.writeBoolean(isUpsert);
        out.writeBoolean(operationContext != null);
        if (operationContext != null)
            out.writeObject(operationContext);
        SIDriver.driver().getOperationFactory().writeTxn(txn, out);
        ArrayUtil.writeIntArray(out, pkCols);
        out.writeUTF(tableVersion);
        ArrayUtil.writeIntArray(out, execRowTypeFormatIds);
        out.writeObject(execRowDefinition);
        out.writeInt(autoIncrementRowLocationArray.length);
        for (int i = 0; i < autoIncrementRowLocationArray.length; i++)
            out.writeObject(autoIncrementRowLocationArray[i]);
        out.writeInt(spliceSequences.length);
        for (int i = 0; i < spliceSequences.length; i++) {
            out.writeObject(spliceSequences[i]);
        }
        out.writeLong(heapConglom);
    } catch (Exception e) {
        throw new IOException(e);
    }

}

From source file:com.delphix.session.service.ServiceUUID.java

@Override
public void writeExternal(ObjectOutput out) throws IOException {
    super.writeExternal(out);

    out.writeUTF(uuid.toString());/*  w w  w. ja  v  a2s .c  o  m*/

    if (alias != null) {
        out.writeBoolean(true);
        out.writeUTF(alias);
    } else {
        out.writeBoolean(false);
    }

    out.writeBoolean(ephemeral);
}

From source file:org.ihtsdo.otf.tcc.ddo.TimeReference.java

@Override
public void writeExternal(ObjectOutput out) throws IOException {
    out.writeLong(getTime());/*from www  .  j av a2s  .com*/

    if ((formatterProperty != null) || (formatter != null)) {
        out.writeBoolean(true);
        out.writeUTF(getFormatter().getPattern());
    } else {
        out.writeBoolean(false);
    }
}

From source file:gridool.dht.ops.DropOperation.java

public void writeExternal(ObjectOutput out) throws IOException {
    final int len = idxNames.length;
    out.writeInt(len);//from  w  ww. j  a v a  2 s .com
    for (int i = 0; i < len; i++) {
        IOUtils.writeString(idxNames[i], out);
    }
    out.writeBoolean(async);
}

From source file:gridool.dht.ops.RemoveOperation.java

public void writeExternal(ObjectOutput out) throws IOException {
    IOUtils.writeString(idxName, out);//ww w.ja v a2s  .  co  m
    out.writeInt(keys.size());
    for (byte[] b : keys) {
        IOUtils.writeBytes(b, out);
    }
    out.writeBoolean(async);
}