@Override public boolean readBoolean() { checkLimit(this,1); return super.readBoolean(); }
private void visitSingleBoolean(StructBooleanListener visitor, int totalCount, final int[] curPos, final int[] curSize, int c) { //TODO: populate arrays for call boolean value = channelReader.readBoolean(); boolean isNull = false; if (!value) { isNull = channelReader.wasBooleanNull(); } visitor.value(value, isNull, curPos, curSize, c, totalCount); }
private void visitSingleBoolean(StructBooleanListener visitor, int totalCount, final int[] curPos, final int[] curSize, int c) { //TODO: populate arrays for call boolean value = channelReader.readBoolean(); boolean isNull = false; if (!value) { isNull = channelReader.wasBooleanNull(); } visitor.value(value, isNull, curPos, curSize, c, totalCount); }
private void visitSingleBoolean(StructBooleanListener visitor, int totalCount, final int[] curPos, final int[] curSize, int c) { //TODO: populate arrays for call boolean value = channelReader.readBoolean(); boolean isNull = false; if (!value) { isNull = channelReader.wasBooleanNull(); } visitor.value(value, isNull, curPos, curSize, c, totalCount); }
/** * Reads boolean from specified field in pipe * @param fieldId field to read from * @return <code>false</code> when absent, else <code>true</code> */ public boolean readBoolean(long fieldId) { assert(0==Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).dims(fieldId)) : "This method only used for non dim fields."; assert(Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).fieldType(fieldId) == StructType.Boolean); int index = channelReader.readFromEndLastInt(StructRegistry.FIELD_MASK&(int)fieldId); if (index>=0) { channelReader.position(index); return channelReader.readBoolean(); } else { return false; } }
/** * Reads boolean from specified field in pipe * @param fieldId field to read from * @return <code>false</code> when absent, else <code>true</code> */ public boolean readBoolean(long fieldId) { assert(0==Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).dims(fieldId)) : "This method only used for non dim fields."; assert(Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).fieldType(fieldId) == StructType.Boolean); int index = channelReader.readFromEndLastInt(StructRegistry.FIELD_MASK&(int)fieldId); if (index>=0) { channelReader.position(index); return channelReader.readBoolean(); } else { return false; } }
/** * Reads boolean from specified field in pipe * @param fieldId field to read from * @return <code>false</code> when absent, else <code>true</code> */ public boolean readBoolean(long fieldId) { assert(0==Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).dims(fieldId)) : "This method only used for non dim fields."; assert(Pipe.structRegistry(DataInputBlobReader.getBackingPipe(channelReader)).fieldType(fieldId) == StructType.Boolean); int index = channelReader.readFromEndLastInt(StructRegistry.FIELD_MASK&(int)fieldId); if (index>=0) { channelReader.position(index); return channelReader.readBoolean(); } else { return false; } }